@dsh-workbench/module-hello 1.1.14-beta.1 → 1.1.14
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 +3 -3
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ dsh plugin --profile workbench add @dsh-workbench/module-hello
|
|
|
21
21
|
|
|
22
22
|
| 东西 | 在哪 | 说明 |
|
|
23
23
|
|---|---|---|
|
|
24
|
-
| 模块声明 | `package.json` 的 `dsh.workbench` | `apiVersion: 3`、单元 id `hello
|
|
24
|
+
| 模块声明 | `package.json` 的 `dsh.workbench` | `apiVersion: 3`、单元 id `hello`、中英名字、一张卡(只有排序位)、零工具、不注入外壳服务、不声明写入域(`host.writes: []`,也就不用执行缝门面) |
|
|
25
25
|
| 宿主面 | `src/host.ts` | 把 `{ unit: 'hello', mount }` 注册进外壳的 `workbenchUnits`;`routes` 空、`registerTools` 空 |
|
|
26
26
|
| 浏览器面 | `src/client.tsx` | 把 `{ unit, messages, card }` 注册进外壳;卡片用 kit 的 `Card` |
|
|
27
27
|
| 文案 | `src/messages.ts` | zh / en 两份字典,键名以前缀分域 |
|
|
@@ -52,7 +52,7 @@ client.js 构建产物(随仓提交,npm 包要带;dist/ 不进 gi
|
|
|
52
52
|
pnpm install
|
|
53
53
|
pnpm build # dist/host.js + client.js
|
|
54
54
|
pnpm test # 单元测试
|
|
55
|
-
pnpm check #
|
|
55
|
+
pnpm check # 十四条模块判据(契约 / 产物边界 / 源码边界 / 执行缝 / 卡片渲染 / arch / lint …)
|
|
56
56
|
pnpm selfcheck # build + 产物冒烟
|
|
57
57
|
```
|
|
58
58
|
|
|
@@ -76,5 +76,5 @@ pnpm exec dsh-wb-module init my-unit --template diy
|
|
|
76
76
|
|---|---|
|
|
77
77
|
| 模块怎么写、怎么装、怎么验收 | [DIY 指引](../core/skills/workbench-module-diy/SKILL.md) |
|
|
78
78
|
| 构建、接线、注册的细节 | [BUILD.md](../core/skills/workbench-module-diy/BUILD.md) · [WIRING.md](../core/skills/workbench-module-diy/WIRING.md) |
|
|
79
|
-
|
|
|
79
|
+
| 十四条判据、模板、设计底稿 | [module-tools](../module-tools/README.md) |
|
|
80
80
|
| 契约类型与共享组件 | [shared](../shared/README.md) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-workbench/module-hello",
|
|
3
|
-
"version": "1.1.14
|
|
3
|
+
"version": "1.1.14",
|
|
4
4
|
"description": "最小示例模块:装上后面板里多一张卡片,用来试装试卸。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"tools": [],
|
|
40
40
|
"host": {
|
|
41
|
-
"inject": []
|
|
41
|
+
"inject": [],
|
|
42
|
+
"writes": []
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
"workbenchFaces": {
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
50
|
-
"@dsh-workbench/core": "^
|
|
51
|
+
"@dsh-workbench/core": "^1.0.0",
|
|
51
52
|
"react": "*"
|
|
52
53
|
},
|
|
53
54
|
"peerDependenciesMeta": {
|
|
@@ -62,8 +63,8 @@
|
|
|
62
63
|
"react": "^19.3.0",
|
|
63
64
|
"typescript": "5.9",
|
|
64
65
|
"vitest": "^5.0.2",
|
|
65
|
-
"@dsh-workbench/core": "1.1.14
|
|
66
|
-
"@dsh-workbench/module-tools": "1.1.14
|
|
66
|
+
"@dsh-workbench/core": "1.1.14",
|
|
67
|
+
"@dsh-workbench/module-tools": "1.1.14"
|
|
67
68
|
},
|
|
68
69
|
"publishConfig": {
|
|
69
70
|
"access": "public"
|