-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🏗 Clean up a few things in gulpfile.js
#32359
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like adding gulp help 4 to third_party
increased the bundle size which we probably don't want to do.
Maybe the lack of an npm release and support from the developer are signs that we should consider alternatives to gulp-help
.
Files in amphtml/build-system/compile/sources.js Lines 23 to 39 in 1ff2dfb
I suspect the bundle-size failure is a red herring due to other commits that landed on I've rebased this PR on
Unfortunately, there aren't any known alternatives that do nearly as good a job with listing all I could remove |
So gulp-cli has this feature already, see https://github.com/gulpjs/gulp-cli#flags Unfortunately it doesn't work with our setup, something about the default task overriding a
Since this PR is to prevent CI build rate limiting, I'm ok with this PR and adding a TODO to remove |
Oooh, I'm glad you reviewed and provided pushback on this! The alternative does look promising. Since the rate limiting appears to be intermittent, I'm going to attempt to fix this without the third_party changes. (If the fix isn't straightforward, or if there are more broken builds, I'll merge this and send you a follow up.) |
Managed to fully remove Ready for one last review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing 💯 💯 💯
For posterity, here's a really zoomed-out screenshot of A+++ review from @estherkim, would request again 😃 |
We use
gulp-help
ingulpfile.js
to provide developers with detailed help for how to use various tasks. This PR was necessitated because thegulp4
branch ofgulp-help
hasn't been published to npm, and directly using thegithub
branch inpackage.json
can result in rate limiting during the package installation step in CI builds.amphtml/package.json
Line 118 in f6a651b
PR highlights:
gulp-help
gulp help
with the nativegulp --tasks
watch
task fromgulpfile.js
(was deprecated a year ago)gulp-util
(used to accompany gulp 3)Coming up: