Add Grunt and JsHint

This commit is contained in:
Gaël Métais
2014-08-07 19:27:32 +02:00
parent 7fcdf2aaa2
commit 709ee60db3
2 changed files with 28 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: [
'*.js',
'app/lib/*',
'app/nodeControllers/*.js',
'app/public/scripts/*.js',
'phantomas_custom/**/*.js'
]
}
});
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.registerTask('hint', ['jshint']);
};
+5 -1
View File
@@ -12,6 +12,10 @@
"socket.io": "^1.0.6",
"body-parser": "^1.5.0"
},
"devDependencies": {},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-jshint": "^0.10.0",
"matchdep": "^0.3.0"
},
"scripts": {}
}