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

🏗🐛 Don't cancel watch if an edit causes a compilation error (redux) #23023

Merged
merged 1 commit into from
Jun 26, 2019
Merged

🏗🐛 Don't cancel watch if an edit causes a compilation error (redux) #23023

merged 1 commit into from
Jun 26, 2019

Conversation

rsimha
Copy link
Contributor

@rsimha rsimha commented Jun 25, 2019

This PR cleans up the old logic used to determine when to stop compilation and when to continue it during watch by adding a new field to options called continueOnError. This was necessary because extensions use an additional watch mechanism since they need to respond to changes to .js and .css files.

Addresses #13312 (comment)

Follow up to #13312
Follow up to #22659

@rsimha rsimha requested a review from calebcordry June 25, 2019 23:48
@rsimha rsimha self-assigned this Jun 25, 2019
@rsimha rsimha requested a review from erwinmombay June 25, 2019 23:48
@rsimha
Copy link
Contributor Author

rsimha commented Jun 26, 2019

Verified this locally with gulp build (errors stop compilation) and gulp watch (errors stop first compilation, but not recompilations due to edits). All tests green. Ready for review.

/to @erwinmombay @calebcordry

@rsimha rsimha merged commit 3277d1e into ampproject:master Jun 26, 2019
@rsimha rsimha deleted the 2019-06-19-WatchError branch June 26, 2019 20:21
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.

3 participants