docs: update README with project structure, dependencies, image handling, and node version requirements

develop
时启龙 2024-12-02 15:18:53 +08:00
parent e2077c4c96
commit 13ae582a5d
1 changed files with 32 additions and 0 deletions

View File

@ -1,3 +1,35 @@
## 项目结构
- main-web 主应用
- 提供登录页面/子应用入口
- cmc-web 管理端
- webs 子应用
- packages 本地包
- dll 动态链接库, 没用到
## 依赖项
- @cmp/cmp-api: cmc-web/packages/api 本地代码
- @cmp/cmp-common: cmc-web/packages/common 本地代码
- @cmp/\*\*\*: npm 包
## 项目中图片
- 指向服务器 nginx: /web-common-resource
## vite 启动/打包项目有问题的话就不用
## 产物处理
本地 main-web/cmc-web ----------------------> 服务器 /opt/cmp/consoles/cmc-web **不要覆盖,因为里面还有其他文件**
本地 main-web/cmc-web/cof-web --------------> 服务器 /opt/cmp/consoles/cof-web
本地 cmc-web/webs/xxx-web/xxx-web ----------> 服务器 /opt/cmp/consoles/cmc-web/sub-app/xxx-web
# node 版本
node 16.x 其他版本依赖可能会有问题
# 下载依赖 # 下载依赖
pnpm install pnpm install