Skip to content

Commit

Permalink
feature(ts2dart): ts2dart runs on all .js files.
Browse files Browse the repository at this point in the history
Update the experimental ts2dart task to also read the .es6 files, which are the next step.
  • Loading branch information
alexeagle committed Mar 26, 2015
1 parent 9a0a2e3 commit c0d2963
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ var CONFIG = {
transpile: {
src: {
js: ['modules/**/*.js', 'modules/**/*.es6'],
dart: ['modules/**/*.js'],
// Migrating to TypeScript, one package at a time. See http://goo.gl/RzzVxn
ts2dart: ['modules/angular2/src/di/*.js', 'modules/angular2/test/di/*.js', 'modules/angular2/src/test_lib/*.js']
dart: ['modules/**/*.js']
},
options: {
js: {
Expand Down Expand Up @@ -353,7 +351,7 @@ gulp.task('build/transpile.dart', transpile(gulp, gulpPlugins, {
}));

gulp.task('build/transpile.dart.ts2dart', function() {
return gulp.src(CONFIG.transpile.src.ts2dart)
return gulp.src(CONFIG.transpile.src.dart)
.pipe(ts2dart.transpile())
.pipe(gulp.dest('dist/dart.ts2dart'))
});
Expand All @@ -365,7 +363,7 @@ gulp.task('build/format.dart.ts2dart', rundartpackage(gulp, gulpPlugins, {

// Temporary tasks for development on ts2dart. Will likely fail.
gulp.task('build/transpile.dart.ts2dart.all', function() {
return gulp.src(CONFIG.transpile.src.dart)
return gulp.src(CONFIG.transpile.src.js)
.pipe(ts2dart.transpile())
.pipe(gulp.dest('dist/dart.ts2dart'));
});
Expand Down

0 comments on commit c0d2963

Please sign in to comment.