mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
scripts can be run from anywhere
updated all scripts except update-version.sh to be able to run from anywhere. Previously you had to be in the scripts directory to run them. fixes #361
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
for PACKAGE in \
|
||||
ng2-alfresco-core \
|
||||
ng2-alfresco-datatable \
|
||||
@@ -10,10 +12,9 @@ for PACKAGE in \
|
||||
ng2-alfresco-viewer
|
||||
do
|
||||
echo "====== clean component: ${PACKAGE} ====="
|
||||
cd ../ng2-components/${PACKAGE}
|
||||
cd "$DIR/../ng2-components/${PACKAGE}"
|
||||
npm run clean
|
||||
cd ../../scripts/
|
||||
done
|
||||
|
||||
cd ./../demo-shell-ng2
|
||||
npm run clean
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
npm run clean
|
||||
|
Reference in New Issue
Block a user