Include gulpfile.js to be run through JSHint

This commit is contained in:
Cătălin Mariș
2014-08-05 16:16:58 +03:00
parent 3928548dc4
commit 641586aaca

View File

@@ -127,10 +127,12 @@ gulp.task('copy:normalize', function () {
});
gulp.task('jshint', function () {
return gulp.src(template('<%= src %>/js/*.js', dirs))
.pipe(plugins.jshint())
.pipe(plugins.jshint.reporter('jshint-stylish'))
.pipe(plugins.jshint.reporter('fail'));
return gulp.src([
'gulpfile.js',
template('<%= src %>/js/*.js', dirs)
]).pipe(plugins.jshint())
.pipe(plugins.jshint.reporter('jshint-stylish'))
.pipe(plugins.jshint.reporter('fail'));
});