Rename shrinkwrap to package-lock and fix version (#9471)

This commit is contained in:
Oliver Günther
2021-07-19 08:29:44 +02:00
committed by GitHub
parent 582e69d5f1
commit ab940052b7
5 changed files with 40647 additions and 17750 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ try 'bundle install > log/setup_dev.log'
echo "done."
echo "Installing node_modules ... "
try 'npm install --no-shrinkwrap >> log/setup_dev.log'
try '(cd frontend && npm ci) >> log/setup_dev.log'
echo "Linking plugin modules"
try 'bundle exec rake openproject:plugins:register_frontend >> log/setup_dev.log'
@@ -164,7 +164,7 @@ file to see which port each browser container is exposed on. The password is `se
## Local files
Running the docker images will change some of your local files in the mounted code directory.
The file `frontend/npm-shrinkwrap.json` may be modified.
The file `frontend/package-lock.json` may be modified.
You can just reset these changes if you want to commit something or pull the latest changes.
## Debugging
+7 -6
View File
@@ -59,14 +59,15 @@ For more information on styling the application, see [STYLING](./STYLING.md).
## Changing or updating Dependencies
We use `npm shrinkwrap` to lock down runtime (but not development)
dependencies. When adding or removing dependencies, please adhere to the
following workflow:
We use a `package-lock` to lock down runtime (but not development)
dependencies. When adding or removing dependencies, please use `npm install` to also update the lockfile.
Please commit `package-lock.json` along with any changes to `package.json`.
npm install
npm shrinkwrap
If you want to install the packages from the lockfile without updating it, please use the following command:
Please commit `npm-shrinkwrap.json` along with any changes to `package.json`.
```
npm ci
```
## Topics
-17742
View File
File diff suppressed because it is too large Load Diff
+40638
View File
File diff suppressed because it is too large Load Diff