examples no longer outputs double folders

This commit is contained in:
Andrew
2015-03-24 11:04:25 -06:00
parent 44aceb9c38
commit 4b76a47328
3 changed files with 4 additions and 5 deletions

View File

@@ -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'))

View File

@@ -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"
},

View File

@@ -1,6 +1,6 @@
#!/bin/sh
NG_FOLDER=dist/angular-master
NG_FOLDER=node_modules/angular-master
cd $(dirname $0)/../../