Skip to content

Commit

Permalink
Merge pull request #34 from diggyk/master
Browse files Browse the repository at this point in the history
Added gulp watch support
  • Loading branch information
gmjosack committed Sep 3, 2015
2 parents 29a9f96 + 830e6aa commit 1fc0f73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var mainBowerFiles = require('main-bower-files');
var bower = require('gulp-bower');
var sort = require('gulp-sort');
var del = require('del');
var watch = require('gulp-watch');

var SRC_ROOT = './hermes/webapp/src/';
var BUILD_DEST = './hermes/webapp/build/';
Expand Down Expand Up @@ -156,3 +157,8 @@ gulp.task('build', ['build:revisions']);
gulp.task('clean', function(cb) {
del([BUILD_DEST], cb);
});


gulp.task('watch', ['build'], function() {
gulp.watch([JS_MAIN_SRC, JS_SRC, STYLE_SRC, IMAGE_SRC, HTML_SRC], ['build']);
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"gulp-rename": "^1.2.2",
"gulp-sort": "^1.1.1",
"gulp-uglify": "^1.4.0",
"gulp-watch": "^4.3.5",
"main-bower-files": "^2.9.0"
}
}

0 comments on commit 1fc0f73

Please sign in to comment.