From 7234d368e359d492515447914f7692c78db8f74d Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Wed, 18 Mar 2015 14:42:18 -0700 Subject: [PATCH] First hook in the angular build to run ts2dart. This expects files we are interested in to have the '.ts' extension. --- gulpfile.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 5c1810ca0f..0377a12096 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -345,6 +345,14 @@ gulp.task('build/transpile.dart', transpile(gulp, gulpPlugins, { srcFolderInsertion: CONFIG.srcFolderInsertion.dart })); +var ts2dart = require('gulp-ts2dart'); +gulp.task('build/transpile.dart.experimental', function() { + gulp.src('modules/**/*.ts') + .pipe(ts2dart.transpile()) + .pipe(ts2dart.format()) + .pipe(gulp.dest(CONFIG.dest.dart)) +}); + // ------------ // html