mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Rename shrinkwrap to package-lock and fix version (#9471)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Generated
-17742
File diff suppressed because it is too large
Load Diff
Generated
+40638
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user