@liujitcn/kratos-uni-app-cli 0.0.34 → 0.0.35
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 +13 -4
- package/assets/favicon.ico +0 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -6,14 +6,19 @@
|
|
|
6
6
|
|
|
7
7
|
```text
|
|
8
8
|
packages/cli
|
|
9
|
-
├──
|
|
10
|
-
├──
|
|
11
|
-
├──
|
|
12
|
-
├──
|
|
9
|
+
├── assets/favicon.ico # 随 npm 包发布的宿主图标
|
|
10
|
+
├── bin/kratos-uni-app.mjs # 命令行参数解析与可执行入口
|
|
11
|
+
├── src/index.mjs # workspace 文件生成逻辑
|
|
12
|
+
├── test
|
|
13
|
+
│ ├── scaffold.test.mjs # 脚手架结构和参数测试
|
|
14
|
+
│ └── packed-scaffold.test.mjs # tarball 内 CLI 与图标复制回归测试
|
|
15
|
+
├── README.md # CLI 包职责、参数和生成约束
|
|
13
16
|
└── package.json
|
|
14
17
|
```
|
|
15
18
|
|
|
16
19
|
CLI 直接由 `src/index.mjs` 生成文件,不依赖外部模板目录。
|
|
20
|
+
宿主图标从包内 `assets/favicon.ico` 复制,`assets` 必须包含在 `package.json` 的 `files`
|
|
21
|
+
发布白名单中。
|
|
17
22
|
|
|
18
23
|
## 功能
|
|
19
24
|
|
|
@@ -38,4 +43,8 @@ pnpm dlx @liujitcn/kratos-uni-app-cli create my-app --module orders
|
|
|
38
43
|
pnpm dlx @liujitcn/kratos-uni-app-cli create my-app --with @acme/pay
|
|
39
44
|
```
|
|
40
45
|
|
|
46
|
+
`pnpm test` 包含发布包回归测试:使用 `pnpm pack` 生成 tarball,在临时目录解压后执行
|
|
47
|
+
`create --module app`,检查生成的宿主图标内容、HTML 图标引用和本地模块。测试使用本机
|
|
48
|
+
`pnpm` 与 `tar`,不安装生成项目的依赖,并在结束后清理临时目录。
|
|
49
|
+
|
|
41
50
|
包构建和脚手架验证命令见 [workspace 文档](../../README.md)。
|
|
Binary file
|