CLI for building and bundling ExtPlug plugins.
npm install extplug-cliCLI for easily bundling ExtPlug plugins.
``bash`
npm install --global extplug-cli
`bash`
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]
watch
Options:
-h, --help output usage information
-V, --version output the version number
`
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:
`js`
// .babelrc
{
"presets": ["extplug-cli/babel"]
}
`js``
// package.json
{
"ava": {
"require": ["babel-register"],
"babel": "inherit"
}
}
[MIT]
[MIT]: ./LICENSE