From 18ff2be9bb1ab2f1d09db157be9bec93b3850aef Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Wed, 25 Mar 2015 20:37:39 -0700 Subject: [PATCH] feat(ts2dart): include srcFolderInsertion in ts2dart step. --- gulpfile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index e01efedaa6..d21bd7866f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -365,6 +365,7 @@ gulp.task('build/format.dart.ts2dart', rundartpackage(gulp, gulpPlugins, { gulp.task('build/transpile.dart.ts2dart.all', function() { return gulp.src(CONFIG.transpile.src.js) .pipe(ts2dart.transpile()) + .pipe(util.insertSrcFolder(gulpPlugins, CONFIG.srcFolderInsertion.dart)) .pipe(gulp.dest('dist/dart.ts2dart')); }); gulp.task('ts2dart', function(done) { @@ -673,14 +674,14 @@ gulp.task('test.unit.cjs', ['build.js.cjs'], function () { }); //Watcher to run tests when dist/js/cjs/angular2 is updated by the first watcher (after clearing the node cache) gulp.watch(CONFIG.dest.js.cjs + '/angular2/**/*.js', function(event) { - for (var id in require.cache) { + for (var id in require.cache) { if (id.replace(/\\/g, "/").indexOf(CONFIG.dest.js.cjs) > -1) { - delete require.cache[id]; + delete require.cache[id]; } } runSequence('test.unit.cjs/ci', function() {}); }); - + }); // ------------------