create-weifuwu
v0.29.1
Published
Create a new weifuwu project — npm create weifuwu | npx create-weifuwu
Readme
create-weifuwu
Scaffold a new weifuwu project — API-only or React SSR.
npm create weifuwu@latest my-appOr using npx:
npx create-weifuwu my-appUsage
API-only project
npm create weifuwu my-api
cd my-api
npm run devCreates a minimal project with app.ts and index.ts.
React SSR project
npm create weifuwu my-app --ssr
cd my-app
npm run devCreates a full React SSR project with filesystem routing, Tailwind v4, and i18n.
Options
| Flag | Description |
|---|---|
| --ssr / --react | Generate React SSR project |
| --skip-install | Skip npm install |
Other commands
npx create-weifuwu version # Print CLI versionScaffolded structure
API-only
my-api/
├── app.ts # Route definitions
├── index.ts # Server entry
├── .env # Environment variables
├── .gitignore
├── package.json
└── tsconfig.jsonReact SSR
my-app/
├── index.ts # Server entry
├── app.ts # App setup
├── ui/
│ ├── app/
│ │ ├── layout.tsx # Root layout
│ │ ├── page.tsx # Home page
│ │ ├── globals.css # Global styles
│ │ └── about/
│ │ └── page.tsx
│ └── ...
├── locales/
│ ├── en.json
│ └── zh-CN.json
├── .env
├── .gitignore
├── package.json
└── tsconfig.jsonLicense
MIT
