This is a minimal project starter that uses Bun as the JavaScript runtime environment. It includes:
- TypeScript support
- Vite bundler features
- React Testing Library
- HappyDOM document object model emulator for unit tests
- Clone or download this repository.
- In a terminal window,
cd
to the root folder of the application. - Run
bun install
.
bun run dev
Starts a local development server, allowing you to preview your application as you work.bun run test
Runs unit tests in watch mode.bun run coverage
Prints a test coverage report.bun run build
Builds the application.bun lint
Lints the application using ESLint rules.bun preview
Previews the application (seevite preview
.)