Created
January 24, 2015 21:33
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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