Grunt serve task

This commit is contained in:
Vit Brunner
2014-10-28 23:33:11 +01:00
parent c6c84c6589
commit f3b4290ad3
2 changed files with 10 additions and 1 deletions
+9 -1
View File
@@ -15,6 +15,13 @@ module.exports = (grunt) ->
}
}
watch: {
main: {
files: '<%= var.source %>/**/*'
tasks: ['default']
}
}
copy: {
main: {
expand: true
@@ -64,6 +71,7 @@ module.exports = (grunt) ->
}
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-stylus');
@@ -71,5 +79,5 @@ module.exports = (grunt) ->
grunt.loadNpmTasks("grunt-contrib-qunit");
grunt.registerTask 'default', [ 'copy', 'coffee', 'stylus', 'jade' ]
grunt.registerTask 'server', [ 'connect:server:keepalive' ]
grunt.registerTask 'serve', [ 'default', 'connect', 'watch' ]
grunt.registerTask 'test', [ 'default', 'connect', 'qunit' ]
+1
View File
@@ -8,6 +8,7 @@
"grunt": "0.4.x",
"grunt-cli": "0.1.x",
"grunt-contrib-connect": "0.8.x",
"grunt-contrib-watch": "0.6.x",
"grunt-contrib-copy": "0.7.x",
"grunt-contrib-coffee": "0.12.x",
"grunt-contrib-stylus": "0.20.x",