Add Grunt and JsHint
This commit is contained in:
@@ -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
@@ -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": {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user