ExtractTranslations: Use grunt from PATH or from node_modules, whichever is available

pull/8/head
Guillaume Lesniak 2016-12-16 17:17:56 +01:00
parent f2d2fc6221
commit 05572885ce
1 changed files with 12 additions and 2 deletions

View File

@ -2,11 +2,21 @@
if [ -d node_modules/ng_backoffice ]; then
pushd node_modules/ng_backoffice
if [ -f node_modules/.bin/grunt ]; then
node_modules/.bin/grunt extract_translations
else
grunt extract_translations
fi
fi
if [ -d node_modules/ng_client ]; then
pushd node_modules/ng_client
if [ -f node_modules/.bin/grunt ]; then
node_modules/.bin/grunt extract_translations
else
grunt extract_translations
fi
fi