From 53eb8e15aae70a42795729faa6d3c7b8a7b14c47 Mon Sep 17 00:00:00 2001 From: Aaron Jensen Date: Wed, 19 Aug 2015 00:31:06 -0700 Subject: [PATCH] Speed up eslint --- gulpfile.js | 4 +--- package.json | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index d54480b..2b3b41e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -4,7 +4,6 @@ var gulp = require('gulp'); var babel = require('gulp-babel'); var eslint = require('gulp-eslint'); -var excludeGitignore = require('gulp-exclude-gitignore'); var mocha = require('gulp-mocha'); var nsp = require('gulp-nsp'); var rimraf = require('rimraf'); @@ -23,8 +22,7 @@ gulp.task('clean', function(cb) { }); gulp.task('static', function() { - return gulp.src('**/*.js') - .pipe(excludeGitignore()) + return gulp.src(['*.js', 'lib/**/*.js', 'test/**/*.js']) .pipe(eslint()) .pipe(eslint.format()) .pipe(eslint.failAfterError()); diff --git a/package.json b/package.json index a49e35c..27a1d04 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,6 @@ "gulp": "^3.6.0", "gulp-babel": "^5.1.0", "gulp-eslint": "^0.15.0", - "gulp-exclude-gitignore": "^1.0.0", "gulp-mocha": "^2.0.0", "gulp-nsp": "^0.4.5", "karma": "^0.13.3",