mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Build : Added grunt server:debug target
This commit is contained in:
parent
f16b810ffb
commit
fa3b44baf9
19
Gruntfile.js
19
Gruntfile.js
@ -67,17 +67,27 @@ module.exports = function(grunt) {
|
||||
}
|
||||
},
|
||||
express: {
|
||||
server: {
|
||||
regular: {
|
||||
options: {
|
||||
port: 9001,
|
||||
hostname : 'localhost',
|
||||
bases: ['dest']
|
||||
}
|
||||
},
|
||||
debug: {
|
||||
options: {
|
||||
port: 9901,
|
||||
hostname : 'localhost',
|
||||
bases: ['src']
|
||||
}
|
||||
}
|
||||
},
|
||||
open : {
|
||||
server : {
|
||||
regular : {
|
||||
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']);
|
||||
|
||||
// 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']);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user