Build : Added grunt server:debug target

This commit is contained in:
jdescottes 2014-05-05 23:20:00 +02:00
parent f16b810ffb
commit fa3b44baf9

View File

@ -67,17 +67,27 @@ module.exports = function(grunt) {
} }
}, },
express: { express: {
server: { regular: {
options: { options: {
port: 9001, port: 9001,
hostname : 'localhost', hostname : 'localhost',
bases: ['dest'] bases: ['dest']
} }
},
debug: {
options: {
port: 9901,
hostname : 'localhost',
bases: ['src']
}
} }
}, },
open : { open : {
server : { regular : {
path : 'http://localhost:9001/' path : 'http://localhost:9001/'
},
debug : {
path : 'http://localhost:9901/?debug'
} }
}, },
@ -223,5 +233,8 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['clean:before', 'lint', 'compile', 'merge']); grunt.registerTask('default', ['clean:before', 'lint', 'compile', 'merge']);
// Start webserver and watch for changes // Start webserver and watch for changes
grunt.registerTask('server', ['express', 'open', 'watch']); grunt.registerTask('server', ['express:regular', 'open:regular', 'watch']);
// Start webserver and watch for changes
grunt.registerTask('server:debug', ['express:debug', 'open:debug', 'watch']);
}; };