Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Add 'grunt debug' task
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelJCole committed May 19, 2014
1 parent 9503720 commit e746749
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
},
Expand Down Expand Up @@ -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']);
Expand Down

0 comments on commit e746749

Please sign in to comment.