mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Improved 'build all' script
This commit is contained in:
@@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
build_project() {
|
||||||
|
cd $1
|
||||||
|
echo "====== build project: $2 ====="
|
||||||
|
npm update
|
||||||
|
npm install --cache-min 9999999
|
||||||
|
npm run build
|
||||||
|
}
|
||||||
|
|
||||||
for PACKAGE in \
|
for PACKAGE in \
|
||||||
ng2-alfresco-core \
|
ng2-alfresco-core \
|
||||||
ng2-activiti-form \
|
ng2-activiti-form \
|
||||||
@@ -18,9 +26,7 @@ for PACKAGE in \
|
|||||||
ng2-activiti-analytics
|
ng2-activiti-analytics
|
||||||
do
|
do
|
||||||
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
|
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
|
||||||
echo "====== build components : ${PACKAGE} ====="
|
build_project $DESTDIR $PACKAGE
|
||||||
cd "$DESTDIR"
|
|
||||||
npm update
|
|
||||||
npm install --cache-min 9999999
|
|
||||||
npm run build
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
build_project "$DIR/../demo-shell-ng2" "Demo Shell"
|
||||||
|
Reference in New Issue
Block a user