Skip to content

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.)

@derhuerst derhuerst requested a review from vesameskanen March 24, 2023 12:49
This was referenced Mar 24, 2023
derhuerst added 26 commits June 23, 2023 10:22
- 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.
derhuerst and others added 4 commits June 23, 2023 10:22
@optionsome optionsome merged commit b1ce938 into v3 Aug 21, 2023
@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.

5 participants