separate npm link script from start

This commit is contained in:
Mario Romano
2016-07-06 12:25:18 +01:00
parent 4ded58aecc
commit fc64f96606
3 changed files with 28 additions and 16 deletions

21
scripts/start-linked.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
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