1.1.31 • Published 2 years ago

tcoffe-cli v1.1.31

Weekly downloads
-
License
MPL
Repository
github
Last release
2 years ago

tcoffe-cli

The command line interface for smpoo wich is base on pnpm workspace

编译打包

编译打包输出目录统一为 dist

MonoRepo 文件夹结构

:::mermaid graph LR; A工程根目录: RepoRoot --> B项目区: space; B --> C1项目组1: RepoGroup; C1 --> D11项目1-1: Repo; C1 --> D12项目1-2: Repo; B --> C2项目组2: RepoGroup; C2 --> D21项目2-1: Repo; C2 --> D22项目2-2: Repo; :::

命名规则

  • 类:FooMgr,基于 Foo 的管理类

  • 函数:tFoo,相对于 Foo 的工具函数入口

类结构

classDiagram
IRepo <|-- Repo : extends
IRepo : #isRoot boolean 判断本仓库是否属于 Mono 中的顶级根
IRepo : #pathMgr string 本仓库的地址管理器
IRepo : getMenu() string 调用基于本仓库基地址的CLI菜单
<<Interface>> IRepo
class Repo {
	IPath #pathMgr: 本仓库的地址管理器
	string basePath: 本仓库基地址
	getMenu():	调用基于本仓库基地址的CLI菜单
}