Skip to content

Instantly share code, notes, and snippets.

@foo9
Last active August 29, 2015 13:58
Show Gist options
  • Save foo9/9966879 to your computer and use it in GitHub Desktop.
Save foo9/9966879 to your computer and use it in GitHub Desktop.
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-contrib-jade'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-connect'
grunt.initConfig
connect:
server:
options:
port: 9000
hostname: 'localhost'
keepalive: false
jade:
compile:
files: [
'index.html': ['jade/index.jade']
]
watch:
jade:
files: ['jade/**/*.jade']
tasks: ['jade']
options:
livereload: true
js:
files: ['js/*.js']
options:
livereload: true
grunt.registerTask 'default', ['connect', 'watch']
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment