Socket
Book a DemoInstallSign in
Socket

grunt-furnace

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-furnace

grunt tasks for transforming code from one format to another

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-furnace

  • Grunt tasks for transforming code from one format to another

Support

  • TPL > AMD - Use JS template file as AMD module no matter what syntax
  • TPL > CJS - Use JS template file as CommonJS module no matter what syntax
  • AMD > CJS - Make available AMD module in NodeJS or publish AMD module through NPM
  • CJS > AMD - Use Component-based module in your OzJS-based or RequireJS-based project
  • AMD > module pattern (coming soon...)

Config Example

furnace: {
    tplExample: {
        options: {
            importas: 'tpl',
            exportas: 'amd',
        },
        src: 'tpl/**/*.tpl',
        dest: 'js/app/tpl/'
    },
    npmExample: {
        options: {
            importas: 'amd',
            exportas: 'cjs',
        },
        files: [{
            expand: true,
            cwd: './',
            src: ['**/*.js', '!<%= meta.npmPublishDir %>/**', '!node_modules/**', 'Gruntfile.js'],
            dest: '<%= meta.npmPublishDir %>/',
            ext: '.js'
        }]
    }
},

See Gruntfile.js and tests/ for more examples.

Source code

More References

See OzJS Project Homepage

Release History

See OzJS Release History

License

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

Keywords

gruntplugin

FAQs

Package last updated on 27 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts