react-ts-swc-starter
Starter code for React / TypeScript projects ; uses swc as transformer
Installation
Requirements
npm install
Starting the development server
npm start
Building the application
npm run build
Environment configuration
Similar to Create React App, environment variables can be set for production and development environments.
.env
file prioritisation
.env.{ENVIRONMENT}.local
.env.{ENVIRONMENT}
.env.local
.env
Default environment variables
BASE_PATH
DEV_AUTO_OPEN
: Automatically open the web application in a browserDEV_PORT
: Port to bind the dev server
Additional environment variables can be used in-app as long as these are prefixed with REACT_APP_
.
Technologies used
- ESLint
- husky
- Jest
- lint-staged
- Prettier
- React
- React Router
- React Testing Library
- swc
- Tailwind CSS
- TypeScript
- Webpack
License
MIT