Skip to content

Commit

Permalink
🐛 Fix JS watch bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Richard committed May 18, 2016
1 parent 49467ed commit 069ad3a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ module.exports = (gulp, options) => {
* Gulp task to watch all JavaScript files and lint on change
**/
gulp.task('js:watch', () => {
return gulp.watch(lintPaths, ['js']);
const watchPaths = Object.keys(lintPaths).map(pth => {
return lintPaths[pth];
});

return gulp.watch(watchPaths, ['js']);
});
};

0 comments on commit 069ad3a

Please sign in to comment.