Go to file
时启龙 20052e52df docs: remove outdated instructions for file handling in README 2024-12-02 15:25:44 +08:00
build fix: 分中心数据不可以编辑删除 2024-09-27 17:27:33 +08:00
dll Initial commit all 2024-08-20 20:11:31 +08:00
packages fix: 处理 iframe 参数兼容性 2024-09-04 18:50:22 +08:00
webs style: modify 2024-11-19 17:17:04 +08:00
.gitignore Initial commit with .gitignore 2024-08-20 20:11:24 +08:00
.pnpm-debug.log Initial commit all 2024-08-20 20:11:31 +08:00
.prettierrc Initial commit all 2024-08-20 20:11:31 +08:00
Jenkinsfile 测试构建2 2024-10-30 20:39:24 +08:00
README.md docs: remove outdated instructions for file handling in README 2024-12-02 15:25:44 +08:00
babel.config.js style: 格式化代码 2024-08-21 09:17:14 +08:00
commitlint.config.js style: 格式化代码 2024-08-21 09:17:14 +08:00
package.json chore: 解决依赖包错 2024-08-29 09:13:22 +08:00
pnpm-lock.yaml chore: 解决 jenkins 报错 2024-08-29 15:25:29 +08:00
pnpm-workspace.yaml style: 格式化代码 2024-08-21 09:17:14 +08:00
postcss.config.js style: 格式化代码 2024-08-21 09:17:14 +08:00
tsconfig.json style: 格式化代码 2024-08-21 09:17:14 +08:00

README.md

项目结构

  • 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 启动/打包项目有问题的话就不用

产物处理

本地 cmc-web/webs/xxx-web/xxx-web ----------> 服务器 /opt/cmp/consoles/cmc-web/sub-app/xxx-web

node 版本

node 16.x 其他版本依赖可能会有问题


# 修改镜像地址 -> 博云私有 npm 仓库地址

npm config set registry http://58.210.154.140:13011/repository/bocloud-npm/
npm config set always-auth true
npm config set auto-install-peers=true
npm config set strict-peer-dependencies=false
npm config set shamefully-hoist=true
npm config set _auth Ym9jbG91ZDpjbXBAdjU4Nw==

# 下载依赖

pnpm install

# 开发环境启动

pnpm start:app

# 生产环境构建

pnpm build:app

# 代码检测

pnpm lint

# 代码检测并自动修复

pnpm fix

# 解决内存溢出问题

pnpm fix-memory-limit