From eef5f47a1a373f07ca8e229728f9aa84e0c3c98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jakes=CC=8C?= Date: Thu, 28 Feb 2019 15:59:49 +0100 Subject: [PATCH] Use 'npm ci' instead of 'npm install' in scripts [MAILPOET-1837] --- RoboFile.php | 2 +- build.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RoboFile.php b/RoboFile.php index 90ecd213c5..0b74a4646d 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -8,7 +8,7 @@ class RoboFile extends \Robo\Tasks { return $this->taskExecStack() ->stopOnFail() ->exec('./composer.phar install') - ->exec('npm install') + ->exec('npm ci') ->run(); } diff --git a/build.sh b/build.sh index 20f3c1d30a..8b2d496da5 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -e -# Translations (npm install & composer install need to be run before) +# Translations (npm ci & composer install need to be run before) echo '[BUILD] Generating translations' ./do makepot ./do packtranslations @@ -19,7 +19,7 @@ mkdir $plugin_name # Production assets. echo '[BUILD] Generating production CSS and JS assets' rm -rf node_modules -npm install +npm ci ./do compile:all --env production # Dependency injection container cache.