Optimise npm install in squash for speed & logs visibility (#6158)

* Optimise npm install in squash for speed & logs

- `--no-optional` prevents installing dependencies that shouldn’t be needed for a one-off build
- `--no-audit` prevents running the `npm audit`
- `--progress=false`

* Add additional --no-fund flag to npm install

* Add "CI=true" environment variable to Squash builds for Node tooling

* Move CI=true to commands that need it

* Remove options that did not work
pull/6181/head
Thibaud Colas 2020-06-25 16:03:42 +01:00 zatwierdzone przez GitHub
rodzic 9baf6ce62a
commit c58a681828
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -8,7 +8,7 @@ deployments:
- pip install setuptools pip --upgrade --force-reinstall
- cd /code
post_build_steps:
- npm install --no-save
- npm install --no-save --no-audit --progress=false
- npm run dist
- pip install /code
- mkdir /myproject