Răsfoiți Sursa

Add grunt dependencies and Gruntfile.js

JC Brand 12 ani în urmă
părinte
comite
f318ec226a
2 a modificat fișierele cu 25 adăugiri și 0 ștergeri
  1. 20 0
      Gruntfile.js
  2. 5 0
      package.json

+ 20 - 0
Gruntfile.js

@@ -0,0 +1,20 @@
+module.exports = function(grunt) {
+    grunt.initConfig({
+        jshint: {
+        options: {
+            trailing: true
+        },
+        target: {
+            src : [
+                'converse.js',
+                'mock.js',
+                'main.js',
+                'tests_main.js',
+                'spec/*.js'
+            ]
+        }
+        }
+    });
+    grunt.loadNpmTasks('grunt-contrib-jshint');
+    grunt.registerTask('default', ['jshint']);
+};

+ 5 - 0
package.json

@@ -25,5 +25,10 @@
   "license": "MIT",
   "bugs": {
     "url": "https://github.com/jcbrand/converse.js/issues"
+  },
+  "devDependencies": {
+    "grunt-cli": "~0.1.9",
+    "grunt": "~0.4.1",
+    "grunt-contrib-jshint": "~0.6.0"
   }
 }