Skip to content

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

Merged
merged 3 commits into from
May 17, 2018
Merged

Fix non-working Ctrl+c on windows #77

merged 3 commits into from
May 17, 2018

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented May 9, 2018

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

@ghost ghost assigned Fatme May 9, 2018
@ghost ghost added the new PR label May 9, 2018
@Fatme Fatme requested a review from rosen-vladimirov May 14, 2018 08:48
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`.');
Copy link
Contributor

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(...))

Copy link
Contributor

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

return logger[data.logLevel](data.message);
}

process.send(JSON.stringify(data));
Copy link
Contributor

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

pollInterval: 100,
stabilityThreshold: 300
},
ignored: ['**/.*', '.*', path.join(appDir, "App_Resources")] // hidden files and App_Resources folder
Copy link
Contributor

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

@Fatme Fatme merged commit 7dfd685 into master May 17, 2018
@Fatme Fatme deleted the fatme/fix-ctrl-c branch May 17, 2018 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants