Go to file
时启龙 1c2f2e22a8 docs: remove outdated deployment path from README 2024-12-02 15:25:45 +08:00
build feat: 增加应用中心(待对接) 2024-08-26 14:30:29 +08:00
deoloy Initial commit all 2024-08-20 20:11:33 +08:00
public fix: 修改首页链接地址 2024-08-26 19:30:36 +08:00
src docs: update README with project structure, dependencies, image handling, and node version requirements 2024-12-02 15:18:49 +08:00
.eslintrc-auto-import.json style: 格式化代码 2024-08-21 09:17:14 +08:00
.eslintrc.js style: 格式化代码 2024-08-21 09:17:14 +08:00
.gitignore Initial commit with .gitignore 2024-08-20 20:11:33 +08:00
.prettierrc Initial commit all 2024-08-20 20:11:33 +08:00
Jenkinsfile 测试权限 2024-10-31 15:21:20 +08:00
README.md docs: remove outdated deployment path from README 2024-12-02 15:25:45 +08:00
commitlint.config.js style: 格式化代码 2024-08-21 09:17:14 +08:00
index.html style: 格式化代码 2024-08-21 09:17:14 +08:00
package.json chore: 增加 lodash-es type 依赖 2024-08-22 17:43:26 +08:00
pnpm-lock.yaml chore: 增加 lodash-es type 依赖 2024-08-22 17:43:26 +08:00
tsconfig.json style: 格式化代码 2024-08-21 09:17:14 +08:00
tsconfig.node.json style: 格式化代码 2024-08-21 09:17:14 +08:00
vite.config.ts fix: 增加日志 2024-08-30 15:59:03 +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 启动/打包项目有问题的话就不用

产物处理

本地 main-web/cmc-web ----------------------> 服务器 /opt/cmp/consoles/cmc-web 不要覆盖,因为里面还有其他文件

本地 main-web/cmc-web/cof-web --------------> 服务器 /opt/cmp/consoles/cof-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 serve

# 生产环境构建

pnpm build