Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Add grunt.js configuration and include some usage instructions in the readme
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 7 Mar 2012 12:26:28 +0000 (13:26 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 7 Mar 2012 12:26:28 +0000 (13:26 +0100)
README.md
grunt.js [new file with mode: 0644]

index 3165685..b1a1ac5 100644 (file)
--- a/README.md
+++ b/README.md
@@ -26,6 +26,17 @@ For related discussions, visit the
 Planning for a qunitjs.com site and other testing tools related work now happens
 on the [jQuery Testing Team planning wiki](http://jquerytesting.pbworks.com/w/page/41556026/FrontPage).
 
+Development
+-----------
+
+To submit patches, fork the repository, create a branch for the change. Then implement
+the change, run `grunt` to lint and test it, then commit, push and create a pull request.
+
+Include some background for the change in the commit message and `Fixes #nnn`, referring
+to the issue number you're addressing.
+
+To run `grunt`, you need `node` and `npm`, then `npm install grunt -g`.
+
 Releases
 --------
 
diff --git a/grunt.js b/grunt.js
new file mode 100644 (file)
index 0000000..498a9e6
--- /dev/null
+++ b/grunt.js
@@ -0,0 +1,44 @@
+/*global config:true, task:true*/
+config.init({
+  pkg: '<json:package.json>',
+  meta: {
+    banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
+      '<%= template.today("m/d/yyyy") %>\n' +
+      '<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' +
+      '* Copyright (c) <%= template.today("yyyy") %> <%= pkg.author.name %>;' +
+      ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */'
+  },
+  qunit: {
+    // TODO include 'test/logs.html' as well
+    files: ['test/index.html']
+  },
+  lint: {
+    // TODO lint test files: 'test/**/*.js' - needs seperate globals list
+    files: ['grunt.js', 'qunit/*.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
+    },
+    globals: {
+      jQuery: true,
+      exports: true
+    }
+  }
+});
+
+// Default task.
+task.registerTask('default', 'lint qunit');

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