publicist-umd

UMD build task for publicist

MIT 3 个版本
安装
npm install publicist-umd
yarn add publicist-umd
pnpm add publicist-umd
bun add publicist-umd
README

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.

版本列表
1.0.2 2015-05-03
1.0.1 2015-05-03
1.0.0 2015-02-28