Use 'npm ci' instead of 'npm install' in scripts
[MAILPOET-1837]
This commit is contained in:
@ -8,7 +8,7 @@ class RoboFile extends \Robo\Tasks {
|
||||
return $this->taskExecStack()
|
||||
->stopOnFail()
|
||||
->exec('./composer.phar install')
|
||||
->exec('npm install')
|
||||
->exec('npm ci')
|
||||
->run();
|
||||
}
|
||||
|
||||
|
4
build.sh
4
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.
|
||||
|
Reference in New Issue
Block a user