Skip to content

Latest commit

 

History

History
78 lines (63 loc) · 2.08 KB

README.md

File metadata and controls

78 lines (63 loc) · 2.08 KB

项目创建

本项目基于 Reactseed 创建。

开发命令

  • 开发 : npm start
  • 测试 : npm test
  • 构建 : npm run build
  • 分析 : npm run analyze

文件结构

__name__
├── mock
├── public
├── src
│ ├── components
│ ├── configs
│ ├── constants
│ ├── hooks
│ ├── pages
│ │ ├── Playground
│ ├── routes
│ ├── service
│ ├── themes
│ ├── typings
│ ├── utils
│ ├── index.tsx
│ ├── react-app-env.d.ts
│ ├── react.d.ts
│ ├── reportWebVitals.ts
│ ├── router.tsx
│ ├── setupTests.ts
│ └── setupProxy.js
├── .cz-config.js
├── .env
├── .eslintignore
├── .eslint.js
├── .gitignore
├── .prettierrc
├── .stylelintrc
├── craco.config.ts
├── README.md
├── tsconfig.eslint.json
├── tsconfig.json
└── package.json

主要依赖

内置 Hooks

项目内置了基础的 Hooks,如下:

  • useRequest:数据请求,建议根据业务进行调整
  • useAppStore:全局数据管理

模块联邦

项目内置了模块联邦配置,参考详情

  • 新增远程模块更新 craco.config.tsremotes 配置
  • src/typings/remote.d.ts 手动声明远程模块类型

相关文档