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

Make sure node_modules/web-animations-js is patched after gulp update-packages #13199

Merged
merged 1 commit into from
Feb 1, 2018
Merged

Make sure node_modules/web-animations-js is patched after gulp update-packages #13199

merged 1 commit into from
Feb 1, 2018

Conversation

rsimha
Copy link
Contributor

@rsimha rsimha commented Feb 1, 2018

In #6189, @dvoytenko added a function patchWebAnimations() to gulpfile.js, which writes the file node_modules/web-animations-js/web-animations.install.js. However, this function was being called in the global scope of gulpfile.js, and would therefore run before any gulp task was executed.

This poses a problem when gulp update-packages is run as a prerequisite to gulp, and happens to update node_modules, since web-animations.install.js is patched before node_modules/web-animations-js is potentially overwritten by yarn.

This PR eliminates the problem by moving the call to patchWebAnimations() from the global scope of gulpfile.js to just before the extensions are built as part of the gulp build process.

Fixes #13177

@rsimha
Copy link
Contributor Author

rsimha commented Feb 1, 2018

/to @dvoytenko @erwinmombay

@rsimha
Copy link
Contributor Author

rsimha commented Feb 1, 2018

/to @jridgewell

@rsimha rsimha changed the title Make sure web-animations is patched before build Make sure node_modules/web-animations-js is patched after gulp update-packages Feb 1, 2018
@rsimha rsimha merged commit 0733455 into ampproject:master Feb 1, 2018
@rsimha rsimha deleted the 2018-01-31-WebAnimationsBuild branch February 1, 2018 16:29
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