Speed up eslint
This commit is contained in:
parent
0cf608c2c4
commit
53eb8e15aa
@ -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());
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user