Package Exports
- extension-create
Readme
extension-create
The standalone extension creation engine for Extension.js. Use it to scaffold a new extension project from a template.
Install
npm install extension-createUsage
Create a new extension with a single function call:
import {extensionCreate} from 'extension-create'
// Create a basic extension
await extensionCreate('my-extension', {
template: 'init'
})
// Create a React extension and install its dependencies
await extensionCreate('my-react-extension', {
template: 'react',
install: true
})API reference
extensionCreate(projectName, options)
Creates a new extension project with the specified configuration.
Parameters
projectName(string, required) - The name of your extension projectoptions(object) - Configuration optionstemplate(string, optional) - Template name or URL. Defaults to'init'install(boolean, optional) - Whether to install dependencies. Defaults totruecliVersion(string, optional) - CLI version for package.json
Templates
Templates are sourced from the public examples repository. Browse the catalog in the Extension.js examples and reference templates by name (for example, content, content-react, content-vue).
License
MIT (c) Cezar Augusto.