Package Exports
- @extension-create/create
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@extension-create/create) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@extension-create/create
The
create
part ofextension-create
available as a standalone package.
This package stores all logic needed by extension-create
to create new projects.
Installation
npm i @extension-create/create
Usage
There are two ways of using it:
Standalone Executable
# Will create a new directory named `my-extension-hello`.
npx @extension-create/create my-extension-hello
Imported CLI
Alternatively, if you're using commander, you can use @extension-create/create
to extend you CLI. This is what extension-create
does.
const {program} = require('commander')
const createExtensionCLI = require('@extension-create/create')
const yourCreateProgram = program
yourCreateProgram
.version(packageJson.version)
createExtensionCLI(yourCreateProgram)
yourCreateProgram
.parse(process.argv)
Program options table
Flag | Argument | What it does |
---|---|---|
-t, --template | Path to the template used to bootstrap your extension | Bootstrap your extension using a template |
Contributing
See CONTRIBUTING.md
License
MIT (c) Cezar Augusto.