build(gulp): watch and incrementally compile files for server.js.dev task

Closes #1770
This commit is contained in:
Igor Minar 2015-04-27 15:24:32 -07:00
parent 66f5e30d7c
commit c82cc47767
1 changed files with 11 additions and 4 deletions

View File

@ -225,10 +225,17 @@ gulp.task('build/checkCircularDependencies', function (done) {
// ------------------ // ------------------
// web servers // web servers
gulp.task('serve.js.dev', jsserve(gulp, gulpPlugins, { gulp.task('serve.js.dev', ['build.js.dev'], function(neverDone) {
watch('modules/**', function() {
gulp.start('!broccoli.js.dev');
});
jsserve(gulp, gulpPlugins, {
path: CONFIG.dest.js.dev.es5, path: CONFIG.dest.js.dev.es5,
port: 8000 port: 8000
})); })();
});
gulp.task('serve.js.prod', jsserve(gulp, gulpPlugins, { gulp.task('serve.js.prod', jsserve(gulp, gulpPlugins, {
path: CONFIG.dest.js.prod.es5, path: CONFIG.dest.js.prod.es5,