Skip to content

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

Merged
rsimha merged 1 commit into
ampproject:masterfrom
rsimha:2019-06-19-WatchError
Jun 26, 2019
Merged

🏗🐛 Don't cancel watch if an edit causes a compilation error (redux)#23023
rsimha merged 1 commit into
ampproject:masterfrom
rsimha:2019-06-19-WatchError

Conversation

@rsimha

@rsimha rsimha commented Jun 25, 2019

Copy link
Copy Markdown
Contributor

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

rsimha commented Jun 26, 2019

Copy link
Copy Markdown
Contributor Author

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

Comment thread build-system/tasks/extension-helpers.js
@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