-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Build: update Node to version 8 LTS (carbon) #19317
Conversation
@DanReyLop Do you have familiarity with |
Labeled as blocked awaiting official LTS announcement… |
Not familiar, but I'll never stop learning :) I vaguely recall that we want to have both Give me the rest of today, I'll look at this in the afternoon. |
This looks like an indirect dependency installing by sha. I'm not sure where this is happening. |
79e1c10
to
fce8116
Compare
O HAI
Bumping |
Nothing at all -- the Calypso fork has an up-to-date branch with 1.7.1 I created a few weeks ago. Give me ~24 hours to update to the latest 1.7.4 and create an upgrade PR. |
Isn't npm 5 able to reuse existing shrinkwrap file and use it instead of |
@gziolo I also get the impression that shrinkwrap has precedence over lock and we may not need to make changes around
☝️ from npm-package-locks |
Yep! My thumb of rule with these files has been:
If you end up having both, package-lock is ignored. Considerations:
My take: Hope this helps to decide! |
BTW this was lovely, on updating Node v6 to 8:
— via ;-) |
The I've removed it in 0ef64ba, any reasons to keep it? |
+1 on moving to |
As far as I can see, there aren't any blockers and testing looks good. I'll plan to merge in the next 24 hours if there aren't any objections. |
Looks like most of the added lines are from the integrity field. If our first attempt doesn't build properly we may need to check if our cached packages match. https://docs.npmjs.com/files/package-lock.json#integrity |
Smoke tested a bit on Docker, and things appeared to work well ✨
@astralbodies are you okay with this approach? Or should we try fixing some of the issues now? |
I got an off-GitHub OK from astralbodies. Merge is imminent… |
Don't run "npm install" twice, this was workaround for older npm peculiarities. Remove the `--dev` flag from `npm shrinkwrap` as it's now the default.
We'll continue to use `npm-shrinkwrap.json` which serves the same purpose.
Optional dependencies will continue to be installed if supported. This will generate the same shrinkwrap independent of the operating system where the shrinkwrap is generated. This was an annoyance where `fsevents` would be added or removed from the shrinkwrap frequently.
Change in 01dee67 appears to break docker builds on osx
It's used by `bin/minify.js`, which is called as part of production builds after `npm install --production`. This was breaking local docker builds.
1ba5907
to
95c7126
Compare
Applies the changes from #19317
Build failed: pMz3w-7Pz-p2 Take 2: #19759 |
Upgrade to node 8 and npm 5 Second attempt with the changes from #19317
* Update to node 8.9.1 * Remove preshrinkwrap which was causing infinite loop * Simplified update-deps script for npm@5 Don't run "npm install" twice, this was workaround for older npm peculiarities. Remove the `--dev` flag from `npm shrinkwrap` as it's now the default. * Disable package-lock.json generation in config We'll continue to use `npm-shrinkwrap.json` which serves the same purpose. * Remove duplicate npm install from Dockerfile * Move uglify-js to dependencies It's used by `bin/minify.js`, which is called as part of production builds after `npm install --production`. This was breaking local docker builds.
* Revert Automattic#19317 * Regenerate shrinkwrap with node6/npm3
Upgrade to node 8 and npm 5 Second attempt with the changes from Automattic#19317
This PR updates Calypso to node
v8.9.1
which is the latest LTS release. 🎉This PR closely follows #16820 to upgrade node to version
8.9.1
.Testing
8.9.1
(npm@5.1.1
)nvm install 8 && nvm use 8
npm run distclean
npm start
npm run build-docker
npm run docker
Blockers
calypso-prettier
sha dependency issue ( Upgrade Prettier to version 1.7.4 #19519)