Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fspoettel/vite-react-ts-template
extended version of vite's official react-ts template. adds CI, linting, testing and auto-formatting.
https://github.com/fspoettel/vite-react-ts-template
react template typescript vite
Last synced: about 1 month ago
JSON representation
extended version of vite's official react-ts template. adds CI, linting, testing and auto-formatting.
- Host: GitHub
- URL: https://github.com/fspoettel/vite-react-ts-template
- Owner: fspoettel
- License: mit
- Created: 2022-04-23T12:24:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-14T12:01:16.000Z (9 months ago)
- Last Synced: 2024-04-14T13:20:12.822Z (9 months ago)
- Topics: react, template, typescript, vite
- Language: TypeScript
- Homepage:
- Size: 911 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-react-ts-template
> extended version of [vite](https://vitejs.dev/)'s official `react-ts` template.
additional features:
- [biome](https://biomejs.dev/) for formatting and linting.
- [vitest](https://vitest.dev/) + [testing-library](https://testing-library.com/) for testing.
- [lefthook](https://github.com/evilmartians/lefthook) hook for pre-commit checks.
- [github actions](https://github.com/features/actions) for continuous integration.## Install
```sh
# install dependencies.
npm i# (optional) install pre-commit hook.
npm run precommit:configure
```## Develop
```sh
npm run dev
```## Build
```sh
npm run build
```## Test
```sh
npm test# run vitest in watch mode.
npm run test:watch# collect coverage.
npm run test:coverage
```## Lint
```sh
npm run lint
```## Format
```sh
npm run fmt
```## Preview
Serves the content of `./dist` over a local http server.
```sh
npm run preview
```