From aaf543d0bc3ef6dda7fe8854b8939c42a6c02c2f Mon Sep 17 00:00:00 2001 From: Guillaume Lesniak Date: Thu, 25 Aug 2016 15:42:05 +0200 Subject: [PATCH] scripts: Update for FO modules --- scripts/update-all.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/scripts/update-all.sh b/scripts/update-all.sh index c67e8e3..04da8d8 100755 --- a/scripts/update-all.sh +++ b/scripts/update-all.sh @@ -15,10 +15,19 @@ php composer.phar update -o pull_if_exists module/MonarcCore pull_if_exists module/MonarcBO +pull_if_exists module/MonarcFO pull_if_exists node_modules/ng_backoffice +pull_if_exists node_modules/ng_client php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/MonarcCore/migrations/phinx.php -php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/MonarcBO/migrations/phinx.php + +if [ -d module/MonarcBO ]; then + php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/MonarcBO/migrations/phinx.php +fi + +if [ -d module/MonarcFO ]; then + php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/MonarcFO/migrations/phinx.php +fi if [ -d node_modules/ng_backoffice ]; then cd node_modules/ng_backoffice @@ -26,5 +35,11 @@ if [ -d node_modules/ng_backoffice ]; then cd ../.. fi +if [ -d node_modules/ng_client ]; then + cd node_modules/ng_client + npm install + cd ../.. +fi + ./scripts/link_modules_resources.sh ./scripts/compile_translations.sh