Title
description
运行
npm i && npm start
目录结构
|- bin |- translatejs 生成最新的/src/app/locales/localesjs|- static 静态资源 例如icon image等|- src |- app |- components 公用模块 |- layout 布局 |- contentjsx 内容相关 展示每个routes中的内容 |- headerjsx 右侧顶栏 展示用户、语言等信息 |- footerjsx 右侧底栏 展示copy right之类的信息 |- indexjsx 整理布局,生成左侧边栏的目录 |- basejsx component基础类 |- configs 配置目录 |- menusjs 左侧栏菜单配置 |- e2e 端到端测试 使用cypress |- lib 通用function库 |- decoratorsjs 装饰类 管理单个store和root的状态 |- routes 路由内容 按功能模块分目录 |- indexjs 整理路由 |- stores 所有Mobx Store |- styles 样式 |- appless 布局样式 |- constantless 布局使用到的变量 |- test unit test 使用mocha |- mochaopts mocha使用到的配置 |- errorBoundaryjsx 前端报错使用 |- mainjsx webpack入口
lint
- 使用eslint
npm run lint
- 使用eslint并修复
npm run lint:fix
开发流程
master <-> develop <- feature/xxx | |<--------bugfix/xxx |<---- hotfix/xxx