diff --git a/gulp/tasks/jshint.js b/gulp/tasks/jshint.js index 7a246d3..fe6d542 100644 --- a/gulp/tasks/jshint.js +++ b/gulp/tasks/jshint.js @@ -1,10 +1,12 @@ var gulp = require('gulp'), jshint = require('gulp-jshint'), + cache = require('gulp-cached'), handleErrors = require('../util/handleErrors'); gulp.task('jshint', function () { return gulp.src(paths.scripts) .pipe(handleErrors()) + .pipe(cache('jshint', { optimizeMemory: true })) .pipe(jshint()) .pipe(jshint.reporter('jshint-summary')); }); diff --git a/gulp/tasks/jshint.js b/gulp/tasks/jshint.js index 7a246d3..fe6d542 100644 --- a/gulp/tasks/jshint.js +++ b/gulp/tasks/jshint.js @@ -1,10 +1,12 @@ var gulp = require('gulp'), jshint = require('gulp-jshint'), + cache = require('gulp-cached'), handleErrors = require('../util/handleErrors'); gulp.task('jshint', function () { return gulp.src(paths.scripts) .pipe(handleErrors()) + .pipe(cache('jshint', { optimizeMemory: true })) .pipe(jshint()) .pipe(jshint.reporter('jshint-summary')); }); diff --git a/package.json b/package.json index 8d6f3b1..9060ba9 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "chai": "^1.10.0", "del": "^1.1.0", "gulp": "^3.8.10", + "gulp-cached": "^1.0.1", "gulp-jshint": "^1.9.0", "gulp-plumber": "^0.6.6", "gulp-rename": "^1.2.0",