Boilerplate for a new react project with material UI and Typescript!
git clone
this reporm -rf .git
- Change the name, description, and git repo inside package.json
git init
git add . && git commit -am "initial commit" --no-verify
This repo includes Storybook - a great way to develop components. Try a tutorial to get started, if you are not familiar with this instrument.
react-testing-library is used to write integration tests of React components. jest-dom is used to have better development experience to write expectations.
If you need any inspiration on how to write tests with different libraries from react world (react-redux
, react-router
) you can always look at Examples and official documentation.
git clone git@github.com:trucknet-io/trucknet-boilerplate-typescript-react.git project-name
cd project-name
rm -rf .git
git init
git remote add origin
git flow init
- Edit
package.json
to change name (upper-snake-case), description and git repository of the project - Edit
.sentryclirc
to put your sentry project name and API token. To get API token you can usenpx -p @sentry/cli sentry-cli --url https://sentry.cluster-staging.trucknet.io login
- Edit
.envcmdrc
to put your Sentry DSN
- React v16
- Typescript v3
- material-ui v3
- material-ui/icons v3
- env-cmd
- Webpack v4
- Babel v7 (only for storybooks)
- awesome-typescript-loader v5
- favicons-webpack-plugin
- html-webpack-plugin
- file-loader
- webpack-bundle-analyzer
- @storybook/react v4
- jest v23
- ts-jest
- tslint (with trucknet config)
- react-testing-library
- lint-staged
- prettier
- husky
- commit-prompt