Skip to content

React 18, React-Router, Typescript, Vite, 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

Clone and install NPM dependencies:

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

Development

To lift the dev server with hot module reloading.

$ npm run dev

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

Build

To bundle the React application

$ npm run dist

Testing

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

# run tests in watch mode
$ npm run test:watch

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

Linting

$ npm run lint