create-mdd-workspace
v0.1.0
Published
大多数技术都有 CLI 来创建新的工作区。例如:
Downloads
2
Readme
介绍
大多数技术都有 CLI 来创建新的工作区。例如:
- React 有 create-react-app
- Angular 有 Angular CLI
- Vite 有 create-vite
create-mdd-workspace
是MDD的CLI,快速创建一个Monorepo的工作区。
使用
pnpx create-mdd-workspace my-workspace
# pnpx 类似于 npm 的npx
# my-workspace 为项目名称, 也可写,通过交互式的方法创建
# 输出
✔ Installing dependencies with pnpm
✔ Successfully created the workspace: my-workspace.
✔ init mdd-workspace
✔ init git
✔ pnpm install
✔ git commit
Successfully created the workspace: /Users/houjinlong/code/temp/my-workspace.
参数
npx create-mdd-workspace --help
# 输出
create-mdd-workspace [name] [options]
Create a new MDD workspace
Options:
--help Show help [boolean]
--version Show version [boolean]
--name Workspace name (e.g. org name) [string]
-a, --allPrompts Show all prompts [boolean] [default: false]
--git.baseBranch Default base to use for new projects [string] [choices: "master", "main"] [default: "master"]
--git.ci Default Source code management for new projects [string] [choices: "gitlab", "github"] [default: "gitlab"]