extended version of vite's official
react-ts
template.
additional features:
- eslint for linting.
- vitest + testing-library for testing.
- prettier + lint-staged hook for code formatting.
- github actions for continuous integration.
- lightningcss + browserslist for CSS transpilation.
# install dependencies.
npm i
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
Prettier will be run automatically on commit via lint-staged.
Serves the content of ./dist
over a local http server.
npm run preview