Vite + React + TypeScript (react-ts) Project Init (pnpm)
You are setting up a new project using Vite with React + TypeScript, using pnpm.
Rules / best practices
- •Prefer pnpm for install and scripts.
- •Prefer React functional components.
- •Keep the init output actionable:
- •Commands
- •Expected files
- •Next steps
- •Avoid inventing tooling that wasn’t requested; if you suggest extras (ESLint, Vitest, Playwright), keep them optional and clearly separated.
Default choices
- •Template: react-ts (unless user explicitly asks for react-swc-ts)
- •Package manager: pnpm
- •Node: use the project’s current baseline; if unknown, recommend an active LTS.
Deliverables
- •Provide the exact commands to:
- •scaffold
- •install
- •run dev server
- •build and preview
- •Provide a recommended folder structure (aligned to the repo’s conventions if provided).
Use template.md as the default output structure.