@@ -246,7 +246,7 @@ gulp.task('build/clean.docs', clean(gulp, gulpPlugins, {
246246// ------------
247247// transpile
248248
249- gulp . task ( 'build/tree.dart' , [ 'build.broccoli. tools' ] , function ( ) {
249+ gulp . task ( 'build/tree.dart' , [ 'build.tools' ] , function ( ) {
250250 return angularBuilder . rebuildDartTree ( ) ;
251251} ) ;
252252
@@ -480,15 +480,15 @@ gulp.task('test.unit.cjs', ['test.unit.cjs/ci'], function () {
480480} ) ;
481481
482482
483- gulp . task ( 'test.unit.broccoli /ci' , [ 'build.broccoli .tools' ] , function ( done ) {
484- fork ( './tools/traceur-jasmine' , [ 'dist/broccoli /**/*.spec.js' ] , {
483+ gulp . task ( 'test.unit.tools /ci' , [ 'build.tools' ] , function ( done ) {
484+ fork ( './tools/traceur-jasmine' , [ 'dist/tools /**/*.spec.js' ] , {
485485 stdio : 'inherit'
486486 } ) . on ( 'close' , done ) ;
487487} ) ;
488488
489489
490- gulp . task ( 'test.unit.broccoli ' , [ 'test.unit.broccoli /ci' ] , function ( ) {
491- gulp . watch ( 'tools/broccoli/ **' , [ 'test.unit.broccoli /ci' ] ) ;
490+ gulp . task ( 'test.unit.tools ' , [ 'test.unit.tools /ci' ] , function ( ) {
491+ gulp . watch ( 'tools/**' , [ 'test.unit.tools /ci' ] ) ;
492492} ) ;
493493
494494// ------------------
@@ -585,10 +585,10 @@ gulp.task('build.dart', function(done) {
585585 ) ;
586586} ) ;
587587
588- gulp . task ( 'build.broccoli. tools' , function ( ) {
588+ gulp . task ( 'build.tools' , function ( ) {
589589 var mergedStream ;
590590
591- var tsResult = gulp . src ( 'tools/broccoli/ **/*.ts' )
591+ var tsResult = gulp . src ( 'tools/**/*.ts' )
592592 . pipe ( sourcemaps . init ( ) )
593593 . pipe ( tsc ( { target : 'ES5' , module : 'commonjs' , reporter : tsc . reporter . nullReporter ( ) } ) )
594594 . on ( 'error' , function ( error ) {
@@ -597,20 +597,20 @@ gulp.task('build.broccoli.tools', function() {
597597 mergedStream . emit ( 'error' , error ) ;
598598 } ) ;
599599
600- var destDir = gulp . dest ( 'dist/broccoli ' ) ;
600+ var destDir = gulp . dest ( 'dist/tools/ ' ) ;
601601
602602 mergedStream = merge2 ( [
603603 tsResult . js . pipe ( sourcemaps . write ( '.' ) ) . pipe ( destDir ) ,
604604 tsResult . js . pipe ( destDir )
605605 ] ) . on ( 'end' , function ( ) {
606- var BroccoliBuilder = require ( './dist/broccoli/broccoli_builder ' ) . BroccoliBuilder ;
607- getBroccoli = function ( ) { return BroccoliBuilder ; } ;
606+ var AngularBuilder = require ( './dist/tools/ broccoli/angular_builder ' ) . AngularBuilder ;
607+ angularBuilder = new AngularBuilder ( 'dist' ) ;
608608 } ) ;
609609
610610 return mergedStream ;
611611} ) ;
612612
613- gulp . task ( 'broccoli.js.dev' , [ 'build.broccoli. tools' ] , function ( ) {
613+ gulp . task ( 'broccoli.js.dev' , [ 'build.tools' ] , function ( ) {
614614 return angularBuilder . rebuildBrowserDevTree ( ) ;
615615} ) ;
616616
@@ -624,14 +624,14 @@ gulp.task('build.js.dev', function(done) {
624624 ) ;
625625} ) ;
626626
627- gulp . task ( 'build.js.prod' , [ 'build.broccoli. tools' ] , function ( ) {
627+ gulp . task ( 'build.js.prod' , [ 'build.tools' ] , function ( ) {
628628 return angularBuilder . rebuildBrowserProdTree ( ) ;
629629} ) ;
630630
631631
632632var firstBuildJsCjs = true ;
633633
634- gulp . task ( 'build.js.cjs' , [ 'build.broccoli. tools' ] , function ( ) {
634+ gulp . task ( 'build.js.cjs' , [ 'build.tools' ] , function ( ) {
635635 return angularBuilder . rebuildNodeTree ( ) . then ( function ( ) {
636636 if ( firstBuildJsCjs ) {
637637 firstBuildJsCjs = false ;
0 commit comments