From e7467496501b538bb1c768e9272cc30f0eb40f09 Mon Sep 17 00:00:00 2001 From: Michael Cole Date: Mon, 19 May 2014 12:22:55 -0500 Subject: [PATCH 1/2] Add 'grunt debug' task --- gruntfile.js | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index c338b7ef..d76c60eb 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -80,9 +80,23 @@ module.exports = function(grunt) { } } }, + 'node-inspector': { + custom: { + options: { + 'web-port': 1337, + 'web-host': 'localhost', + 'debug-port': 5858, + 'save-live-edit': true, + 'no-preload': true, + 'stack-trace-limit': 50, + 'hidden': [] + } + } + }, concurrent: { - tasks: ['nodemon', 'watch'], - options: { + default: ['nodemon', 'watch'], + debug: ['nodemon', 'watch', 'node-inspector'], + options: { logConcurrentOutput: true } }, @@ -121,7 +135,10 @@ module.exports = function(grunt) { }); // Default task(s). - grunt.registerTask('default', ['jshint', 'csslint', 'concurrent']); + grunt.registerTask('default', ['jshint', 'csslint', 'concurrent:default']); + + // Debug task. + grunt.registerTask('debug', ['jshint', 'csslint', 'concurrent:debug']); // Lint task(s). grunt.registerTask('lint', ['jshint', 'csslint']); From c8e62e1005395e7a8d003d0e63cb91ccc48bd10f Mon Sep 17 00:00:00 2001 From: Michael Cole Date: Mon, 19 May 2014 12:26:07 -0500 Subject: [PATCH 2/2] Typo --- gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gruntfile.js b/gruntfile.js index d76c60eb..e3377ecf 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -96,7 +96,7 @@ module.exports = function(grunt) { concurrent: { default: ['nodemon', 'watch'], debug: ['nodemon', 'watch', 'node-inspector'], - options: { + options: { logConcurrentOutput: true } },