@ddd-tool/domain-designer-cli 0.1.0-beta.8 → 0.3.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 +12 -20
- package/bin/domain-designer-cli.cjs +19145 -18662
- package/package.json +40 -23
- package/packages/playground/.env +1 -0
- package/packages/playground/node_modules/.vite/deps/_metadata.json +34 -0
- package/packages/playground/node_modules/.vite/deps/chunk-F4TQRHS6.js +2147 -0
- package/packages/playground/node_modules/.vite/deps/chunk-F4TQRHS6.js.map +7 -0
- package/packages/playground/node_modules/.vite/deps/chunk-MFAKUPMY.js +12787 -0
- package/packages/playground/node_modules/.vite/deps/chunk-MFAKUPMY.js.map +7 -0
- package/packages/playground/node_modules/.vite/deps/package.json +3 -0
- package/packages/playground/node_modules/.vite/deps/primevue_button.js +1215 -0
- package/packages/playground/node_modules/.vite/deps/primevue_button.js.map +7 -0
- package/packages/playground/node_modules/.vite/deps/primevue_dock.js +1236 -0
- package/packages/playground/node_modules/.vite/deps/primevue_dock.js.map +7 -0
- package/packages/playground/node_modules/.vite/deps/vue.js +346 -0
- package/packages/playground/node_modules/.vite/deps/vue.js.map +7 -0
- package/packages/playground/node_modules/.vue-global-types/vue_3.5_0.d.ts +136 -0
- package/packages/playground/package.json +21 -0
- package/{src → packages/playground/src}/App.vue +12 -12
- package/{src → packages/playground/src}/main.ts +27 -27
- package/{src → packages/playground/src}/views/Index.vue +1 -1
- package/packages/playground/src/views/complex-example-detail/book.ts +383 -0
- package/packages/playground/src/views/complex-example-detail/common.ts +4 -0
- package/packages/playground/src/views/complex-example-detail/user.ts +66 -0
- package/packages/playground/src/views/complex-example.ts +4 -0
- package/{src → packages/playground/src}/views/design-en.ts +25 -14
- package/{src → packages/playground/src}/views/design-zh.ts +10 -4
- package/packages/playground/src/views/index.ts +19 -0
- package/packages/playground/src/views/simple-example.ts +103 -0
- package/packages/playground/tsconfig.json +32 -0
- package/packages/playground/vite-env.d.ts +12 -0
- package/packages/playground/vite.config.ts +21 -0
- package/scripts/ai-assist-worker.cjs +7123 -0
- package/scripts/sync-version.mjs +22 -0
- package/templates/CLAUDE.md +276 -0
- package/templates/README.md +97 -0
- package/templates/complex-example-detail/book.ts +383 -0
- package/templates/complex-example-detail/common.ts +4 -0
- package/templates/complex-example-detail/user.ts +66 -0
- package/templates/complex-example.ts +4 -0
- package/templates/node_modules/@ddd-tool/domain-designer-core/actor.d.ts +2 -2
- package/templates/node_modules/@ddd-tool/domain-designer-core/agg.d.ts +2 -2
- package/templates/node_modules/@ddd-tool/domain-designer-core/command.d.ts +3 -3
- package/templates/node_modules/@ddd-tool/domain-designer-core/common.d.ts +79 -80
- package/templates/node_modules/@ddd-tool/domain-designer-core/event.d.ts +2 -2
- package/templates/node_modules/@ddd-tool/domain-designer-core/index.d.ts +4 -3
- package/templates/node_modules/@ddd-tool/domain-designer-core/info.d.ts +2 -2
- package/templates/node_modules/@ddd-tool/domain-designer-core/note.d.ts +2 -2
- package/templates/node_modules/@ddd-tool/domain-designer-core/policy.d.ts +2 -2
- package/templates/node_modules/@ddd-tool/domain-designer-core/read-model.d.ts +2 -2
- package/templates/node_modules/@ddd-tool/domain-designer-core/service.d.ts +2 -2
- package/templates/node_modules/@ddd-tool/domain-designer-core/system.d.ts +2 -2
- package/templates/node_modules/@ddd-tool/domain-designer-core/{define.d.ts → types.d.ts} +326 -307
- package/templates/node_modules/version.txt +1 -1
- package/templates/simple-example.ts +103 -0
- package/templates//345/244/215/346/235/202/346/250/241/345/235/227/346/267/273/345/212/240-detail/345/220/216/347/274/200 +2 -0
- package/tsconfig.json +19 -6
- package/scripts/sync-ver.mjs +0 -0
- package/src/views/index.ts +0 -15
- package/templates/example-agg.ts +0 -31
- package/templates/example.ts +0 -91
- package/vite.config.ts +0 -16
- /package/{index.html → packages/playground/index.html} +0 -0
- /package/{src → packages/playground/src}/assets/logo.svg +0 -0
- /package/{src → packages/playground/src}/assets/main.css +0 -0
package/README.md
CHANGED
|
@@ -12,13 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
## 1 前置依赖
|
|
14
14
|
|
|
15
|
-
[nodejs](https://nodejs.org/en/download/) >= 18
|
|
15
|
+
- [nodejs](https://nodejs.org/en/download/) >= 18
|
|
16
16
|
|
|
17
|
-
[bun](https://bun.sh/) OR [pnpm](https://pnpm.io/) >= 9
|
|
17
|
+
- 可选:[bun](https://bun.sh/) OR [pnpm](https://pnpm.io/) >= 9
|
|
18
18
|
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
- 本程序会优先使用 bun 运行,如果没有则切换为 pnpm
|
|
19
|
+
- 本程序会优先使用 bun 运行,如果没有则切换为 pnpm,再其次使用 npm
|
|
22
20
|
|
|
23
21
|
## 2 安装
|
|
24
22
|
|
|
@@ -28,12 +26,6 @@ bun i @ddd-tool/domain-designer-cli -g
|
|
|
28
26
|
pnpm i @ddd-tool/domain-designer-cli -g
|
|
29
27
|
```
|
|
30
28
|
|
|
31
|
-
对于 linux / macOS 系统:
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
chmod +x *.sh
|
|
35
|
-
```
|
|
36
|
-
|
|
37
29
|
## 3 更新版本
|
|
38
30
|
|
|
39
31
|
### 3.1 更新软件
|
|
@@ -44,12 +36,6 @@ bun i @ddd-tool/domain-designer-cli@latest -g
|
|
|
44
36
|
pnpm i @ddd-tool/domain-designer-cli@latest -g
|
|
45
37
|
```
|
|
46
38
|
|
|
47
|
-
对于 linux / macOS 系统:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
chmod +x *.sh
|
|
51
|
-
```
|
|
52
|
-
|
|
53
39
|
### 3.2 更新工作空间
|
|
54
40
|
|
|
55
41
|
在已有的工作空间中执行命令
|
|
@@ -72,6 +58,12 @@ bunx domain-designer-cli init
|
|
|
72
58
|
domain-designer-cli init
|
|
73
59
|
```
|
|
74
60
|
|
|
61
|
+
对于 linux / macOS 系统用户,需要再执行:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
chmod +x *.sh
|
|
65
|
+
```
|
|
66
|
+
|
|
75
67
|
- 推荐将工作空间中的所有文件放入实际项目,随项目一起进行版本控制。由于 ts 代码的表达能力并不弱,在多人协作的时候,即使其他人没有安装本工具,也可以通过代码安全地了解、调整领域模型。
|
|
76
68
|
|
|
77
69
|
- 初始化后的目录包含如下内容:
|
|
@@ -106,9 +98,9 @@ domain-designer-cli init
|
|
|
106
98
|
|
|
107
99
|
- [x] Kotlin
|
|
108
100
|
|
|
109
|
-
- [
|
|
101
|
+
- [x] C#
|
|
110
102
|
|
|
111
|
-
- [
|
|
103
|
+
- [x] GoLang
|
|
112
104
|
|
|
113
105
|
## 5 其他说明
|
|
114
106
|
|
|
@@ -140,7 +132,7 @@ domain-designer-cli init
|
|
|
140
132
|
|
|
141
133
|
- [x] Windows
|
|
142
134
|
|
|
143
|
-
- [
|
|
135
|
+
- [x] Linux
|
|
144
136
|
|
|
145
137
|
- [ ] Mac
|
|
146
138
|
|