neilbryson / react-ts-swc-starter

Starter code for React / TypeScript code ; uses swc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. .env.{ENVIRONMENT}.local
  2. .env.{ENVIRONMENT}
  3. .env.local
  4. .env

Default environment variables

  • BASE_PATH
  • DEV_AUTO_OPEN : Automatically open the web application in a browser
  • DEV_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

License

MIT

About

Starter code for React / TypeScript code ; uses swc

License:MIT License


Languages

Language:TypeScript 65.6%Language:JavaScript 28.1%Language:HTML 4.5%Language:Shell 1.3%Language:CSS 0.5%