This project serves as a template for react applications using typescript. It provides basic folder structure for building react applications.
- webpack is used for bundling (dev and prod builds supported)
- jest is used for testing and code coverage
- tslint is used for linting
- CI with github actions
$ git clone https://github.com/mmarinovic/react-typescript-boilerplate.git
$ cd react-typescript-boilerplate
$ yarn install
$ yarn watch:dev
Open http://localhost:8080 in your browser and start coding!
Install dependencies:
$ yarn install
Start a local development server with hot reload.
$ yarn watch:dev
Build development
$ yarn build:dev
Build production
$ yarn build:prod
Run tests with watch
$ yarn test:watch
Runs tests without watch
$ yarn test
Runs tslint
yarn lint
Runs type checker. You can add this to husky pre-commit hook as well.
$ yarn typecheck
Runs webpack bundle analyer.
$ yarn bundle:analyze