mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
New script to build components prior to running start.sh
- Add to start-linked.sh
This commit is contained in:
13
scripts/npm-build-all.sh
Executable file
13
scripts/npm-build-all.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
components_dir="$DIR/../ng2-components"
|
||||
|
||||
for comp_dir in $( ls "$components_dir" ); do
|
||||
echo $comp_dir
|
||||
test -f "$components_dir/$comp_dir/package.json" && \
|
||||
cd "$components_dir/$comp_dir" && \
|
||||
npm run build
|
||||
done
|
||||
|
||||
cd ${DIR}
|
@@ -3,19 +3,5 @@
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
"$DIR/npm-link-demo-shell.sh"
|
||||
|
||||
cd "$DIR/../demo-shell-ng2"
|
||||
|
||||
if [[ $1 = "-install" ]]; then
|
||||
npm install
|
||||
npm run start
|
||||
elif [[ $1 = "-update " ]]; then
|
||||
npm run update
|
||||
npm run start
|
||||
elif [[ $1 = "-cleanInstall" ]]; then
|
||||
npm run clean
|
||||
npm install
|
||||
npm run start
|
||||
else
|
||||
npm run start
|
||||
fi
|
||||
"$DIR/npm-build-all.sh"
|
||||
"$DIR/start.sh"
|
||||
|
Reference in New Issue
Block a user