Ultra-dumb build tool for exporting Node.js modules for use in browsers.
Examples of build files written with buildumb:
- No dependencies
- Bundling individual files from a dependency
- Lots of dependencies, some of which require eachother using different require() strings
formatTemplate(path[, arg1, ...])
Reads a template from the given path and formats it with util.format(), using all additional arguments passed in.
Bundles up specified modules and exports to the global namespace, as instructed.
config properties are:
The absolute path to the build root directory (usually a project directory).
All other paths in the
configobject are relative to
An object mapping source file paths to
require()strings used to require them in your code. If the same file is required multiple ways, the right hand side should be an Array.
Did I mention it was dumb?
- An object mapping global variable names to the
require()strings which should be used to export to them.
- Path to the build output file.
- A comment header for inclusion at the top of output files.
Path to a compressed output file, which will be created if given.
The Closure Compiler Service API is used to compress code - errors, warnings and statistics it returns will be displayed.
A compressed version will not be written if there are errors present.
require()will be exported to the global scope.