Separate app js from toolchain in jshint, add jshint in watch.

This commit is contained in:
Alexis Lahouze 2015-06-15 13:01:00 +02:00
parent c0c3008b7c
commit 2328b5a850
2 changed files with 5 additions and 3 deletions

View File

@ -2,8 +2,10 @@ module.exports = {
options: { options: {
reporter: require('jshint-stylish') reporter: require('jshint-stylish')
}, },
work: [ frontend_js: [
'<%= paths.frontend_js %>/*.js', '<%= paths.frontend_js %>'
],
toolchain: [
'Gruntfile.js' 'Gruntfile.js'
] ]
}; };

View File

@ -1,6 +1,6 @@
module.exports = { module.exports = {
js: { js: {
files: '<%= paths.frontend_js %>', files: '<%= paths.frontend_js %>',
tasks: ['concat:frontend_js'] tasks: ['jshint:frontend_js', 'concat:frontend_js']
} }
}; };