fix update-angular script

This commit is contained in:
Andrew
2015-03-24 10:51:27 -06:00
parent 22bb1fff68
commit 68cf64fe56
3 changed files with 9 additions and 12 deletions

View File

@ -1,14 +1,10 @@
#!/bin/sh
NG_FOLDER=angular-master
NG_FOLDER=dist/angular-master
cd $(dirname $0)/../..
cd $(dirname $0)/../../
cd dist
if ! [ $(ls | grep $NG_FOLDER) ]; then
echo "Cloning angular2 to dist/angular-master..."
git clone git@github.com:angular/angular $NG_FOLDER
fi
$(test -e $NG_FOLDER) || (git clone git@github.com:angular/angular $NG_FOLDER)
cd $NG_FOLDER
echo "Running npm install in angular2..."
@ -17,4 +13,6 @@ npm install
echo "Running gulp to build source..."
gulp build/transpile.js.dev.es6
echo "-- DONE --"
echo "--"
echo "-- DONE, gulp will work now --"
echo "--"