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']); };