relative pointing (#1879)

readme modify
start.sh and nom-build-all refactoring
change travis conf
update version of zone.js (fixes console error)
karma conf remove dist
add alias build
override tsconfig components build
This commit is contained in:
Eugenio Romano
2017-05-22 09:57:10 +01:00
committed by Eugenio Romano
parent d5f90a59f4
commit 075ee8a538
55 changed files with 815 additions and 258 deletions

View File

@@ -2,6 +2,14 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
eval EXEC_CLEAN_DEMO=true
show_help() {
echo "Usage: npm-clean.sh"
echo ""
echo "-sd or -skipDemo skip the clean of the demo folder of any components"
}
eval projects=( "ng2-activiti-diagrams"
"ng2-activiti-analytics"
"ng2-activiti-form"
@@ -20,25 +28,42 @@ eval projects=( "ng2-activiti-diagrams"
"ng2-alfresco-webscript"
"ng2-alfresco-userinfo" )
npm install rimraf
clea_demo() {
EXEC_CLEAN_DEMO=false
}
while [[ $1 == -* ]]; do
case "$1" in
-h|--help|-\?) show_help; exit 0;;
-sd|--skipDemo) update; shift;;
-*) shift;;
esac
done
for PACKAGE in ${projects[@]}
do
echo "====== clean component: ${PACKAGE} ====="
cd "$DIR/../ng2-components/${PACKAGE}"
npm run clean
if [ -d "$DIR/../ng2-components/${PACKAGE}/demo" ]; then
echo "====== clean component demo: ${PACKAGE} ====="
cd "$DIR/../ng2-components/${PACKAGE}/demo"
echo "====== clean component: ${PACKAGE} ====="
cd "$DIR/../ng2-components/${PACKAGE}"
npm install rimraf
npm run clean
fi
if $EXEC_CLEAN_DEMO == true; then
if [ -d "$DIR/../ng2-components/${PACKAGE}/demo" ]; then
echo "====== clean component demo: ${PACKAGE} ====="
cd "$DIR/../ng2-components/${PACKAGE}/demo"
npm install rimraf
npm run clean
fi
fi
done
cd "$DIR/../demo-shell-ng2"
npm install rimraf
npm run clean
cd "$DIR/../ng2-components"
npm install rimraf
npm run clean
cd ${DIR}