Skip to content

Commit

Permalink
Add gulp watch as default command
Browse files Browse the repository at this point in the history
  • Loading branch information
czchen committed Aug 3, 2015
1 parent f98aec5 commit 27544df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,12 @@ gulp.task('coveralls', ['coverage'], function () {
.pipe(shell('node_modules/.bin/coveralls < coverage/lcov.info'));
});

gulp.task('watch', function () {
gulp.watch([].concat(src, test), ['test']);
});

gulp.task('prepublish', ['babel']);
gulp.task('test', sequence('mocha', 'jshint'));
gulp.task('test', function (cb) {
sequence('mocha', 'jshint', cb);
});
gulp.task('default', ['watch']);

0 comments on commit 27544df

Please sign in to comment.