grunt-furnace

grunt tasks for transforming code from one format to another

grunt-furnace

Grunt tasks for transforming code from one format to another

Support:

  • template > AMD
  • AMD > CJS (comming soon...)
  • CJS > AMD (comming soon...)
  • module pattern > AMD (comming soon...)
  • AMD > module pattern (comming soon...)
furnace: {
    tplExample1: {
        options: {
            importas: 'text',
            exportas: 'amd',
        },
        src: 'tpl/**/*.tpl',
        dest: 'js/app/tpl/'
    },
    tplExample2: {
        options: {
            importas: 'text',
            exportas: 'amd',
        },
        files: [{
            expand: true,     // Enable dynamic expansion. 
            cwd: 'tpl/',
            src: ['**/*.tpl'], // Actual pattern(s) to match. 
            dest: 'js/app/',   // Destination path prefix. 
            ext: '.tpl.js'
        }]
    }
},

See OzJS References

See OzJS Release History

Copyright (c) 2010 - 2013 dexteryy
Licensed under the MIT license.