chore(transform): move transform module to modules_dart

The build/pure-packages.dart gulp task has also been updated to move the files into the angular2 tree.
Closes #3729
This commit is contained in:
Jeff Cross 2015-08-19 10:36:52 -07:00
parent 92da5430e7
commit 88a5b8da0f
245 changed files with 16 additions and 3 deletions

View File

@ -820,15 +820,25 @@ gulp.task('test.typings', ['!pre.test.typings'], function() {
//
// This task also fixes relative `dependency_overrides` paths in `pubspec.yaml`
// files.
//
// This task is expected to be run after build/tree.dart
gulp.task('build/pure-packages.dart', function() {
var through2 = require('through2');
var yaml = require('js-yaml');
var originalPrefix = '../../dist/dart/';
return gulp
var transformStream = gulp
.src([
'modules_dart/transform/**/*',
'!modules_dart/transform/pubspec.yaml'
])
.pipe(gulp.dest(path.join(CONFIG.dest.dart, 'angular2')));
var moveStream = gulp
.src([
'modules_dart/**/*.dart',
'modules_dart/**/pubspec.yaml',
'!modules_dart/transform/**'
])
.pipe(through2.obj(function(file, enc, done) {
if (file.path.endsWith('pubspec.yaml')) {
@ -864,17 +874,20 @@ gulp.task('build/pure-packages.dart', function() {
this.push(file);
done();
}))
.pipe(gulp.dest('dist/dart'));
.pipe(gulp.dest(CONFIG.dest.dart));
return merge2(transformStream, moveStream);
});
// Builds all Dart packages, but does not compile them
gulp.task('build/packages.dart', function(done) {
runSequence(
'build/tree.dart',
'build/pure-packages.dart',
// Run after 'build/tree.dart' because broccoli clears the dist/dart folder
'!build/pubget.angular2.dart',
'!build/change_detect.dart',
'build/pure-packages.dart',
sequenceComplete(done));
});

Some files were not shown because too many files have changed in this diff Show More