Skip to content
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

Add a Ctrl+C handler for gulp watch | build | dist #13229

Merged
merged 1 commit into from
Feb 2, 2018
Merged

Add a Ctrl+C handler for gulp watch | build | dist #13229

merged 1 commit into from
Feb 2, 2018

Conversation

rsimha
Copy link
Contributor

@rsimha rsimha commented Feb 2, 2018

Trying to cancel gulp watch | build | dist using Ctrl + C sometimes takes upwards of 30 seconds when the closure compiler is busy. This PR adds an async SIGINT handler that runs in the background during these tasks, that will immediately exit gulp when Ctrl + C is pressed during an ongoing build. The handler is cleaned up soon after the build is complete. Other gulp tasks remain unaffected by this change.

Fixes #13227

@rsimha
Copy link
Contributor Author

rsimha commented Feb 2, 2018

/to @erwinmombay @choumx

@rsimha rsimha requested a review from lannka February 2, 2018 17:28
@rsimha
Copy link
Contributor Author

rsimha commented Feb 2, 2018

/to @lannka

@rsimha rsimha merged commit bb76824 into ampproject:master Feb 2, 2018
@rsimha rsimha deleted the 2018-02-01-GulpCtrlC branch February 2, 2018 18:33
RanAbram pushed a commit to RanAbram/amphtml that referenced this pull request Mar 12, 2018
protonate pushed a commit to protonate/amphtml that referenced this pull request Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants