compile jade template.
% cd your/grunt/project/root
% npm install grunt-compiled-jade --save-dev
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compiled_jade: {
dev: {
template: '../views/partial/*.jade',
dest: 'js/jade.js',
runtime: 'node_modules/jade/runtime.js',
prefix: 'template'
}
}
});
grunt.loadNpmTasks('grunt-compiled-jade');
grunt.registerTask('default', ['compiled_jade:dev']);
};