extended version of vite's official
react-ts
template.
additional features:
- biome for formatting and linting.
- vitest + testing-library for testing.
- lefthook hook for pre-commit checks.
- github actions for continuous integration.
# install dependencies.
npm i
# (optional) install pre-commit hook.
npm run precommit:configure
npm run dev
npm run build
npm test
# run vitest in watch mode.
npm run test:watch
# collect coverage.
npm run test:coverage
npm run lint
npm run fmt
Serves the content of ./dist
over a local http server.
npm run preview