# 云端视界 **Repository Path**: duhu321/cloud-horizon ## Basic Information - **Project Name**: 云端视界 - **Description**: 基于cesium制作的演示场景 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-02 - **Last Updated**: 2023-07-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # lerna + yarn 工程简介 ## lerna 命令 | 命令行 | 说明 | | --- | --- | | lerna clean | 清除模块依赖 | | lerna bootstrap | 安装依赖,无需使用 --hosit 参数 | | lerna add *package* | 为所有模块安装公共包 | | lerna add *package* --scope=*module* | 为 module 安装公共包 | | lerna add *module-a* --scope=*module-b* | 将 module-a 作为依赖包安装到 module-b | | lerna list | 查看工程下的模块 | ## yarn 命令 | 命令行 | 说明 | | ---- | ---- | | yarn install | 安装依赖 | | yarn add *package* -W | 为根目录添加包,所有模块均可以使用 | | yarn workspace *module* build | 执行指定 module 的 build 命令,其它命令同理 | | yarn workspace *module* add *package* | 为指定 module 添加公共包 | | yarn workspace *module-b* add *module-a* | *将 module-a 作为依赖包安装到 module-b | | yarn workspace**s** info | 查看工程下所有模块的依赖关系 | *该命令存在 [BUG](https://github.com/yarnpkg/yarn/issues/3973) ,无法正确安装本地依赖,请使用 lerna 命令代替,或指定版本号安装 ## 本地依赖说明 | 模块 | 依赖方式 | | --- | --- | | common/common-auth | 源码 | | common/common-hook | 源码 | | common/common-ui | 源码 | | common/common-util | 源码 | | common/rollup-plugin-lerna-alias | 编译产物 | | sys | 源码,入口程序 | | wms | 源码,入口程序 | | erp | 源码,入口程序 | | portal | 入口程序 | ## 初次启动 ### 全局环境安装 ```sh npm install -g lerna yarn ``` ### 安装工程依赖 ```sh yarn install yarn lib ``` ### 启动项目 ```sh yarn portal ```