Browse files

Added grunt-concurrent and grunt-node-inspector for debugging

  • Loading branch information...
1 parent a536dca commit 1f18f4af9a699e1211890cc800b0d38ad80e40d4 @ChrisWren ChrisWren committed Sep 15, 2013
Showing with 15 additions and 3 deletions.
  1. +12 −2 Gruntfile.js
  2. +3 −1 package.json
View
14 Gruntfile.js
@@ -54,6 +54,16 @@ module.exports = function (grunt) {
},
command: 'NODE_ENV=dev node --debug-brk $(which grunt) test'
}
+ },
+ 'node-inspector': {
+ default: {}
+ },
+ concurrent: {
+ test: ['node-inspector', 'shell:debugtest'],
+ testdev: ['node-inspector', 'shell:debugtestdev'],
+ options: {
+ logConcurrentOutput: true
+ }
}
});
@@ -63,8 +73,8 @@ module.exports = function (grunt) {
});
grunt.registerTask('debug', ['nodemon']);
- grunt.registerTask('debug-test', ['shell:debugtest']);
- grunt.registerTask('debug-test-dev', ['shell:debugtestdev']);
+ grunt.registerTask('debug-test', ['concurrent:test']);
+ grunt.registerTask('debug-test-dev', ['concurrent:testdev']);
grunt.registerTask('test', ['jshint', 'simplemocha:all']);
grunt.registerTask('default', ['test']);
View
4 package.json
@@ -40,6 +40,8 @@
"should": "~1.2.2",
"grunt-nodemon": "~0.1.0",
"grunt-shell": "~0.3.1",
- "suppose": "~0.2.0"
+ "suppose": "~0.2.0",
+ "grunt-node-inspector": "~0.1.0",
+ "grunt-concurrent": "~0.3.1"
}
}

0 comments on commit 1f18f4a

Please sign in to comment.