publicist-umd
UMD build task for publicist. Uses Browserify to generate a standalone bundle so people who don't use Node/Browserify can consume your library.
Installing
npm install --save-dev publicist-umd
API
See the publicist plugin docs for full details on how publicist-umd will be called.
Configuration
publicist-umd loads the following default configuration which you can selectively override via publicist:
name
: Passed to browserify'sopts.standalone
to create the global namespace. Defaults to thename
field frompackage.json
filename
: The filename of the generated JavaScript file. Defaults to thename
with a.js
extension.browserify
transform
: An array of transforms to be registered with browserify. Normally you should store these under thebrowserify.transform
field inpackage.json
directly. Configuring transforms through publicist should be reserved for when your UMD build requires transforms that shouldn't run with normal browserify usage.
Build
Creates a standalone UMD build and writes it to the specified dest
from your configuration.