/vite-react-ts-template

extended version of vite's official react-ts template. adds CI, linting, testing and auto-formatting.

Primary LanguageTypeScriptMIT LicenseMIT

vite-react-ts-template

extended version of vite's official react-ts template.

additional features:

Install

# install dependencies.
npm i

# (optional) install pre-commit hook.
npm run precommit:configure

Develop

npm run dev

Build

npm run build

Test

npm test

# run vitest in watch mode.
npm run test:watch

# collect coverage.
npm run test:coverage

Lint

npm run lint

Format

npm run fmt

Preview

Serves the content of ./dist over a local http server.

npm run preview