From: Aleksander Ɓukasz Date: Sun, 30 Jun 2013 18:50:05 +0000 (+0200) Subject: Adding jshint grunt task X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/84eba72af147a175fb93b7305c1d42b0a4987a8c?ds=sidebyside Adding jshint grunt task --- diff --git a/Gruntfile.js b/Gruntfile.js index 4d26c25..681ec8b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -22,11 +22,15 @@ module.exports = function(grunt) { 'build/rng.css': 'styles/main.less' }, }, + }, + jshint: { + all: ['Gruntfile.js', 'modules/**/*.js', 'views/**/*.js', 'fnpjs/**/*.js'] } }); grunt.loadNpmTasks('grunt-contrib-requirejs'); grunt.loadNpmTasks('grunt-contrib-less'); + grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.registerTask('default', ['requirejs']); }; \ No newline at end of file diff --git a/package.json b/package.json index b792de2..a788708 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "devDependencies": { "grunt": "~0.4.1", "grunt-contrib-requirejs": "~0.4.1", - "grunt-contrib-less": "~0.6.1" + "grunt-contrib-less": "~0.6.1", + "grunt-contrib-jshint": "~0.6.0" } }