Skip to content

Commit c0d2963

Browse files
committed
feature(ts2dart): ts2dart runs on all .js files.
Update the experimental ts2dart task to also read the .es6 files, which are the next step.
1 parent 9a0a2e3 commit c0d2963

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

gulpfile.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ var CONFIG = {
120120
transpile: {
121121
src: {
122122
js: ['modules/**/*.js', 'modules/**/*.es6'],
123-
dart: ['modules/**/*.js'],
124-
// Migrating to TypeScript, one package at a time. See http://goo.gl/RzzVxn
125-
ts2dart: ['modules/angular2/src/di/*.js', 'modules/angular2/test/di/*.js', 'modules/angular2/src/test_lib/*.js']
123+
dart: ['modules/**/*.js']
126124
},
127125
options: {
128126
js: {
@@ -353,7 +351,7 @@ gulp.task('build/transpile.dart', transpile(gulp, gulpPlugins, {
353351
}));
354352

355353
gulp.task('build/transpile.dart.ts2dart', function() {
356-
return gulp.src(CONFIG.transpile.src.ts2dart)
354+
return gulp.src(CONFIG.transpile.src.dart)
357355
.pipe(ts2dart.transpile())
358356
.pipe(gulp.dest('dist/dart.ts2dart'))
359357
});
@@ -365,7 +363,7 @@ gulp.task('build/format.dart.ts2dart', rundartpackage(gulp, gulpPlugins, {
365363

366364
// Temporary tasks for development on ts2dart. Will likely fail.
367365
gulp.task('build/transpile.dart.ts2dart.all', function() {
368-
return gulp.src(CONFIG.transpile.src.dart)
366+
return gulp.src(CONFIG.transpile.src.js)
369367
.pipe(ts2dart.transpile())
370368
.pipe(gulp.dest('dist/dart.ts2dart'));
371369
});

0 commit comments

Comments
 (0)