@dsh-workbench/module-hello 1.1.12 → 1.1.14-beta.0
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 +3 -3
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ dsh plugin --profile workbench add @dsh-workbench/module-hello
|
|
|
26
26
|
| 浏览器面 | `src/client.tsx` | 把 `{ unit, messages, card }` 注册进外壳;卡片用 kit 的 `Card` |
|
|
27
27
|
| 文案 | `src/messages.ts` | zh / en 两份字典,键名以前缀分域 |
|
|
28
28
|
| 接线 | `cordis.patch.yml` | 把自己插进 profile 的组合图 |
|
|
29
|
-
| 测试 | `src/plugin.test.ts` | 断言插件名、注入面、两个面各注册一次 |
|
|
29
|
+
| 测试 | `src/__tests__/plugin.test.ts` | 断言插件名、注入面、两个面各注册一次 |
|
|
30
30
|
|
|
31
31
|
两个面都只 `inject: ['workbenchUnits']` —— 外壳交出来的那个服务。宿主侧拿不到服务时打一条
|
|
32
32
|
warn 就退,不会把整个 entry 拖挂。
|
|
@@ -38,12 +38,12 @@ src/
|
|
|
38
38
|
host.ts 宿主面:注册单元
|
|
39
39
|
client.tsx 浏览器面:注册卡片
|
|
40
40
|
messages.ts 文案(zh / en)
|
|
41
|
-
plugin.test.ts 两个面的注册测试
|
|
41
|
+
__tests__/plugin.test.ts 两个面的注册测试
|
|
42
42
|
scripts/smoke.mjs 构建后冒烟:产物能 require、导出齐全
|
|
43
43
|
cordis.patch.yml 把自己插进 profile 组合图
|
|
44
44
|
arch.config.mjs 一行:moduleArch()
|
|
45
45
|
eslint.config.mjs 两行:moduleLint()
|
|
46
|
-
client.js
|
|
46
|
+
client.js 构建产物(随仓提交,npm 包要带;dist/ 不进 git)
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
## 开发与门禁
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-workbench/module-hello",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14-beta.0",
|
|
4
4
|
"description": "最小示例模块:装上后面板里多一张卡片,用来试装试卸。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"react": "^19.3.0",
|
|
63
63
|
"typescript": "5.9",
|
|
64
64
|
"vitest": "^5.0.2",
|
|
65
|
-
"@dsh-workbench/core": "1.1.
|
|
66
|
-
"@dsh-workbench/module-tools": "1.1.
|
|
65
|
+
"@dsh-workbench/core": "1.1.14-beta.0",
|
|
66
|
+
"@dsh-workbench/module-tools": "1.1.14-beta.0"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|