0.0.10 • Published 7 months ago

@datawind/extension-cli v0.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Extension CLI

⚡Extension CLI help settle up Datawind extension project in a Flash.

Installation

Use the package manager to install foobar.

npm install -g @datawind/extension-cli
# you can either use yarn or pnpm
yarn add -g @datawind/extension-cli

Usage

# initialize your project use default/specific template
extension create my-extension [--template <tgz url>]

# development
extension dev

# build and pack before publish your extension
extension build

Configuration

module.exports = {
  entry: {
    main: 'src/index.js', // extension main entry
  },
  htmlEntry: {
    // your html template for custom renderer, related to contributes package.json
    index: 'src/index.html',
  },
  devPort: 5000, // optional if you want to specify dev server port, default to be 5000
}