Created
May 11, 2015 01:09
-
-
Save NouranMahmoud/8d58daabe3779b3079e7 to your computer and use it in GitHub Desktop.
Gruntfile
This file contains 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({ | |
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