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: {
reporter: require('jshint-stylish')
},
work: [
'<%= paths.frontend_js %>/*.js',
frontend_js: [
'<%= paths.frontend_js %>'
],
toolchain: [
'Gruntfile.js'
]
};

View File

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