template repo for React projects
- React + Typescript
- Vite + SWC
- pnpm
- GitHub Actions CI/CD, with deployment to GitHub Pages
- Code linting/formatting via Oxlint, Oxfmt and StyleLint
- Test support via
JestVitest and React Testing Library - Code coverage reporting via Codecov
- Dependency upgrades via Renovate bot
- Releases and changelog via release-please
- 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-pagesbranch - Reset releases: delete
CHANGELOG.md, set thepackage.jsonversion and.release-please-manifest.jsonto0.0.0 - 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 devpnpm lint --fix
pnpm lint:css --fixpnpm testNOTE: GitHub Actions will deploy automatically when a release PR merges
pnpm build
pnpm deployThe site will be available at: https://{github_username}.github.io/{project_name}/
Generated from react-template