My own strong opinionated react/typescript boilerplate with blackjack and hookers. In fact, forget the boilerplate.
Main Features
- Async loader for routing and code
- Only Functional component with Hooks
- State management with unstated-next
Key Techs
Other libraries installed
Typescript extended support with:
- TSLint (TODO: change for eslint-typescript when is ready)
- type-coverage
- ts-toolbelt
StoryBook extended support with:
- Storybook Addon Actions
- Storybook Info Addon
- Story Links Addon
- Storybook Storysource Addon
- Props Combinations addon
- react-docgen-typescript-loader
Webpack Extended support with:
- babel-plugin-lodash
- babel-plugin-import
- moment-locales-webpack-plugin
- webpack-ant-icon-loader
- Webpack Bundle Analyzer
- critters-webpack-plugin
- preload-webpack-plugin
Install it:
git clone https://github.com/emilianox/shiny-typescript-boilerplate
npm install
npm start
Main Page
Analize Page
Audits in chrome
npm run storybook # run storybook
npm run type-check # run tsc to check ts errors
npm run type-check:watch # run tsc to check ts errors in watch mode
npm run type-coverage # run type-coverage
npm run build # compile project
npm run analize-build # compile project and run Bundle Analyzer
npm run build-storybook # run storybook in production and static mode
npm run clean # clean dist/ folder
https://anapioficeandfire.com/
Feel free to dive in! Open an issue or submit PRs.
https://github.com/a-tarasyuk/react-webpack-typescript-babel
MIT