Skip to content

React 18, React-Router, Typescript, Vite, Zustand, Babel 7, React-Testing-Library, ESLint, Vitest

License

Notifications You must be signed in to change notification settings

chuntley/react-boilerplate

Repository files navigation

React Boilerplate

Build

Installation

Requires Node >=18.x, excluding 19.x

Install Yarn: https://yarnpkg.com/lang/en/docs/install/

Clone and install dependencies:

$ git clone [email protected]:chuntley/react-boilerplate.git
$ cd react-boilerplate
$ yarn

Development

To lift the dev server with hot module reloading.

$ yarn dev

The output of the command will list the URL to the dev server.

Build

To bundle the React application

$ yarn dist

Testing

# run all tests including coverage report and linting
$ yarn test

# run tests in watch mode
$ yarn test:watch

# run single test without coverage or linting
$ yarn test:lite

Linting

$ yarn lint