Skip to content

Instantly share code, notes, and snippets.

@NouranMahmoud
Created May 11, 2015 01:09
Show Gist options
  • Save NouranMahmoud/8d58daabe3779b3079e7 to your computer and use it in GitHub Desktop.
Save NouranMahmoud/8d58daabe3779b3079e7 to your computer and use it in GitHub Desktop.
Gruntfile
module.exports = function(grunt) {
grunt.initConfig({
jade: {
compile: {
options: {
client: false,
pretty: true
},
files: [ {
expand: true,
cwd: "app/views",
src: "**/*.jade",
dest: "build/templates",
ext: ".html"
}]
}
},
watch: {
jade: {
files: 'app/views/*.jade',
tasks: ['jade']
}
}
});
grunt.registerTask('default',null, ['jade','watch']);
grunt.loadNpmTasks("grunt-contrib-jade");
grunt.loadNpmTasks("grunt-contrib-watch");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment