@ddd-tool/domain-designer-cli 0.3.2 → 0.3.3
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 +2 -8
- package/bin/domain-designer-cli.cjs +3 -2
- package/package.json +1 -1
- package/packages/core/dist/package.json +1 -1
- package/packages/playground/index.html +3 -0
- package/packages/playground/package.json +1 -1
- package/packages/playground/vite.config.ts +6 -0
- package/packages/ui-component/dist/package.json +1 -1
- package/templates/node_modules/version.txt +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
## 1 前置依赖
|
|
14
14
|
|
|
15
|
-
- [nodejs](https://nodejs.org/en/download/) >=
|
|
15
|
+
- [nodejs](https://nodejs.org/en/download/) ^20.19.0 || >=22.12.0
|
|
16
16
|
|
|
17
17
|
- 可选:[bun](https://bun.sh/) OR [pnpm](https://pnpm.io/) >= 9
|
|
18
18
|
|
|
@@ -67,7 +67,6 @@ chmod +x *.sh
|
|
|
67
67
|
- 推荐将工作空间中的所有文件放入实际项目,随项目一起进行版本控制。由于 ts 代码的表达能力并不弱,在多人协作的时候,即使其他人没有安装本工具,也可以通过代码安全地了解、调整领域模型。
|
|
68
68
|
|
|
69
69
|
- 初始化后的目录包含如下内容:
|
|
70
|
-
|
|
71
70
|
- node_modules 目录:为 ide 提供代码补全的少量 `.d.ts` 文件,不包含任何实现
|
|
72
71
|
|
|
73
72
|
- 示例 ts 文件。可以快速了解如何使用 ts 代码进行建模
|
|
@@ -92,8 +91,7 @@ chmod +x *.sh
|
|
|
92
91
|
|
|
93
92
|
- 运行自动生成的`GenCode`脚本文件,根据实际需求进行命令行交互
|
|
94
93
|
|
|
95
|
-
-
|
|
96
|
-
|
|
94
|
+
- 支持编程语言列表:
|
|
97
95
|
- [x] Java
|
|
98
96
|
|
|
99
97
|
- [x] Kotlin
|
|
@@ -118,7 +116,6 @@ chmod +x *.sh
|
|
|
118
116
|
|
|
119
117
|
- 对于特性的添加,遵循“单向工作流”原则:先设计 -> 再开始落地 -> ...
|
|
120
118
|
拒绝“落地影响设计”
|
|
121
|
-
|
|
122
119
|
- 如果某些特性,哪怕可以给每个项目的落地节省 10 分钟,就可以考虑做
|
|
123
120
|
|
|
124
121
|
- 如果某些特性,侵占了下一步工作的“职责”,那就不做
|
|
@@ -129,7 +126,6 @@ chmod +x *.sh
|
|
|
129
126
|
## TODO list
|
|
130
127
|
|
|
131
128
|
- [ ] 多端适配
|
|
132
|
-
|
|
133
129
|
- [x] Windows
|
|
134
130
|
|
|
135
131
|
- [x] Linux
|
|
@@ -137,7 +133,6 @@ chmod +x *.sh
|
|
|
137
133
|
- [ ] Mac
|
|
138
134
|
|
|
139
135
|
- [x] 代码生成功能
|
|
140
|
-
|
|
141
136
|
- [x] csharp
|
|
142
137
|
|
|
143
138
|
- [x] go
|
|
@@ -147,7 +142,6 @@ chmod +x *.sh
|
|
|
147
142
|
- [x] kotlin
|
|
148
143
|
|
|
149
144
|
- [x] 图形化展示
|
|
150
|
-
|
|
151
145
|
- [x] 事件风暴 uml
|
|
152
146
|
|
|
153
147
|
- [x] 用户故事
|
|
@@ -13661,7 +13661,7 @@ function onCancel() {
|
|
|
13661
13661
|
// src/utils/package-info.ts
|
|
13662
13662
|
var package_info_default = {
|
|
13663
13663
|
"name": "cli",
|
|
13664
|
-
"version": "0.3.
|
|
13664
|
+
"version": "0.3.3",
|
|
13665
13665
|
"private": true,
|
|
13666
13666
|
"type": "module",
|
|
13667
13667
|
"files": [
|
|
@@ -13676,7 +13676,7 @@ var package_info_default = {
|
|
|
13676
13676
|
},
|
|
13677
13677
|
"readme": "ERROR: No README data found!",
|
|
13678
13678
|
"homepage": "https://github.com/ddd-tool/domain-designer-cli-node#readme",
|
|
13679
|
-
"_id": "cli@0.3.
|
|
13679
|
+
"_id": "cli@0.3.3"
|
|
13680
13680
|
};
|
|
13681
13681
|
|
|
13682
13682
|
// src/domain/environment-agg/index.ts
|
|
@@ -14339,6 +14339,7 @@ async function configSource(webRoot, source) {
|
|
|
14339
14339
|
import_fs5.default.readdirSync(source).forEach((file) => {
|
|
14340
14340
|
if (tsSuffixMatcher.test(file)) {
|
|
14341
14341
|
const name = tsSuffixMatcher.exec(file)[1];
|
|
14342
|
+
console.debug(`Detected design: ${file}`);
|
|
14342
14343
|
designs.push({
|
|
14343
14344
|
name,
|
|
14344
14345
|
identifier: `__d${++i}`,
|
package/package.json
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
<html lang="">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
|
+
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
|
6
|
+
<meta http-equiv="Pragma" content="no-cache">
|
|
7
|
+
<meta http-equiv="Expires" content="0">
|
|
5
8
|
<link rel="icon" href="/favicon.ico">
|
|
6
9
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
10
|
<title>Vite App</title>
|
|
@@ -14,6 +14,12 @@ export default defineConfig({
|
|
|
14
14
|
// Allow accessing files from global installation directories
|
|
15
15
|
strict: false,
|
|
16
16
|
},
|
|
17
|
+
headers: {
|
|
18
|
+
// 开发环境下禁用浏览器缓存
|
|
19
|
+
'Cache-Control': 'no-store, no-cache, must-revalidate, proxy-revalidate',
|
|
20
|
+
Pragma: 'no-cache',
|
|
21
|
+
Expires: '0',
|
|
22
|
+
},
|
|
17
23
|
},
|
|
18
24
|
resolve: {
|
|
19
25
|
alias: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.3
|