Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Update grunt.js with seperate configs for qunit.js and grunt.js, also add tests but...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 10 Mar 2012 14:11:28 +0000 (15:11 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 10 Mar 2012 14:11:28 +0000 (15:11 +0100)
grunt.js
package.json

index a7c6623..7c85880 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -6,29 +6,45 @@ config.init({
     files: ['test/index.html']
   },
   lint: {
-    // TODO lint test files: 'test/**/*.js' - needs seperate globals list
-    files: ['grunt.js', 'qunit/*.js']
+    qunit: 'qunit/qunit.js',
+    grunt: 'grunt.js'
+    // TODO need to figure out which warnings to fix and which to disable
+    // tests: 'test/*.js'
   },
   jshint: {
-    options: {
-      bitwise: true,
-      curly: true,
-      trailing: true,
-      immed: true,
-      latedef: false,
-      newcap: true,
-      noarg: false,
-      noempty: true,
-      nonew: true,
-      sub: true,
-      undef: true,
-      eqnull: true,
-      browser: true,
-      proto: true
+    qunit: {
+      options: {
+        browser: true,
+        bitwise: true,
+        curly: true,
+        trailing: true,
+        immed: true,
+        latedef: false,
+        newcap: true,
+        noarg: false,
+        noempty: true,
+        nonew: true,
+        sub: true,
+        undef: true,
+        eqnull: true,
+        proto: true
+      },
+      globals: {
+        jQuery: true,
+        exports: true
+      }
     },
-    globals: {
-      jQuery: true,
-      exports: true
+    tests: {
+      tests: {
+        globals: {
+          module: true,
+          test: true,
+          ok: true,
+          equal: true,
+          deepEqual: true,
+          QUnit: true
+        }
+      }
     }
   }
 });
index 1cc26c0..3df0f57 100644 (file)
@@ -25,5 +25,8 @@
     "unit",
     "jquery"
   ],
-  "main": "qunit/qunit.js"
+  "main": "qunit/qunit.js",
+  "devDependencies": {
+    "grunt": "0.2.x"
+  }
 }

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf