Permalink
Browse files

Updating gruntfile to grunt 0.3.0 format.

  • Loading branch information...
1 parent 20e9fa4 commit 98ca7d1092297433773e4b0cd52cb61af46dc109 @cowboy committed Mar 23, 2012
Showing with 37 additions and 30 deletions.
  1. +37 −30 grunt.js
View
@@ -1,32 +1,39 @@
-/*global config:true, task:true*/
-config.init({
- pkg: '<json:package.json>',
- test: {
- files: ['test/**/*.js']
- },
- lint: {
- files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
- },
- watch: {
- files: '<config:lint.files>',
- tasks: 'lint test'
- },
- jshint: {
- options: {
- curly: true,
- eqeqeq: true,
- immed: true,
- latedef: true,
- newcap: true,
- noarg: true,
- sub: true,
- undef: true,
- eqnull: true,
- node: true
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: '<json:package.json>',
+ test: {
+ files: ['test/**/*.js']
+ },
+ lint: {
+ files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
},
- globals: {}
- }
-});
+ watch: {
+ files: '<config:lint.files>',
+ tasks: 'default'
+ },
+ jshint: {
+ options: {
+ curly: true,
+ eqeqeq: true,
+ immed: true,
+ latedef: true,
+ newcap: true,
+ noarg: true,
+ sub: true,
+ undef: true,
+ boss: true,
+ eqnull: true,
+ node: true
+ },
+ globals: {
+ exports: true
+ }
+ }
+ });
+
+ // Default task.
+ grunt.registerTask('default', 'lint test');
-// Default task.
-task.registerTask('default', 'lint test');
+};

0 comments on commit 98ca7d1

Please sign in to comment.