anodynos / uRequire

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 :-)
http://anodynos.github.io/uRequire
MIT License
265 stars 20 forks source link

Single UMD `combined` file, without almond's overhead. #35

Open anodynos opened 10 years ago

anodynos commented 10 years ago

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)

anodynos commented 10 years ago

Use https://github.com/gfranko/amdclean/ for multiple modules!