@justinli/create-vite-template
v0.2.0
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 format: Run Oxfmt to format codepnpm check: Run type checker and linter
