Skip to content
This repository was archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
moved to gulp-watch, which will fire also for add and delete events o…
Browse files Browse the repository at this point in the history
…n FS
  • Loading branch information
ThorstenHans committed Mar 10, 2016
1 parent 2fab554 commit 5307461
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions gulp.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = {
],
systemSetupScript: './src/BoardZ/system.setup.js',
app: {
everything: './src/BoardZ/app/**/*',
ts: [
'./src/BoardZ/app/**/*.ts'
],
Expand Down
13 changes: 9 additions & 4 deletions gulpTasks/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
tsConfig = ts.createProject(config.ts.config),
sourcemaps = require('gulp-sourcemaps'),
inject = require('gulp-inject'),
uglify = require('gulp-uglify');
uglify = require('gulp-uglify'),
watch = require('gulp-watch');

gulp.task('[private-web]:copy-template', function () {
var sources = gulp.src(config.source.files.injectables);
Expand Down Expand Up @@ -124,9 +125,13 @@
}));
});

gulp.task('watch-web', ['[private-web]:start-live-server'], function () {
gulp.watch(config.source.files.app.html, ['[private-web]:copy-app-html']);
gulp.watch(config.source.files.app.ts, ['[private-web]:build-app-scripts']);
gulp.task('watch-web', ['[private-web]:start-live-server'], function (done) {
watch(config.source.files.app.everything, function(){
console.log(arguments);

runSequence('[private-web]:copy-app-html', '[private-web]:build-app-scripts',done);
});

});
}

Expand Down

0 comments on commit 5307461

Please sign in to comment.