create-onin-plugin
v1.25.2
Published
CLI for scaffolding Onin plugins with background entry 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/background.tsmanifest.jsonvite.background.config.tspnpm pack:plugin
Framework-specific starters add their own UI entry files such as src/main.ts, src/main.tsx, and framework app components.
The release zip contains:
manifest.jsonicon.svgdist/index.htmldist/background.js
