Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
fix(gulp): watch needs to take an array as arg
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao committed Aug 19, 2015
1 parent ea5a9a8 commit 091774e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions templates/common/root/_gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,24 +102,23 @@ gulp.task('start:server:test', function() {
});

gulp.task('watch', function () {

$.watch({glob: paths.styles})
$.watch(paths.styles)
.pipe($.plumber())
.pipe(styles())
.pipe($.connect.reload());

$.watch({glob: paths.views.files})
$.watch(paths.views.files)
.pipe($.plumber())
.pipe($.connect.reload());

$.watch({glob: paths.scripts})
$.watch(paths.scripts)
.pipe($.plumber())
.pipe(lintScripts())<% if (coffee) { %>
.pipe($.coffee({bare: true}).on('error', $.util.log))
.pipe(gulp.dest('.tmp/scripts'))<% } %>
.pipe($.connect.reload());

$.watch({glob: paths.test})
$.watch(paths.test)
.pipe($.plumber())
.pipe(lintScripts());

Expand Down

0 comments on commit 091774e

Please sign in to comment.