# template-react-web **Repository Path**: tt_haogege/template-react-web ## Basic Information - **Project Name**: template-react-web - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-12 - **Last Updated**: 2025-08-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EMS-WEB ## 财务报账系统PC端 ### 特别说明 1. 严格要求代码书写,提交请走husky钩子严禁跳过代码检验提交代码。 2. 注释代码或未使用代码,及时删除。 ## 技术栈 ``` React: 18.2 UI框架: antd V5 style: scss store: mobx router: react-router-dom V6 ``` ## 启动 ``` npm i npm start ``` ## 打包 ``` npm run build:uat npm run build:prod ``` ## 代码检测 ``` npm run lint ``` ## 目录结构 ``` ├── public // 公共文件 │ ├── favicon.ico │ └── index.html ├── src // alias -> @ │ ├── components // 公共组件 alias -> @c │ ├── api // api接口 alias -> @api │ ├── index.tsx //入口文件 │ ├── router // 路由文件夹 alias -> @r │ │ ├── index.ts // 路由组件 │ │ ├── LazyImportComponent.tsx // 懒加载组件 │ │ └── router.js // 路由配置 │ │ │ ├── types // 整个项目类型定义存放位置 │ │ ├── index.d.ts // 全局类型定义 │ │ └── Store.d.ts // Store类型定义 │ │ │ ├── store // store文件夹 alias -> @s │ │ ├── index.ts // 仓库导出 │ │ ├── global.ts // 全局共用数据仓库 │ │ └── base.ts // 共性数据仓库 │ │ │ ├── style // 样式库 alias -> style │ │ └── index.scss 公共样式或变量 │ │ │ ├── utils // 公共工具文件夹 alias -> @u | | └── Request.ts //Axios请求封装 │ │ │ └── pages // 页面文件夹 alias -> pages │ └── example // 一个页面或功能组件一个文件夹 便于页面的拆分 ├── README.md // 项目说明 ├── .env.dev // 开发环境配置文件 ├── .env.prod // 生产环境配置文件 ├── .env.uat // 测试环境配置文件 ├── .eslintrc.json // eslint 配置 ├── tsconfig.json // ├── .prettierrc.js ├── package.json // 项目包文件 └── .rescriptsrc.js // webpack等配置 ```