@@ -511,6 +511,10 @@ gulp.task('test.unit.js', ['build.js.dev'], function (done) {
511511 ) ;
512512} ) ;
513513
514+ gulp . task ( 'watch.js.dev' , [ 'build.js.dev' ] , function ( done ) {
515+ watch ( 'modules/**' , [ '!broccoli.js.dev' ] ) ;
516+ } ) ;
517+
514518gulp . task ( 'test.unit.js.sauce' , [ 'build.js.dev' ] , function ( done ) {
515519 var browserConf = getBrowsersFromCLI ( ) ;
516520 if ( browserConf . isSauce ) {
@@ -597,6 +601,29 @@ gulp.task('test.unit.dart', function (done) {
597601 ) ;
598602} ) ;
599603
604+ gulp . task ( 'watch.dart.dev' , function ( done ) {
605+ runSequence (
606+ 'build/tree.dart' ,
607+ 'build/pure-packages.dart' ,
608+ '!build/pubget.angular2.dart' ,
609+ '!build/change_detect.dart' ,
610+ '!build/remove-pub-symlinks' ,
611+ 'build.dart.material.css' ,
612+ function ( error ) {
613+ // if initial build failed (likely due to build or formatting step) then exit
614+ // otherwise karma server doesn't start and we can't continue running properly
615+ if ( error ) {
616+ done ( error ) ;
617+ return ;
618+ }
619+
620+ watch ( [ 'modules/angular2/**' ] , { ignoreInitial : true } , [
621+ '!build/tree.dart'
622+ ] ) ;
623+ }
624+ ) ;
625+ } ) ;
626+
600627gulp . task ( '!test.unit.dart/karma-run' , function ( done ) {
601628 // run the run command in a new process to avoid duplicate logging by both server and runner from
602629 // a single process
0 commit comments