-
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
🏗 Replace gulp
with the amp
task runner
#33315
Conversation
Hey @danielrozenberg! These files were changed:
Hey @alanorozco! These files were changed:
Hey @estherkim! These files were changed:
Hey @gmajoulet, @processprocess, @t0mg! These files were changed:
Hey @Enriqe! These files were changed:
Hey @ampproject/wg-caching! These files were changed:
|
This PR is ready for preliminary review while I iron out any issues found during CI. Reviewer notes:
|
Is there any difference in speed? |
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.
Approved for validator. There's a couple of internal docs that I'll update once this is merged.
Also second Daniel's comment, can we remove gulp
as a required install? If so I'll update our new dev docs internally.
With
The idea of this PR is to no longer require the |
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.
Awesome! Some nits.
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.
install-task-runner.js
appears to have resolved my concern from earlier.
Nice work Raghu!
All CI jobs are green, and I've re-tested the transition paths with and without global installs of |
This PR replaces
gulp
with a lightweight task runner with a single-file implementation.PR highlights:
amp
task runner based on thecommander
CLI interfacegulpfile.js
and uninstallgulp
from the rootpackage.json
amp
equivalents for all existinggulp
commandsgulp
that redirects toamp
after printing a deprecation noticegulp
commands with theiramp
equivalentsNotes:
gulp
commands will continue to work via theamp
task runnernpm install
, and carry on)Reasons behind the choice of
commander
:gulp
-based dev tools--help
)gulp
(multiple MB + dependencies)gulp
Screenshots:
New interface:
amp
Deprecation notice:
gulp
Top-level help:
amp --help
Task-level help:
amp dist --help
Unknown task:
amp foo
Invalid invocation:
amp lint --foo --bar
First-time install with global
gulp-cli
:npm i
First-time install without global
gulp-cli
:npm i
Subsequent install:
npm i
Fixes #32585