-
-
Notifications
You must be signed in to change notification settings - Fork 15
Fix non-working Ctrl+c on windows #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/lib/compiler.js
Outdated
if (fs.existsSync(sassPath)) { | ||
logger.info("Found peer node-sass"); | ||
} else { | ||
throw new Error('node-sass installation local to project was not found. Install by executing `npm install node-sass`.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this should be reject(new Error(...))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and set isResolved
to true
src/lib/log-provider.js
Outdated
return logger[data.logLevel](data.message); | ||
} | ||
|
||
process.send(JSON.stringify(data)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can just send the data, no need to stringify it
src/lib/watcher.js
Outdated
pollInterval: 100, | ||
stabilityThreshold: 300 | ||
}, | ||
ignored: ['**/.*', '.*', path.join(appDir, "App_Resources")] // hidden files and App_Resources folder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we need to use the projectData.appDirectoryPath here
PR Checklist
What is the current behavior?
When CTRL+C is pressed on windows, the application is NOT terminated
What is the new behavior?
When CTRL+C is pressed on windows, the application is terminated
Fixes #76