/react-ts-template

A React Template with TypeScript

Primary LanguageJavaScript

react-ts-template

React + Typescript项目模板

  1. webpack5
  2. react17
  3. antd4
  4. babel7
  5. eslint
  6. prettier
  7. pwa

workbox相关

workbox官方文档

workbox-webpack 配置

@loadable/component

官方文档

Delete eslint(prettier/prettier) 错误

git config --global core.autocrlf false

TODO

Cz工具集使用介绍 - 规范Git提交说明

从零开始配置 TypeScript 项目

  1. 增加Git Commit Message 1.1 npm install -g commitizen 1.2 commitizen init cz-conventional-changelog --yarn --dev --exact 1.3 .cz-config.js 1.4 npm install --save-dev @commitlint/cli 1.5 npm install --save-dev @commitlint/config-conventional 1.6 commitlint.config.js 1.7 npm install husky --save-dev 1.8 配置git commit提交时的校验钩子
  2. Lint Staged

package.json husky hook里面暂时删了"pre-commit": "lint-staged",

3.升级webpack5