Added jshint file for unit tests, and grunt task to verify test syntax.

This commit is contained in:
Torkel Ödegaard
2014-04-06 10:47:14 +02:00
parent 6795383461
commit 4029dc3165
14 changed files with 71 additions and 25 deletions
+8 -3
View File
@@ -1,13 +1,18 @@
module.exports = function(config) {
return {
// just lint the source dir
source: {
files: {
src: ['Gruntfile.js', '<%= srcDir %>/app/**/*.js']
src: ['Gruntfile.js', '<%= srcDir %>/app/**/*.js'],
}
},
tests: {
files: {
src: ['<%= srcDir %>/test/**/*.js'],
}
},
options: {
jshintrc: '<%= baseDir %>/.jshintrc',
jshintrc: true,
reporter: require('jshint-stylish'),
ignores: [
'node_modules/*',
'dist/*',