create-cosmo-widget
v0.4.3
Published
Scaffold a Vite-based Cosmo widget project
Downloads
235
Readme
create-cosmo-widget
Scaffold a minimal Vite-based Cosmo widget project.
Usage:
npm create cosmo-widget@latestThe CLI asks for a widget display name, then derives the project directory and package slug automatically:
Widget Display Name: My Widget
Project directory: my-widgetYou can still pass an explicit directory name if you want:
npm create cosmo-widget@latest my-widgetDevelopment workflow
Inside the generated widget directory:
npm install
npm run dev # starts Vite and auto-connects Cosmo
npm run dev -- -s # starts only the Vite dev server (no Cosmo handoff)