Skip to content

Commit

Permalink
docs: dependencies update/upgrade documentation additions (branch nam…
Browse files Browse the repository at this point in the history
…ing, package-lock.json)
  • Loading branch information
shauke committed Mar 2, 2021
1 parent a6ea01d commit a695bc4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/guides/upgrading-pwa.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ You can also run specific subparts of it for verification.

Do not upgrade too many packages at once as you can easily lose track of the process and have to start anew.

Name your GitHub branch for the dependencies update `update/...` or `upgrade/...` to run additional 'Updates' checks in the GitHub CI.

### 0. Before the Update

Check if all third-party libraries for the PWA are compatible with the new version.
Expand Down Expand Up @@ -110,6 +112,12 @@ At the end code re-formatting and optional refactorings should reside in individ

Add documentation with migration instructions to the [migration guide](./migrations.md).

### 8. Rewrite package-lock.json

Once all dependencies updates are finished it might be a good idea to re-generate the `package-lock.json`.
For this the `node_modules` folder and the `package-lock.json` need to be removed.
Afterwards `npm install` must be run to get a new clean `package-lock.json` that can either be amended, if the dependencies update is a single update commit, or as an additional commit.

## Security Vulnerabilities

Sometimes `npm install` reports security vulnerabilities:
Expand Down

0 comments on commit a695bc4

Please sign in to comment.