@liujitcn/kratos-admin-cli 0.0.38 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,15 +40,15 @@ packages/cli
|
|
|
40
40
|
## 使用
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
pnpm dlx @liujitcn/kratos-admin-cli create
|
|
44
|
-
pnpm dlx @liujitcn/kratos-admin-cli create
|
|
45
|
-
pnpm dlx @liujitcn/kratos-admin-cli create
|
|
43
|
+
pnpm dlx @liujitcn/kratos-admin-cli create business-admin --module business
|
|
44
|
+
pnpm dlx @liujitcn/kratos-admin-cli create business-admin --module business,report
|
|
45
|
+
pnpm dlx @liujitcn/kratos-admin-cli create business-admin --module business --with log
|
|
46
46
|
|
|
47
47
|
# 当前仓库开发
|
|
48
|
-
pnpm module:create ../
|
|
49
|
-
pnpm module:create ../
|
|
50
|
-
pnpm module:create ../
|
|
51
|
-
pnpm module:create ../
|
|
48
|
+
pnpm module:create ../business-admin --module business
|
|
49
|
+
pnpm module:create ../business-admin --module business,report
|
|
50
|
+
pnpm module:create ../business-admin --module business --module report
|
|
51
|
+
pnpm module:create ../business-admin --module business,report --with log
|
|
52
52
|
pnpm --filter @liujitcn/kratos-admin-cli test
|
|
53
53
|
```
|
|
54
54
|
|
|
@@ -66,7 +66,7 @@ CLI 默认引入内置 System;指定本地 `system` 时由本地模块继承
|
|
|
66
66
|
|
|
67
67
|
| 占位符 | 生成内容 |
|
|
68
68
|
| ----------------------- | ----------------------------------------- |
|
|
69
|
-
| `__PROJECT_NAME__` | 项目目录名称,例如 `
|
|
69
|
+
| `__PROJECT_NAME__` | 项目目录名称,例如 `business-admin`。 |
|
|
70
70
|
| `__APP_PACKAGE__` | 宿主包名,例如 `@shop/admin-app`。 |
|
|
71
71
|
| `__APP_DEPENDENCIES__` | System、自有 module 和额外 module 依赖。 |
|
|
72
72
|
| `__MODULE_NAME__` | kebab-case 模块名,例如 `shop`。 |
|
package/dist/index.js
CHANGED
|
@@ -262,10 +262,10 @@ function printHelp() {
|
|
|
262
262
|
"kratos-admin create <project> --module <module[,module...]> [--module <module>] [--with other] [--kratos-project]",
|
|
263
263
|
"",
|
|
264
264
|
"示例:",
|
|
265
|
-
" kratos-admin create
|
|
266
|
-
" kratos-admin create
|
|
267
|
-
" kratos-admin create
|
|
268
|
-
" kratos-admin create
|
|
265
|
+
" kratos-admin create business-admin --module business",
|
|
266
|
+
" kratos-admin create business-admin --module business,report",
|
|
267
|
+
" kratos-admin create business-admin --module business --module report",
|
|
268
|
+
" kratos-admin create business-admin --module business,report --with other",
|
|
269
269
|
""
|
|
270
270
|
].join("\n"));
|
|
271
271
|
}
|