extplug-cli
CLI for building and bundling ExtPlug plugins.
Last updated 3 years ago by goto-bus-stop .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install extplug-cli 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.5.0                                ...           latest (3 years ago)

11 Versions

  • 1.5.0                                ...           3 years ago
  • 1.4.0                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.3                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 2
Dependencies (20)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |