ExtractTranslations: Use grunt from PATH or from node_modules, whichever is available
parent
f2d2fc6221
commit
05572885ce
|
@ -2,11 +2,21 @@
|
|||
|
||||
if [ -d node_modules/ng_backoffice ]; then
|
||||
pushd node_modules/ng_backoffice
|
||||
node_modules/.bin/grunt extract_translations
|
||||
|
||||
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
|
||||
node_modules/.bin/grunt extract_translations
|
||||
|
||||
if [ -f node_modules/.bin/grunt ]; then
|
||||
node_modules/.bin/grunt extract_translations
|
||||
else
|
||||
grunt extract_translations
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue