@solid-mvc/cli
v0.1.3
Published
Project scaffolding and maintenance CLI for solid-mvc: new, generate, serve/build/test, add, update
Readme
@solid-mvc/cli
The smvc binary — scaffolding, generators, dev/build/test delegation,
and dependency maintenance for SolidMVC projects.
Install
npm install -g @solid-mvc/cliCreate an app
smvc new my-app # scaffold + npm install
smvc new my-app --islands # + worker-island demo (contract + worker + route)
smvc new my-app --tailwind # + Tailwind v4 wiring
cd my-app && smvc serve # vite dev serverThe generated app is a runnable @Module-/@Component-structured Solid
project with router, DI tokens, a sample view test, and (with --islands)
a shared island contract + worker entry.
Generators — run inside a project
smvc g view my-page # src/app/my-page/my-page.view.tsx (+ test)
smvc g controller orders # <name>.controller.ts — @Controller view logic
smvc g service auth # <name>.service.ts — @Injectable service
smvc g module admin # feature module
smvc g island ticker # contract + worker entry pairBuild, dev, test
smvc serve|dev, smvc build (tsc --noEmit + vite build), and
smvc test (vitest run) delegate to the project's own toolchain —
vite args pass through (--watch, --no-typecheck).
Maintenance
smvc add tailwind | islands— install + wire an integration into an existing project.smvc update— bump@solid-mvc/*deps (--to <ver>,--include-atollfor@atolljs/*).
The package is plain .mjs — no build step, ships src/ directly.
