Modern template to start creating react app using webpack and typescript 🚀
Installing
git clone https://github.com/m-avagyan/webpack-react-typescript-template.git
cd webpack-react-typescript-template
yarn install --frozen-lockfile
Run Locally
yarn dev
- server started at localhost:3000 in local modeyarn start
- server started at localhost:3000 in development modeyarn watch
- server started at localhost:3000 in production mode
Build Project
yarn clean
- clean thedist/
directoryyarn build
- we can see the output indist/
directory
Run Unit Tests
yarn test
- run all test casesyarn test:watch
- run all test cases in watch modeyarn test:coverage
- run all test cases and collect coverage for each tested files
Analyze
yarn analyze
- build project to/dist
and analyze your bundle size in localhost:3006
Codebase
yarn lint
- lint the codebaseyarn format
- format the codebase using prettier
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- We use the conventional commit lint for linting our commit messages
- Also before every commit we run the
lint
command using husky for lint our codebase
Martik Avagyan
- Website: martikavagyan.com
- Twitter: @martikavagyan
- GitHub: @m-avagyan