Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ederssouza/react-typescript-boilerplate

A React Boilerplate with TypeScript for SPA projects
https://github.com/ederssouza/react-typescript-boilerplate

editorconfig eslint jest plop prettier react react-testing-library reactjs typescript

Last synced: about 12 hours ago
JSON representation

A React Boilerplate with TypeScript for SPA projects

Awesome Lists containing this project

README

        

# React TypeScript Boilerplate

## What is inside?

- [Vite](https://vitejs.dev)
- [EditorConfig](https://editorconfig.org)
- [ESLint](https://eslint.org)
- [Prettier](https://prettier.io)
- [Jest](https://jestjs.io)
- [React Testing Library](https://testing-library.com/docs/react-testing-library/intro)
- [Plop js](https://plopjs.com)

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
```

Open [http://localhost:5173](http://localhost:5173) with your browser to see the result.

## Scripts

- `dev`: starts the application in development mode;
- `build`: creates the production version;
- `preview`: initializes a local static web server that serves files from the `dist` directory (this is an easy way to verify that the production build is working correctly);
- `lint`: runs linter on all files that are in the configuration rule;
- `lint:fix`: runs linter and fixes all files that are in the configuration rule;
- `typecheck`: checks if the file types are correct;
- `test`: runs unit and integration tests;
- `test:watch`: runs unit and integration tests in listening mode;
- `coverage-test`: runs unit and integration tests and generates a code coverage report;
- `coverage-test:watch`: runs unit and integration tests and generates a code coverage report in listen mode;
- `generate:component`: creates basic structure of a component;
- `generate:hook`: creates the basic structure of a hook.