EVO: script-update > check if node_modules are installed else use "npm install"

pull/1/head
Thomas Metois 2017-03-01 10:26:21 +01:00 committed by Guillaume Lesniak
parent 5e31b15fbc
commit 754e319f3f
1 changed files with 12 additions and 3 deletions

View File

@ -33,9 +33,18 @@ else
pathFO="vendor/monarc/frontoffice"
fi
pull_if_exists node_modules/ng_backoffice
pull_if_exists node_modules/ng_client
pull_if_exists node_modules/ng_anr
if [[ -d node_modules && -d node_modules/ng_anr ]]; then
if [[ -d node_modules/ng_anr/.git ]]; then
pull_if_exists node_modules/ng_backoffice
pull_if_exists node_modules/ng_client
pull_if_exists node_modules/ng_anr
else
npm update
fi
else
npm install
fi
if [ -d $pathCore ]; then
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./$pathCore/migrations/phinx.php