The Ultimate JavaScript Module Builder & Automagical Task Runner. Convert AMD & CommonJS/NodeJS modules to UMD, AMD, CommonJS or bundle them as `combined.js` (rjs & almond, AMDclean soon) & automagically run/test/watch them on nodejs, Web/AMD or Web/Script. Declarative & DRY config with inheritance. Manipulate & inject dependencies, module code, banners, version etc while building with a single line. Support two kinds of plugins, ResourceConverter (i.e file level) and AfterBuilder (i.e the whole bundle). Transparent support for Coffeescript, IcedCoffeescript, Coco, LiveScript – they’re just JavaScript :-)
Add UMD around a single file - rather easily possible, if it has only external (global) dependencies, i.e its only a single module (or a result of concatenation).
Harder case for multiple modules: could perhaps use another library that gathers require()-only files together (but not something like https://github.com/sstephenson/stitch, cause it has its own overhead)
Add UMD around a single file - rather easily possible, if it has only external (global) dependencies, i.e its only a single module (or a result of concatenation).
Harder case for multiple modules: could perhaps use another library that gathers
require()
-only files together (but not something like https://github.com/sstephenson/stitch, cause it has its own overhead)