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
This commit is contained in:
Jesper Rønn-Jensen 2014-09-24 10:09:58 +02:00
parent 86d52cfe85
commit c70d6ce12c

View File

@ -37,12 +37,13 @@ gulp.task('constants', function() {
gulp.task('jshint', function() { gulp.task('jshint', function() {
return gulp.src([ return gulp.src([
'./**/*.js', './*.js',
'!./node_modules/**/*.js', './app/**/*.js',
'!./public/libs/**/*.js', './public/res/classes/**/*.js',
'!./public/res/libs/**/*.js', './public/res/extensions/**/*.js',
'!./public/res/bower-libs/**/*.js', './public/res/helpers/**/*.js',
'!./public/res-min/**/*.js' './public/res/providers/**/*.js',
'./public/res/*.js'
]) ])
.pipe(jshint()) .pipe(jshint())
.pipe(jshint.reporter('default')) .pipe(jshint.reporter('default'))