0.0.2 • Published 11 years ago
bundlify v0.0.2
Bundlify
For those who don't like the extra code of browserify, bundlify will simply wrap your modules, with Module Pattern, and put them all on the same file, but it will not read external libraries!
Installation
$ npm install bundlifyUsage
$ bundlify entry_point.jsOptions
You can translate the name of the libraries to load it from the browser, e.g.
$ bundlify index.js bluebird:Promise > bundle.js// index.js
var bluebird = require('bluebird');Will be translated to:
// bundle.js
var bluebird = this.Promise; // this will always be the global scopeYou can also export your entry module
$ bundlify onionskin.js :OnionSkin > dist/onionskin.jsWill put the export of the file onionskin.js on the global variable OnionSkin