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()
|
return $this->taskExecStack()
|
||||||
->stopOnFail()
|
->stopOnFail()
|
||||||
->exec('./composer.phar install')
|
->exec('./composer.phar install')
|
||||||
->exec('npm install')
|
->exec('npm ci')
|
||||||
->run();
|
->run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
build.sh
4
build.sh
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -e
|
#!/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'
|
echo '[BUILD] Generating translations'
|
||||||
./do makepot
|
./do makepot
|
||||||
./do packtranslations
|
./do packtranslations
|
||||||
@ -19,7 +19,7 @@ mkdir $plugin_name
|
|||||||
# Production assets.
|
# Production assets.
|
||||||
echo '[BUILD] Generating production CSS and JS assets'
|
echo '[BUILD] Generating production CSS and JS assets'
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
npm install
|
npm ci
|
||||||
./do compile:all --env production
|
./do compile:all --env production
|
||||||
|
|
||||||
# Dependency injection container cache.
|
# Dependency injection container cache.
|
||||||
|
Reference in New Issue
Block a user