This is an experimental starter kit for a React static app.
- React Router
- CSS Modules + PostCSS + PurgeCSS + StyleLint
- TypeScript + ESLint
- Vite
- Vitest/React Testing Library for unit testing
- Playwright for E2E testing
- Custom i18n solution using
sprintf-js
- Web workers
- CI/CD workflows with GitHub Actions
# Install pre-commit
$ brew install pre-commit # or pip install pre-commit
# Install Playwright browsers
$ npx playwright install
# Install dependencies
$ npm install
# Run in dev
$ npm run dev
# Run E2E tests
$ npm test
# Run unit tests
$ npm unit
# Build for prod
$ npm run build
# Builds the app but skips all HTML/CSS/JS compressions
$ npm run build --raw
See scripts
in package.json
for additional commands.
When using react-static-starter-kit
as a template, follow these steps to strip placeholder content:
- Replace
LICENSE
file - Edit
README.md
- Edit fields in
package.json
- Edit fields in
app.config.ts
- Edit resources in
res/
, then ensure to replace the generated assets insrc/public/
- Edit files in
src/ui/
- Edit translations in
src/locales/