Skip to content

Commit

Permalink
Merge pull request #9 from punchcard-cms/js-watch
Browse files Browse the repository at this point in the history
Fix JS watch bug
  • Loading branch information
Snugug committed May 18, 2016
2 parents 49467ed + 069ad3a commit deff49a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/js.js
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 deff49a

Please sign in to comment.