Use 'npm ci' instead of 'npm install' in scripts

[MAILPOET-1837]
This commit is contained in:
Jan Jakeš
2019-02-28 15:59:49 +01:00
committed by M. Shull
parent 169452825c
commit eef5f47a1a
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ class RoboFile extends \Robo\Tasks {
return $this->taskExecStack()
->stopOnFail()
->exec('./composer.phar install')
->exec('npm install')
->exec('npm ci')
->run();
}

View File

@ -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.