feature(ts2dart): ts2dart runs on all .js files.
Update the experimental ts2dart task to also read the .es6 files, which are the next step.
This commit is contained in:
parent
9a0a2e319c
commit
c0d296334c
|
@ -120,9 +120,7 @@ var CONFIG = {
|
||||||
transpile: {
|
transpile: {
|
||||||
src: {
|
src: {
|
||||||
js: ['modules/**/*.js', 'modules/**/*.es6'],
|
js: ['modules/**/*.js', 'modules/**/*.es6'],
|
||||||
dart: ['modules/**/*.js'],
|
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']
|
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
js: {
|
js: {
|
||||||
|
@ -353,7 +351,7 @@ gulp.task('build/transpile.dart', transpile(gulp, gulpPlugins, {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
gulp.task('build/transpile.dart.ts2dart', function() {
|
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(ts2dart.transpile())
|
||||||
.pipe(gulp.dest('dist/dart.ts2dart'))
|
.pipe(gulp.dest('dist/dart.ts2dart'))
|
||||||
});
|
});
|
||||||
|
@ -365,7 +363,7 @@ gulp.task('build/format.dart.ts2dart', rundartpackage(gulp, gulpPlugins, {
|
||||||
|
|
||||||
// Temporary tasks for development on ts2dart. Will likely fail.
|
// Temporary tasks for development on ts2dart. Will likely fail.
|
||||||
gulp.task('build/transpile.dart.ts2dart.all', function() {
|
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(ts2dart.transpile())
|
||||||
.pipe(gulp.dest('dist/dart.ts2dart'));
|
.pipe(gulp.dest('dist/dart.ts2dart'));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue