CLI for easily bundling ExtPlug plugins.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src
.babelrc
.eslintignore
.eslintrc.json
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
babel.js
gulpfile.js
package.json

README.md

extplug-cli

CLI for easily bundling ExtPlug plugins.

Installation

npm install --global extplug-cli

Usage

extplug bundle /path/to/my/plugin.js bundled-plugin.js
extplug [options] [command]


Commands:

  init                               Scaffold a new plugin in the current directory.
  bundle [options] <entry> [output]  Bundle a plugin.
  watch <entry> <output>             Bundle a plugin. Rebuild automatically when source files change.

Options:

  -h, --help     output usage information
  -V, --version  output the version number

Babel Preset

The Babel preset used by the ExtPlug CLI is available as extplug-cli/babel. This is useful if you need to transpile your code outside of bundling, like when running tests.

For example, with Ava:

// .babelrc
{
  "presets": ["extplug-cli/babel"]
}
// package.json
{
  "ava": {
    "require": ["babel-register"],
    "babel": "inherit"
  }
}

License

MIT