JSPM

  • Created
  • Published
  • Downloads 2109
  • Score
    100M100P100Q93835F
  • License MIT

The standalone extension creation engine for Extension.js

Package Exports

  • extension-create

Readme

Version Downloads CI

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-create

Usage

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 project
  • options (object) - Configuration options
    • template (string, optional) - Template name or URL. Defaults to 'init'
    • install (boolean, optional) - Whether to install dependencies. Defaults to true
    • cliVersion (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.