From c70d6ce12c9b7f9535d04d4069daf14aa556f845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20R=C3=B8nn-Jensen?= Date: Wed, 24 Sep 2014 10:09:58 +0200 Subject: [PATCH] avoid glob negations with gulp will reduce running time for `gulp jshint` from 13s to 3.5s Also this brings down total time of build (running `gulp`) from 33s to 23s --- Gulpfile.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index 650d3cd5..9571dfdb 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -37,12 +37,13 @@ gulp.task('constants', function() { gulp.task('jshint', function() { return gulp.src([ - './**/*.js', - '!./node_modules/**/*.js', - '!./public/libs/**/*.js', - '!./public/res/libs/**/*.js', - '!./public/res/bower-libs/**/*.js', - '!./public/res-min/**/*.js' + './*.js', + './app/**/*.js', + './public/res/classes/**/*.js', + './public/res/extensions/**/*.js', + './public/res/helpers/**/*.js', + './public/res/providers/**/*.js', + './public/res/*.js' ]) .pipe(jshint()) .pipe(jshint.reporter('default'))