@yarch/create-admin 0.2.0 → 0.2.1

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.
@@ -32,7 +32,8 @@ const MICRO_KINDS = {
32
32
  sub: "微前端子应用(micro-frontend.md 一-3:独立·集成双运行形态,只做域内页面)",
33
33
  };
34
34
  // @yarch 底座版本依赖(--deps version 形态);与本仓发版版本同步 bump。
35
- const YARCH_VERSION = "^0.2.0";
35
+ const YARCH_VERSION = "^0.3.0";
36
+ const YARCH_PRO_REACT_VERSION = "^0.1.0";
36
37
 
37
38
  const servicePattern = /^[a-z][a-z0-9-]{1,31}$/;
38
39
  // 禁裸通用词(registry.md 一-1/一-2 口径摘录,与 golang yarch-init 同款;完整表以 contract/registry.md 为准)。
@@ -277,6 +278,7 @@ async function main() {
277
278
  const depsMode = args.deps === "file" ? "file" : "version";
278
279
  const yarchContractDep = depsMode === "version" ? YARCH_VERSION : `file:${resolve(PKG_ROOT, "../contract")}`;
279
280
  const yarchReactDep = depsMode === "version" ? YARCH_VERSION : `file:${resolve(PKG_ROOT, "../react")}`;
281
+ const yarchProReactDep = depsMode === "version" ? YARCH_PRO_REACT_VERSION : `file:${resolve(PKG_ROOT, "../pro-react")}`;
280
282
 
281
283
  const vars = {
282
284
  packageName: name,
@@ -287,6 +289,7 @@ async function main() {
287
289
  proxyTarget,
288
290
  yarchContractDep,
289
291
  yarchReactDep,
292
+ yarchProReactDep,
290
293
  };
291
294
 
292
295
  const outDir = resolve(args.out || (args._.length > 0 ? args._[args._.length - 1] : name));
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "source": "contract/registry.md",
3
- "generatedAt": "2026-09-16T13:10:34.107Z",
3
+ "generatedAt": "2026-09-18T06:28:35.369Z",
4
4
  "serviceNames": [
5
5
  "yagent",
6
6
  "ybookreading",
7
+ "ycomp",
7
8
  "ysaas"
8
9
  ],
9
10
  "appNames": [
11
+ "ycomp-console",
10
12
  "ysaas-billing",
11
13
  "ysaas-console"
12
14
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarch/create-admin",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "yarch web 工程生成器:交互问答 + archetype 全量渲染(maven-archetype/cookiecutter 模式,golang cmd/yarch-init 的 web 对偶)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -1,12 +1,53 @@
1
1
  {
2
2
  "description": "yarch 中后台工程模板 · antd 档(蚂蚁系):Vite + React 19 + react-router 7 + @yarch 契约底座",
3
3
  "variables": [
4
- { "name": "packageName", "desc": "工程名(= npm 包名 = registry.md 服务名,一-1 校验)", "required": true, "default": "" },
5
- { "name": "appName", "desc": "展示名(index.html 标题)", "required": false, "default": "= packageName" },
6
- { "name": "description", "desc": "工程描述(package.json)", "required": false, "default": "" },
7
- { "name": "port", "desc": "vite dev 端口", "required": false, "default": "5173" },
8
- { "name": "proxyTarget", "desc": "/api/v1 反向代理目标", "required": false, "default": "http://localhost:8080" },
9
- { "name": "yarchContractDep", "desc": "@yarch/contract 依赖(发版前 file: 本地路径,发版后 ^x.y.z)", "required": false, "default": "" },
10
- { "name": "yarchReactDep", "desc": "@yarch/react 依赖(同上)", "required": false, "default": "" }
4
+ {
5
+ "name": "packageName",
6
+ "desc": "工程名(= npm 包名 = registry.md 服务名,一-1 校验)",
7
+ "required": true,
8
+ "default": ""
9
+ },
10
+ {
11
+ "name": "appName",
12
+ "desc": "展示名(index.html 标题)",
13
+ "required": false,
14
+ "default": "= packageName"
15
+ },
16
+ {
17
+ "name": "description",
18
+ "desc": "工程描述(package.json)",
19
+ "required": false,
20
+ "default": ""
21
+ },
22
+ {
23
+ "name": "port",
24
+ "desc": "vite dev 端口",
25
+ "required": false,
26
+ "default": "5173"
27
+ },
28
+ {
29
+ "name": "proxyTarget",
30
+ "desc": "/api/v1 反向代理目标",
31
+ "required": false,
32
+ "default": "http://localhost:8080"
33
+ },
34
+ {
35
+ "name": "yarchContractDep",
36
+ "desc": "@yarch/contract 依赖(发版前 file: 本地路径,发版后 ^x.y.z)",
37
+ "required": false,
38
+ "default": ""
39
+ },
40
+ {
41
+ "name": "yarchReactDep",
42
+ "desc": "@yarch/react 依赖(同上)",
43
+ "required": false,
44
+ "default": ""
45
+ },
46
+ {
47
+ "name": "yarchProReactDep",
48
+ "desc": "@yarch/pro-react 依赖(CL5 antd 档预装;发版前 file: 本地路径)",
49
+ "required": false,
50
+ "default": ""
51
+ }
11
52
  ]
12
53
  }
@@ -14,6 +14,7 @@
14
14
  "react-router-dom": "^7",
15
15
  "@yarch/contract": "{{yarchContractDep}}",
16
16
  "@yarch/react": "{{yarchReactDep}}",
17
+ "@yarch/pro-react": "{{yarchProReactDep}}",
17
18
  "antd": "^5"
18
19
  },
19
20
  "devDependencies": {
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -0,0 +1 @@
1
+ @AGENTS.md