Détail du package

grunt-furnace

dexteryy240.2.0

grunt tasks for transforming code from one format to another

gruntplugin, ozjs, convert, format

readme

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...)

Config Example

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'
        }]
    }
},

Source code

More References

See OzJS References

Release History

See OzJS Release History

License

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