use npm ci to install ui dependencies

This commit is contained in:
Jake McDermott
2019-01-22 10:45:48 -05:00
parent 4788f0814f
commit 5afabc7a19
5 changed files with 40 additions and 36 deletions

View File

@@ -57,22 +57,13 @@ npm --prefix awx/ui run e2e
## Adding dependencies
```shell
# add a development or build dependency
npm install --prefix awx/ui --save-dev dev-package@1.2.3
# add a production dependency
npm install --prefix awx/ui --save prod-package@1.23
# add the updated package.json and lock files to scm
git add awx/ui/package.json awx/ui/package-lock.json
```
## Adding exact dependencies
```shell
# add an exact development or build dependency
npm install --prefix awx/ui --save-dev --save-exact dev-package@1.2.3
# add an exact production dependency
npm install --prefix awx/ui --save --save-exact prod-package@1.23
# add the updated package.json and package-lock.json files to scm
git add awx/ui/package.json awx/ui/package-lock.json
```
## Removing dependencies