Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ultra-dumb exporter of Node.js modules for use in the browser
JavaScript
Tree: 313d853dd9

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
support
.gitignore
README.rst
package.json

README.rst

buildumb

Ultra-dumb build tool for exporting Node.js modules for use in browsers.

API

formatTemplate(path[, arg1, ...])

Reads a template from the given path and formats it with util.format(), using all additional arguments passed in.

build(config)

Bundles up specified modules and exports to the global namespace, as instructed.

Expected config properties are:

root

The absolute path to the build root directory (usually a project directory).

All other paths in the config object are relative to config.root.

modules

An object mapping require() strings used in your code to source files.

Did I mention it was dumb?

exports
An object mapping global variable names to the require() strings which should be used to export to them.
output
Path to the build output file.
header (Optional)
A comment header for inclusion at the top of output files.
compress (Optional)

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.

Something went wrong with that request. Please try again.