Gruntfile.js 666 B

123456789101112131415161718192021222324252627
  1. module.exports = function(grunt) {
  2. grunt.initConfig({
  3. tmod: {
  4. template: {
  5. src: './tpl',
  6. options: {
  7. combo: true,
  8. dest: '../js/build'
  9. }
  10. }
  11. },
  12. watch: {
  13. template: {
  14. //files: '<%=tmod.template.src%>',
  15. files: './tpl',
  16. tasks: ['tmod'],
  17. options: {
  18. spawn: false
  19. }
  20. }
  21. }
  22. });
  23. grunt.loadNpmTasks('grunt-tmod');
  24. grunt.loadNpmTasks('grunt-contrib-watch');
  25. grunt.registerTask('default', ['tmod', 'watch']);
  26. };