Permalink
Browse files

Moved to grunt@0.4 for testing. Failing as anticipated

  • Loading branch information...
1 parent c2c96e2 commit 0a599d1297b4678f32d8a021c83ff7ba50c65ed1 @twolfson committed Feb 28, 2013
Showing with 21 additions and 1 deletion.
  1. +5 −1 package.json
  2. +16 −0 test/Gruntfile.js
View
@@ -32,9 +32,13 @@
"dependencies": {
"jsmin-sourcemap": "~0.14.0"
},
- "devDependencies": {
+ "_devDependencies": {
"grunt": "~0.3.12"
},
+ "devDependencies": {
+ "grunt": "~0.4.0",
+ "grunt-contrib-nodeunit": "~0.1.2"
+ },
"keywords": [
"gruntplugin",
"grunt",
View
@@ -0,0 +1,16 @@
+module.exports = function (grunt) {
+ // Load in legacy config
+ require('./grunt')(grunt);
+
+ // Configure nodeunit as test
+ var testConfig = grunt.config.get('test');
+ grunt.config.set('nodeunit', testConfig);
+
+ // Load in nodeunit
+ process.chdir('..');
+ grunt.loadNpmTasks('grunt-contrib-nodeunit');
+ process.chdir(__dirname);
+
+ // Override default task
+ grunt.registerTask('default', ['jsmin-sourcemap', 'nodeunit']);
+};

0 comments on commit 0a599d1

Please sign in to comment.