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

switch to Node.js v16 #4776

Merged
merged 33 commits into from
Aug 21, 2023
Merged

switch to Node.js v16 #4776

merged 33 commits into from
Aug 21, 2023

Conversation

derhuerst
Copy link
Member

@derhuerst derhuerst commented Mar 24, 2023

This PR includes the changes of and depends on PR #4545; Please review & merge that one first.

Proposed Changes

  • Dockerfile, CI, .nvmrc, engines.node: switch to Node.js v16
  • upgrade necessary (dev) dependencies

Pull Request Check List

  • A reasonable set of unit tests is included
  • Console does not show new warnings/errors
  • Changes are documented or they are self explanatory
  • Code coverage does not decrease (unless measured incorrectly)

Review

  • Read and verify the code changes
  • Test the functionality by running the UI locally with all popular browsers available in your platform
  • Check that the implementation matches the design, when such one is defined in a Jira issue
  • Merge the pull request

(This is the upstream equivalent of embarkokc#21.)

- use 1.4 syntax to support `COPY --link` commands
- set NODE_ENV=production
- remove $WORK build arg
…ching

- If e.g. `test` has been added in a command/step, removing it in a
subsequent command/step does not have a positive effect on the image size.
Rather, we add it .dockerignore to stop adding it in the first place.
- node_modules/.cache & /tmp/Relay* are populated by Webpack plugins.
app/server.js reads .entrypoints.main.assets in order to generate an appropriate
manifest and `preload` tags, but it doesn't need the rest. This is why we turn
all stats off via `all: false` and then selectively turn `entrypoints` on.

Before, stats.json was 82mb, now it is ~9kb.
Even if a commit has changed `yarn.lock`, we can use an old `.yarn/cache` directory, so that we don't have to fetch 99% of all dependencies again.
This probably improves favicons-webpack-plugin's performance, as node_modules won't be resolved for resolving the path.
@optionsome optionsome merged commit b1ce938 into v3 Aug 21, 2023
4 checks passed
@derhuerst derhuerst deleted the node16-upstream branch August 21, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants