jueves, 18 de septiembre de 2014
GRUNT - Handlebars
https://github.com/gruntjs/grunt-contrib-handlebars
'use strict';
module.exports = function(grunt) {
grunt.registerTask('default', ['watch']);
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
handlebars: {
compile: {
options: {
namespace: 'handlebars'
},
files: {
'./js/templates/templates.js' : ['./hbs/*.hbs']
}
}
},
watch: {
handlebars: {
files: [
'./hbs/*.hbs'
],
tasks: 'handlebars'
}
}
});
grunt.loadNpmTasks('grunt-contrib-handlebars');
grunt.loadNpmTasks('grunt-contrib-watch');
};
Suscribirse a:
Comentarios de la entrada (Atom)
No hay comentarios.:
Publicar un comentario