create-fluixi
v0.1.0-alpha.7
Published
Scaffold a new Fluixi app — `npm create fluixi <dir>`.
Downloads
273
Readme
create-fluixi
Scaffold a new Fluixi app — npm create fluixi <dir>.
✨ Overview
Run via your package manager's create shortcut — no install needed:
npm create fluixi my-app
# or
pnpm create fluixi my-app
# or
yarn create fluixi my-appIt prompts for a project name and a mode, or take them on the command line:
create-fluixi my-app --ssr # SSR app (@fluixi/start: file routing + SSR + hydration)
create-fluixi my-app --spa # SPA (vite + @fluixi/vite-plugin)Then:
cd my-app
pnpm install
pnpm dev🗂️ Templates
| Mode | Stack | Entry |
| --- | --- | --- |
| SSR | @fluixi/start + @fluixi/cli | src/entry-{server,client}, src/routes/, fluixi.config.ts |
| SPA | vite + @fluixi/vite-plugin | src/main.tsx → render(() => <App/>) |
Both pin @fluixi/* to the next dist-tag and set jsxImportSource: "@fluixi/jsx".
🧱 Scaffolding pieces
To add components, routes, or middleware inside an existing app, use fluixi generate
from @fluixi/cli:
fluixi g component Button
fluixi g route about