Adding jshint grunt task
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Sun, 30 Jun 2013 18:50:05 +0000 (20:50 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Sun, 30 Jun 2013 18:50:05 +0000 (20:50 +0200)
Gruntfile.js
package.json

index 4d26c25..681ec8b 100644 (file)
@@ -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
index b792de2..a788708 100644 (file)
@@ -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"
   }
 }