diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..7bc217c --- /dev/null +++ b/Gruntfile.js @@ -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']); + +}; \ No newline at end of file diff --git a/package.json b/package.json index 22b1246..7afe4b3 100644 --- a/package.json +++ b/package.json @@ -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": {} }