Permalink
Browse files

Update grunt.js with seperate configs for qunit.js and grunt.js, also…

… add tests but disable for now, not passing yet. Add grunt to devDependencies
  • Loading branch information...
jzaefferer committed Mar 10, 2012
1 parent f962600 commit 5d90742b5c3820900c6065e8003af92c69a09386
Showing with 40 additions and 21 deletions.
  1. +36 −20 grunt.js
  2. +4 −1 package.json
View
@@ -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
+ }
+ }
}
}
});
View
@@ -25,5 +25,8 @@
"unit",
"jquery"
],
- "main": "qunit/qunit.js"
+ "main": "qunit/qunit.js",
+ "devDependencies": {
+ "grunt": "0.2.x"
+ }
}

0 comments on commit 5d90742

Please sign in to comment.