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 :-)
Instead of having bundle.path and its corresponding bundle.filez, we should have src: an array of objects with {path, filez} or shortcut [path, filez], like
src: [
[ '../../other/path/libA', ["this/path/from/libA/**/*" ] ]
[ 'node_modules/dist/libB', [/./, (f)-> f isnt 'badfile')] ]
# or the boring
{
path: "some/path"
filez: ['some/filespecs/*.*']
}
..
]
that all together define a virtual files source.
Notes:
We should also have some option to allow 'override'- think of overwrite, as we are writting -, with cases like true/false or 'older', 'newer', 'larger', 'smaller' etc. Order does matter, and the 1st one (left side) has precedence.
inlining can use urequire / browerify / commonjs-everywhere etc to convert the module and its nested deps, if needed. It can also use the bibrary's source, if available.
Could we have this :
['bower_components/lodash/dist/', 'lodash.js']
# or better
[ 'lodash' ] # that resolves to the above, that effectivelly is inlining lodash in bundle (UMD, or combined) as a 'normal' module of bundle's root.
Instead of having
bundle.path
and its correspondingbundle.filez
, we should havesrc
: an array of objects with{path, filez}
or shortcut[path, filez]
, likethat all together define a virtual files source.
Notes:
'override'
- think of overwrite, as we are writting -, with cases like true/false or 'older', 'newer', 'larger', 'smaller' etc. Order does matter, and the 1st one (left side) has precedence.