create-onin-plugin
v1.9.1
Published
CLI for scaffolding Onin plugins with lifecycle and release packaging built in.
Readme
create-onin-plugin
CLI for bootstrapping Onin plugins with a marketplace-safe release layout.
Usage
Published usage:
npx create-onin-plugin my-pluginMonorepo usage:
pnpm create:plugin my-pluginDirect package execution inside the repo:
pnpm --filter create-onin-plugin start my-pluginInteractive mode:
npx create-onin-pluginCreate a React starter instead:
npx create-onin-plugin my-plugin --framework reactCreate a Vue starter instead:
npx create-onin-plugin my-plugin --framework vueCreate a Vanilla TypeScript starter instead:
npx create-onin-plugin my-plugin --framework vanillaCreate a Vanilla JavaScript starter instead:
npx create-onin-plugin my-plugin --framework vanilla --language jsCreate a React JavaScript starter instead:
npx create-onin-plugin my-plugin --framework react --language jsCreate a Vue JavaScript starter instead:
npx create-onin-plugin my-plugin --framework vue --language jsCreate a Svelte JavaScript starter instead:
npx create-onin-plugin my-plugin --framework svelte --language jsCreate a Solid JavaScript starter instead:
npx create-onin-plugin my-plugin --framework solid --language jsCreate a Solid starter instead:
npx create-onin-plugin my-plugin --framework solidFrameworks
The CLI currently supports:
svelte(default)reactvuevanillasolid
Languages
ts(default)jsforvanilla,react,vue,svelte, andsolid
Generated project
Every generated plugin includes:
src/plugin.tsorsrc/plugin.jssrc/background.tsorsrc/background.jsmanifest.jsonscripts/build.mjspnpm pack:plugin
Framework-specific starters add their own UI mount helpers and app components, while src/main.* stays as a thin shared wrapper.
The release zip contains:
manifest.jsonicon.svgdist/index.htmldist/lifecycle.js
