From 08fc75b9092f31fc9ef427efadee5f3582683f77 Mon Sep 17 00:00:00 2001 From: Wes Cossick Date: Tue, 3 Nov 2015 14:54:29 -0600 Subject: [PATCH] Gulp should fail after lint error --- gulpfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 3b22d8f..5c54b53 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -37,7 +37,8 @@ gulp.task("lint", ["prettify-js"], function() { gulp.src("./src/js/**/*.js") .pipe(debug()) .pipe(eslint()) - .pipe(eslint.format()); + .pipe(eslint.format()) + .pipe(eslint.failAfterError()); }); function taskBrowserify(opts) { @@ -87,4 +88,4 @@ gulp.task("styles", ["prettify-css"], function() { .pipe(gulp.dest("./dist/")); }); -gulp.task("default", ["scripts", "styles"]); \ No newline at end of file +gulp.task("default", ["scripts", "styles"]);