跳到主要内容

项目搭建

  1. 工程配置(lint、husky等)

Normalize.css makes browsers render all elements more consistently and in line with modern standards. It precisely targets only the styles that need normalizing.

  • lint
  • husky
  • prettier
  • core-js(polyfill)

Prettier for formatting and linters for catching bugs

  • typescript tsconfig.json

https://juejin.cn/post/7259715842873655333

项目配置

为什么说用 babel 编译 typescript 是更好的选择

  • 代码设计(数据层、视图层、控制层)
  • 状态管理
  • 路由
  • 基础组件
  • 主题
  • 多语言
  1. 开发流程
  2. 测试流程
  3. 构建/打包流程
  4. 部署流程

其他 代码风格

  • module export 最好不要export default, 因为export * 不包括default