New script to build components prior to running start.sh

- Add to start-linked.sh
This commit is contained in:
Will Abson
2016-07-28 10:24:00 +01:00
parent 77290442ba
commit f55b8938fa
2 changed files with 15 additions and 16 deletions

13
scripts/npm-build-all.sh Executable file
View 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}