@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.
- package/bin/create-admin.mjs +4 -1
- package/bin/registry-snapshot.json +3 -1
- package/package.json +1 -1
- package/templates/admin-antd/CLAUDE.md +1 -0
- package/templates/admin-antd/GEMINI.md +1 -0
- package/templates/admin-antd/archetype.json +48 -7
- package/templates/admin-antd/package.json +1 -0
- package/templates/admin-arco/CLAUDE.md +1 -0
- package/templates/admin-arco/GEMINI.md +1 -0
- package/templates/admin-semi/CLAUDE.md +1 -0
- package/templates/admin-semi/GEMINI.md +1 -0
- package/templates/base-semi/CLAUDE.md +1 -0
- package/templates/base-semi/GEMINI.md +1 -0
- package/templates/sub-semi/CLAUDE.md +1 -0
- package/templates/sub-semi/GEMINI.md +1 -0
package/bin/create-admin.mjs
CHANGED
|
@@ -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.
|
|
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-
|
|
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
|
@@ -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
|
-
{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
{
|
|
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
|
}
|
|
@@ -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
|