codedungeon
4/5/2014 - 12:24 AM

Gulp-Shell Template

Gulp-Shell Template

gulp.task('test', function () {
  return gulp.src('')
    .pipe(shell('npm test'))
    .on('error', notify.onError({
      title: "Testing Failed",
      message: "Error(s) occurred during testing..."
    }));
});

gulp.task('watch', function () {
  gulp.on('err', function () {});
  gulp.watch('./test/**/*.js', ['test']);
  gulp.watch('./index.js', ['test']);
});