Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Update to latest Grunt
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 29 Mar 2012 10:56:36 +0000 (12:56 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 29 Mar 2012 10:56:36 +0000 (12:56 +0200)
.gitignore
grunt.js
package.json

index 37a90b8..7e11d0b 100644 (file)
@@ -4,4 +4,4 @@
 *.patch
 .DS_Store
 .settings
-
+node_modules
index 7c85880..d5befad 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -1,53 +1,57 @@
 /*global config:true, task:true*/
-config.init({
-  pkg: '<json:package.json>',
-  qunit: {
-    // TODO include 'test/logs.html' as well
-    files: ['test/index.html']
-  },
-  lint: {
-    qunit: 'qunit/qunit.js',
-    grunt: 'grunt.js'
-    // TODO need to figure out which warnings to fix and which to disable
-    // tests: 'test/*.js'
-  },
-  jshint: {
-    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
-      }
-    },
-    tests: {
-      tests: {
-        globals: {
-          module: true,
-          test: true,
-          ok: true,
-          equal: true,
-          deepEqual: true,
-          QUnit: true
-        }
-      }
-    }
-  }
+module.exports = function( grunt ) {
+
+grunt.initConfig({
+       pkg: '<json:package.json>',
+       qunit: {
+               // TODO include 'test/logs.html' as well
+               files: ['test/index.html']
+       },
+       lint: {
+               qunit: 'qunit/qunit.js',
+               grunt: 'grunt.js'
+               // TODO need to figure out which warnings to fix and which to disable
+               // tests: 'test/*.js'
+       },
+       jshint: {
+               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
+                       }
+               },
+               tests: {
+                       tests: {
+                               globals: {
+                                       module: true,
+                                       test: true,
+                                       ok: true,
+                                       equal: true,
+                                       deepEqual: true,
+                                       QUnit: true
+                               }
+                       }
+               }
+       }
 });
 
 // Default task.
-task.registerTask('default', 'lint qunit');
+grunt.registerTask('default', 'lint qunit');
+
+};
index 2893242..afb9367 100644 (file)
@@ -27,6 +27,6 @@
   ],
   "main": "qunit/qunit.js",
   "devDependencies": {
-    "grunt": "0.2.x"
+    "grunt": "0.3.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