From c58a681828a48025168af155d1aac512147465aa Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Thu, 25 Jun 2020 16:03:42 +0100 Subject: [PATCH] Optimise npm install in squash for speed & logs visibility (#6158) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- .squash.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.squash.yml b/.squash.yml index 18ba48cc89..5c3af44561 100644 --- a/.squash.yml +++ b/.squash.yml @@ -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