Skip to content

Instantly share code, notes, and snippets.

@agreen757
Created January 24, 2015 21:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agreen757/4655471133d4d591fab7 to your computer and use it in GitHub Desktop.
Save agreen757/4655471133d4d591fab7 to your computer and use it in GitHub Desktop.
The most simple Grunt config to start a simple server and convert Jade templates to HTML
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
connect: {
server: {
options: {},
}
},
watch: {
livereload:{
options: {livereload:true},
files:['views/**/**']
},
html: {
files: ['views/*.html']
},
jade: {
files: ['views/*.jade'],
tasks:['jade']
}
},
jade:{
html:{
files:{
'views/':['views/index.jade']
}
},
options: {client:false}
}
})
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-jade');
grunt.registerTask('default', ['connect','watch','jade']);
//grunt.registerTask('jade', ['jade'])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment