123456789101112131415161718192021222324252627 |
- module.exports = function(grunt) {
- grunt.initConfig({
- tmod: {
- template: {
- src: './tpl',
- options: {
- combo: true,
- dest: '../js/build'
- }
- }
- },
- watch: {
- template: {
- //files: '<%=tmod.template.src%>',
- files: './tpl',
- tasks: ['tmod'],
- options: {
- spawn: false
- }
- }
- }
- });
- grunt.loadNpmTasks('grunt-tmod');
- grunt.loadNpmTasks('grunt-contrib-watch');
- grunt.registerTask('default', ['tmod', 'watch']);
- };
|