🏗 Migrate amphtml package management from yarn to npm#30694
🏗 Migrate amphtml package management from yarn to npm#30694rsimha merged 3 commits intoampproject:masterfrom rsimha:2020-10-02-YarnNpm
amphtml package management from yarn to npm#30694Conversation
|
Hey @estherkim! These files were changed: Hey @wassgha! These files were changed: Hey @danielrozenberg! These files were changed: |
|
This PR is now ready for preliminary review. Once reviewed and approved, I'll coordinate the merging of this PR with internal release system changes. |
kristoferbaxter
left a comment
There was a problem hiding this comment.
A few minor comments, but overall looks great!
rsimha
left a comment
There was a problem hiding this comment.
Excellent comments all around! All addressed, except for the python deprecation and Java removal changes, which are out of scope here.
rcebulko
left a comment
There was a problem hiding this comment.
Updated comment re: flamegraph gitignore
|
@honeybadgerdontcare for owners approval of changes in |
|
|
We don't run the link-checker for all files, all the time on amphtml/build-system/pr-check/checks.js Lines 87 to 90 in 4ef897f I can fix this URL though. Would https://amp.dev/documentation/guides-and-tutorials/start/create work as a reasonable substitute? Edit: This guide is a better option. I've sent out #30732 with a fix and will rebase this PR once it's merged. |
|
Latest version of this PR has been verified on Linux, macOS, and Windows. Internal release code has been updated to work through the transition from yarn to npm. Merging this now 🤞. Edit: So far so good. Release system has been verified to work through this transition. Renovate PRs are updating the correct lockfile. |
|
Congrats on getting this through so quickly! ⭐ |
This PR changes AMP's package manager from
yarntonpm. For a detailed discussion of why, see #30518.PR highlights:
yarn.lockfiles in the repo withpackage-lock.jsonyarncheck-package-manager.jsto error out whenyarnis used to install dependenciesyarnintegrity check for a stalenode_moduleswithcheck-dependencies, which runs in O(milliseconds)package-lock.jsonvalidator/scripts to usenpm installinstead ofyarnamphtmldeveloper docsTested the following workflows:
gulptask without installing packages (prompted to runnpm install,yarnused to error out)yarnhas been fixed bynpm)Notes for developers (after syncing past this PR):
yarnwill now result in an error. Usenpm installinstead. All other dev commands have been updated, there's nothing new to do.npm installonce. (An in-place reinstall is sufficient, no need to deletenode_modules/.)yarn.lockand updatingpackage-lock.json(by invokingnpm install)node-gyp(part ofnodejs) may print verbose logs with expected error messages during first-time install. Foramphtmldevelopment, they are harmless and can be ignored.Fixes #30518