npm Install dependencies,recommend use npm 7+
npm install
Start the dev server,
npm start
or
yarn Install dependencies
yarn
Start the dev server,
yarn start
npm run deploy
部署前需要更改client文件的远程服务器配置
examine
├─ mock // 模拟数据
├─ nodeServer // nodeJs的一些demo
├─ public // 全局静态资源
├─ Readme // 学习笔记
├─ src
│ ├─ api // api函数
│ ├─ assets // 静态资源
│ ├─ axios // CORS 跨域 请求封装
│ ├─ component // 组件
│ ├─ constants // 常量
│ ├─ enum // 枚举
│ ├─ globalContext // useContext + useReducer实现mini状态管理
│ ├─ hooks // 自定义hooks
│ ├─ layouts // 布局
│ ├─ pages // 页面
│ ├─ plugins // umi的插件
│ └─ utils // 方法
├─ config.router.ts // 布局菜单配置
├─ package.json
├─ README.md
├─ tsconfig.json // ts配置
├─ typings.d.ts // ts第三方声明
├─ yarn-error.log
└─ yarn.lock
- ✨feat:新功能(feature)
- 🐛fix:修补bug
- 📝docs:文档(documentation)
- 💄style:格式(不影响代码运行的变动)
- 🎨refactor:重构(即不是新增功能,也不是修改bug的代码变动)
- test:增加测试
- 🔧chore:构建过程或辅助工具的变动
- ⚡perf:性能优化(performance)
- tmp:临时提交(可用于非 master 分支)
git rebase xxx //xxx为分支名称
git merge xxx // xxx为新分支