Gruntfile: limit jshint/jscs watch tasks to own files, not *.js

This commit is contained in:
Scott Nonnenberg 2018-03-21 18:10:43 -07:00
parent 26f69b633a
commit e32dad2e9b
No known key found for this signature in database
GPG key ID: 5F82280C35134661

View file

@ -183,11 +183,11 @@ module.exports = function(grunt) {
tasks: ['copy_dist'] tasks: ['copy_dist']
}, },
scripts: { scripts: {
files: ['<%= jshint.files %>', './js/**/*.js'], files: ['<%= jshint.files %>'],
tasks: ['jshint'] tasks: ['jshint']
}, },
style: { style: {
files: ['<%= jscs.all.src %>', './js/**/*.js'], files: ['<%= jscs.all.src %>'],
tasks: ['jscs'] tasks: ['jscs']
}, },
}, },