Provides a configured development environment with the following:
- React
- TypeScript
- Tailwind
- Biome
- Sass
- Zustand for state management
- Vite, a dev server
- Vitest, a Vite-native unit test framework with an API nearly identical to Jest
- A VSCode workspace with recommended extensions and configuration settings
Clone the repo:
git clone https://github.com/Jawfish/react-typescript-template.git
cd ./react-typescript-template
Install dependencies:
npm install
Script | Description | Command |
---|---|---|
install |
Install dependencies | bun install |
dev |
Start vite dev server | bun dev |
build |
Build for production | bun build |
test |
Run unit tests | bun test |
test:ui |
Run unit tests with UI | bun test:ui |
lint |
Run linter | bun lint |
fix |
Run linter and fix | bun fix |
preview |
Preview production build | bun preview |