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:
parent
92da5430e7
commit
88a5b8da0f
19
gulpfile.js
19
gulpfile.js
|
@ -820,15 +820,25 @@ gulp.task('test.typings', ['!pre.test.typings'], function() {
|
||||||
//
|
//
|
||||||
// This task also fixes relative `dependency_overrides` paths in `pubspec.yaml`
|
// This task also fixes relative `dependency_overrides` paths in `pubspec.yaml`
|
||||||
// files.
|
// files.
|
||||||
|
//
|
||||||
|
// This task is expected to be run after build/tree.dart
|
||||||
gulp.task('build/pure-packages.dart', function() {
|
gulp.task('build/pure-packages.dart', function() {
|
||||||
var through2 = require('through2');
|
var through2 = require('through2');
|
||||||
var yaml = require('js-yaml');
|
var yaml = require('js-yaml');
|
||||||
var originalPrefix = '../../dist/dart/';
|
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([
|
.src([
|
||||||
'modules_dart/**/*.dart',
|
'modules_dart/**/*.dart',
|
||||||
'modules_dart/**/pubspec.yaml',
|
'modules_dart/**/pubspec.yaml',
|
||||||
|
'!modules_dart/transform/**'
|
||||||
])
|
])
|
||||||
.pipe(through2.obj(function(file, enc, done) {
|
.pipe(through2.obj(function(file, enc, done) {
|
||||||
if (file.path.endsWith('pubspec.yaml')) {
|
if (file.path.endsWith('pubspec.yaml')) {
|
||||||
|
@ -864,17 +874,20 @@ gulp.task('build/pure-packages.dart', function() {
|
||||||
this.push(file);
|
this.push(file);
|
||||||
done();
|
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
|
// Builds all Dart packages, but does not compile them
|
||||||
gulp.task('build/packages.dart', function(done) {
|
gulp.task('build/packages.dart', function(done) {
|
||||||
runSequence(
|
runSequence(
|
||||||
'build/tree.dart',
|
'build/tree.dart',
|
||||||
|
'build/pure-packages.dart',
|
||||||
// Run after 'build/tree.dart' because broccoli clears the dist/dart folder
|
// Run after 'build/tree.dart' because broccoli clears the dist/dart folder
|
||||||
'!build/pubget.angular2.dart',
|
'!build/pubget.angular2.dart',
|
||||||
'!build/change_detect.dart',
|
'!build/change_detect.dart',
|
||||||
'build/pure-packages.dart',
|
|
||||||
sequenceComplete(done));
|
sequenceComplete(done));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue