@datawind/extension-cli
v0.0.10
Published
⚡Extension CLI help settle up Datawind extension project in a Flash.
Downloads
9
Keywords
Readme
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
}