Skip to content

anuj-webdev/minimal-react-typescript-boilerplate

Repository files navigation

A truly minimal React 18, Typescript boilerplate

A truly minimal most updated React 18, typescript boilerplate using webpack 5. Best suited for the projects where you want minimum bundle size and more control on webpack, typescript, eslint configurations, so that react project can be started with custom configurations without any much efforts from day one.

This template covers all aspects of react application development without any efforts.

  • Development - React 18, Typescript
  • Package bundling - Webpack 5
  • Code quality - Eslint

Minimal React TypeScript boilerplate

Installation

Clone repository

// Using SSH
git clone [email protected]:anuj-webdev/minimal-react-typescript-boilerplate.git

// Using HTTPS
git clone https://github.com/anuj-webdev/minimal-react-typescript-boilerplate.git

run npm install.

cd minimal-react-typescript-boilerplate
npm install

Usage

Development server

Run development webpack server, using npm start

npm start

Development webpack server starts on port 3000. To change port, update port number in webpack.dev.js config file.

Production build

To generate production build, run

npm run build

Linting

To check linting issues in project, run

npm run lint

To fix the lint issues in project, run

npm run lint:fix

Code styling

To check formatting issue in project, run

npm run pretty

To fix the formatting issues in project, run

npm run pretty:fix

Features

Dependencies

TypeScript

Webpack

Webpack pugins

  • css-loader - Resolve CSS imports
  • ts-loader - TypeScript loader for webpack, Resolve TypeScript
  • url-loader - Loader for webpack which transforms files into base64 URIs.

Linting

Prettier

Jest & Babel

Author

  • Anuj Sharma

License

  • This project is open source and available under the MIT License.

About

A truly minimal most updated React 18, Typescript boilerplate using Webpack 5, Jest & Eslint

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published