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

@ -71,7 +71,7 @@ require('./scripts/snapshot/snapshot.task')(gulp, argv, buildConfig);
// Take es6 files from angular2's output, rename to js, and move to dist/lib/ // Take es6 files from angular2's output, rename to js, and move to dist/lib/
gulp.task('ng2-rename', function(done) { gulp.task('ng2-rename', function(done) {
exec('ls dist/angular-master', function(err) { exec('test -e dist/angular-master', function(err) {
if (err) { if (err) {
console.log('You have not installed angular master.\n' + console.log('You have not installed angular master.\n' +
'Please run ./scripts/build/update-angular.sh.\n' + 'Please run ./scripts/build/update-angular.sh.\n' +

View File

@ -25,10 +25,9 @@
"q": "^1.2.0", "q": "^1.2.0",
"request": "^2.53.0", "request": "^2.53.0",
"serve-static": "~1.8.1", "serve-static": "~1.8.1",
"systemjs": "^0.11.3", "systemjs-builder": "^0.9.1",
"through2": "~0.6.3", "through2": "~0.6.3",
"yargs": "^3.6.0", "yargs": "^3.6.0"
"systemjs-builder": "^0.9.1"
}, },
"dependencies": { "dependencies": {
"es6-module-loader": "~0.11.0", "es6-module-loader": "~0.11.0",

View File

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