mako-js
v1.1.4
Published
A mako plugin for assembling js files.
Readme
mako-js
A plugin for working with JS, using npm as a package manager.
Purpose
- compiles each entry file recursively via
require(...)statements into a single output file (similar to browserify/webpack) - makes JSON files
require-able - allow for creating a shared dependency bundle
- generates proper source maps (to be written by mako-sourcemaps)
API
js(options)
Create a new plugin instance, with the following options available:
browserif unset, will disable browser-specific features, resulting in a script that can run in nodebundleif set, should be a pathname (relative toroot) that specifies an extra file to put shared dependencies incheckSyntaxif unset, will disable the syntax check hookcoreadds a list of custom "core modules" to resolvedetectiveOptionsadditional options to be passed to detectiveextensionsadditional extensions to resolve with in addition to.jsand.json(eg:.coffee)modulesadditional modules to be passed to browser-resolveresolveOptionsadditional options to be passed to resolvesourceMapsspecifytrueto enable source-maps (default:false)sourceRootspecifies the path used as the source map root (default:"mako://")
