diff --git a/gulpfile.js b/gulpfile.js index 78e1b6da1c..af6c010288 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -64,14 +64,14 @@ gulp.task('examples', ['sass'], function() { .pipe(rename(function(file) { file.dirname = file.dirname.replace('/examples/', '/'); })) - .pipe(gulp.dest(exampleDest)); + .pipe(gulpif({ isFile: true }, gulp.dest(exampleDest))); }); require('./scripts/snapshot/snapshot.task')(gulp, argv, buildConfig); // Take es6 files from angular2's output, rename to js, and move to dist/lib/ gulp.task('ng2-rename', function(done) { - exec('test -e dist/angular-master', function(err) { + exec('test -e node_modules/angular-master', function(err) { if (err) { console.log('You have not installed angular master.\n' + 'Please run ./scripts/build/update-angular.sh.\n' + @@ -79,7 +79,7 @@ gulp.task('ng2-rename', function(done) { return process.exit(1); } gulp.src([ - 'dist/angular-master/dist/js/dev/es6/{angular2,rtts_assert}/**/*.es6' + 'node_modules/angular-master/dist/js/dev/es6/{angular2,rtts_assert}/**/*.es6' ]) .pipe(rename({ extname: '.js' })) .pipe(gulp.dest('dist/lib')) diff --git a/package.json b/package.json index 729dcf94ae..dbba5f7257 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,6 @@ "karma-chrome-launcher": "^0.1.7", "karma-jasmine": "^0.3.5", "systemjs": "~0.11.0", - "through2": "^0.6.3", "traceur": "0.0.87", "zone.js": "0.4.1" }, diff --git a/scripts/build/update-angular.sh b/scripts/build/update-angular.sh index f0535ed617..b2fadc019b 100755 --- a/scripts/build/update-angular.sh +++ b/scripts/build/update-angular.sh @@ -1,6 +1,6 @@ #!/bin/sh -NG_FOLDER=dist/angular-master +NG_FOLDER=node_modules/angular-master cd $(dirname $0)/../../