https://github.com/josephgodwinkimani/vite-react-pwa-cypress
A Vite PWA + React + Typescript + Cypress starter template.
https://github.com/josephgodwinkimani/vite-react-pwa-cypress
boilerplate cypress frontend hmr husky lint-staged react typescript vite vite-template-react vitejs
Last synced: 7 months ago
JSON representation
A Vite PWA + React + Typescript + Cypress starter template.
- Host: GitHub
- URL: https://github.com/josephgodwinkimani/vite-react-pwa-cypress
- Owner: josephgodwinkimani
- Created: 2024-02-26T12:48:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-27T17:54:07.000Z (8 months ago)
- Last Synced: 2025-01-27T18:45:22.793Z (8 months ago)
- Topics: boilerplate, cypress, frontend, hmr, husky, lint-staged, react, typescript, vite, vite-template-react, vitejs
- Language: TypeScript
- Homepage:
- Size: 751 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React + TypeScript + Vite PWA + Cypress
This template provides a minimal setup to get React working in Vite with HMR, Cypress for e2e/component testing and some ESLint useful rules.
## Command List
Run development server:
```bash
$ pnpm run dev
```
Run linting:```bash
$ pnpm run lint
# add --fix at the end to fix issues
```
Run cypress tests:```bash
$ pnpm run test
```
Instrumenting code using battle-hardened Istanbul:```bash
$ pnpm run instrument
```
See code coverage summary:```bash
$ pnpm run test:cov
```
Generate test report:```bash
$ pnpm run test:report
```
Generate test coverage report:```bash
$ pnpm run test:cov
```
Build:```bash
$ pnpm run build
```