mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix update-angular script
This commit is contained in:
@ -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 "--"
|
||||
|
Reference in New Issue
Block a user