mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-09 11:34:24 +08:00
Grunt serve task
This commit is contained in:
+9
-1
@@ -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' ]
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user