1.0.2 • Published 10 years ago

publicist-umd v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

publicist-umd Build Status

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's opts.standalone to create the global namespace. Defaults to the name field from package.json
  • filename: The filename of the generated JavaScript file. Defaults to the name with a .js extension.
  • browserify
    • transform: An array of transforms to be registered with browserify. Normally you should store these under the browserify.transform field in package.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.