Browse Source

grunt: use grunt 0.4 and latest jshint plugin

Manfred Kroehnert 11 years ago
parent
commit
0fff71b918
2 changed files with 6 additions and 4 deletions
  1. 4 3
      Gruntfile.js
  2. 2 1
      package.json

+ 4 - 3
Gruntfile.js

@@ -2,8 +2,9 @@ module.exports = function(grunt) {
 
   grunt.loadTasks('./grunt/tasks');
 
-  grunt.loadNpmTasks('grunt-image-embed');
-  grunt.loadNpmTasks('grunt-contrib-mincss');
+  grunt.loadNpmTasks('grunt-contrib-jshint');
+//  grunt.loadNpmTasks('grunt-image-embed');
+//  grunt.loadNpmTasks('grunt-contrib-mincss');
 
   grunt.registerTask('default', 'peg amberc:all');
 
@@ -108,7 +109,7 @@ module.exports = function(grunt) {
       }
     },
 
-    lint: {
+    jshint: {
       amber: ['js/*.js'],
       server: ['server/*.js'],
       repl: ['repl/*.js'],

+ 2 - 1
package.json

@@ -29,7 +29,8 @@
     },
     "devDependencies": {
         "pegjs": "~0.7.0",
-        "grunt": "~0.3.17",
+        "grunt": "~0.4.0",
+        "grunt-contrib-jshint": "~0.3.0",
         "grunt-image-embed": "~0.1.3",
         "grunt-contrib-mincss": "~0.3.2"
     }