Skip to content

My opinionated starter template for Vite, including Vitest, Biome,...

License

Notifications You must be signed in to change notification settings

samhwang/vite-starter-template

Repository files navigation

Getting Started with Vite - React starter template

This project was bootstrapped with Vite, and was created to be very similar to Create-React-App, but faster and with batteries included!

Using this template

There are 3 ways that you can adopt this template.

  • Click the Use this template button on this repo, or click on this link.
  • Clone this repo, delete the .git folder and re-init the Git tree.
  • Use degit: npx degit samhwang/vite-starter-template project-name

Batteries included

Runtime:

Dev tools:

  • pnpm - Fast, disk space efficient package manager.
  • Biome for code linting and formatting.
  • Vite - The blazing fast frontend build tool.
  • Vitest for running unit tests with React Testing Library, using msw to fake a service worker request to intercept API calls during testing..

Available Scripts

pnpm run dev
pnpm run test
pnpm run format
pnpm run build

Deployment

This template is assumed to be hosting provider agnostic. Please read the Vite documentation on how to deploy your app.

Learn More

You can learn more in the Vite documentation.

To learn React, check out the React documentation.

To learn React testing, go to RTL docs

About

My opinionated starter template for Vite, including Vitest, Biome,...

Topics

Resources

License

Stars

Watchers

Forks