@justinli/create-vite-template
v0.1.4
Published
This template provides a minimal setup for a static site using:
Readme
Create Vite Template
This template provides a minimal setup for a static site using:
- React
- TypeScript
- Vite
- Oxlint
- Oxfmt
Prerequisites
- Node.js
- pnpm
Usage
Create a project in a new directory:
pnpm create @justinli/vite-template my-appCreate a project in the current (empty) directory:
pnpm create @justinli/vite-template .cd into the project directory, install dependencies, and start the development server:
cd my-app
pnpm install
pnpm devScripts
pnpm dev: Start the development serverpnpm build: Build for productionpnpm preview: Preview the production build locallypnpm lint: Run Oxlint to check for linting errorspnpm lint:fix: Run Oxlint to fix linting errorspnpm fmt: Run Oxfmt to format codepnpm fmt:check: Run Oxfmt to check if code is formattedpnpm check: Run TypeScript, Oxlint, and Oxfmt checks
