template repo for React projects
- React + Typescript
- Vite + SWC
- pnpm
- GitHub Actions CI/CD, with deployment to GitHub Pages
- Code linting/formatting via ESLint, Prettier and StyleLint
- Test support via
JestVitest and React Testing Library - Code coverage reporting via Codecov
- Dependency upgrades via Renovate bot
- Click Use this template
- This will prompt you to create a new repo with all the files setup
- Rename the project (currently
react-template
) to your liking - Configure GitHub Pages to point at the
gh-pages
branch - Delete anything you won't use
- Update the README
- Other non-code setup like GitHub branch protections
- NOTE: if creating a private repo, you probably want to disable the windows and mac builds
pnpm install
pnpm dev
pnpm lint --fix
pnpm lint:css --fix
pnpm test
NOTE: GitHub Actions will deploy automatically on commit to main
pnpm build
pnpm deploy
The site will be available at: https://{github_username}.github.io/{project_name}/
Generated from react-template