@lark-apaas/coding-template-nestjs-react-fullstack 0.1.55 → 0.1.57-alpha.20261102143457

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/coding-template-nestjs-react-fullstack",
3
- "version": "0.1.55",
3
+ "version": "0.1.57-alpha.20261102143457",
4
4
  "description": "NestJS + React fullstack template for miaoda coding",
5
5
  "type": "module",
6
6
  "files": [
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@hookform/resolvers": "^5.2.2",
35
- "@lark-apaas/client-toolkit": "^1.2.77",
35
+ "@lark-apaas/client-toolkit": "^1.2.78",
36
36
  "@lark-apaas/coding-preset-vite-react": "^1.0.27",
37
37
  "@lark-apaas/fullstack-presets": "^1.1.25",
38
38
  "@nestjs/cli": "^10.4.9",
@@ -1579,9 +1579,9 @@
1579
1579
  }
1580
1580
  },
1581
1581
  "node_modules/@lark-apaas/client-toolkit": {
1582
- "version": "1.2.77",
1583
- "resolved": "https://registry.npmmirror.com/@lark-apaas/client-toolkit/-/client-toolkit-1.2.77.tgz",
1584
- "integrity": "sha512-ZAVtSYX5bXQ1qdJOjw3zhUhhB5cyYSL6OU0fKnSr+7k0ajqF/EcM2WnSOko1ZRLPSTJ/edybCwhcZqLKaGvTiQ==",
1582
+ "version": "1.2.78",
1583
+ "resolved": "https://registry.npmmirror.com/@lark-apaas/client-toolkit/-/client-toolkit-1.2.78.tgz",
1584
+ "integrity": "sha512-tByXQ8myePAe/Af1N1QF0I59Lw836UWKVkUU8tOLwCeljSL3Y5pXNEipBTczQR4U7UplVIYUgEpfX0eogHE7Bw==",
1585
1585
  "dev": true,
1586
1586
  "dependencies": {
1587
1587
  "@ant-design/colors": "^7.2.1",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  "@hookform/resolvers": "^5.2.2",
55
- "@lark-apaas/client-toolkit": "^1.2.77",
55
+ "@lark-apaas/client-toolkit": "^1.2.78",
56
56
  "@lark-apaas/coding-preset-vite-react": "^1.0.27",
57
57
  "@lark-apaas/fullstack-presets": "^1.1.25",
58
58
  "@nestjs/cli": "^10.4.9",
@@ -26,10 +26,7 @@ print_time $STEP_START
26
26
  echo ""
27
27
 
28
28
  # ==================== 步骤 1 ====================
29
- echo "📝 [1/6] 更新 openapi 代码"
30
- STEP_START=$(node -e "console.log(Date.now())")
31
- npm run gen:openapi
32
- print_time $STEP_START
29
+ echo "⏭️ [1/6] 已停用 OpenAPI/客户端 SDK 生成"
33
30
  echo ""
34
31
 
35
32
  # ==================== 步骤 2 ====================
@@ -40,39 +37,7 @@ print_time $STEP_START
40
37
  echo ""
41
38
 
42
39
  # ==================== 步骤 3 ====================
43
- echo "🗺️ [3/6] 生成路由定义"
44
- STEP_START=$(node -e "console.log(Date.now())")
45
-
46
- # 在 client/server 构建之前生成到 dist/,供 DefinePlugin 注入前端 bundle
47
- # 注意:nest-cli.json 中 deleteOutDir 必须为 false(模板默认值),否则 nest build 会清掉 dist/
48
- echo " ├─ 生成 API 路由定义..."
49
- npx generate-api-routes --server-dir ./server --out-dir ./dist > /tmp/gen-api-routes.log 2>&1 &
50
- API_ROUTES_PID=$!
51
-
52
- echo " ├─ 生成页面路由定义..."
53
- npx generate-page-routes --app-path ./client/src/app.tsx --out-dir ./dist > /tmp/gen-page-routes.log 2>&1 &
54
- PAGE_ROUTES_PID=$!
55
-
56
- API_ROUTES_EXIT=0
57
- PAGE_ROUTES_EXIT=0
58
-
59
- wait $API_ROUTES_PID || API_ROUTES_EXIT=$?
60
- wait $PAGE_ROUTES_PID || PAGE_ROUTES_EXIT=$?
61
-
62
- if [ $API_ROUTES_EXIT -ne 0 ]; then
63
- echo " ⚠️ API 路由生成失败(不影响构建)"
64
- cat /tmp/gen-api-routes.log
65
- else
66
- echo " ✅ API 路由生成完成"
67
- fi
68
-
69
- if [ $PAGE_ROUTES_EXIT -ne 0 ]; then
70
- echo " ⚠️ 页面路由生成失败(不影响构建)"
71
- cat /tmp/gen-page-routes.log
72
- else
73
- echo " ✅ 页面路由生成完成"
74
- fi
75
- print_time $STEP_START
40
+ echo "⏭️ [3/6] 已跳过 API/页面路由生成"
76
41
  echo ""
77
42
 
78
43
  # ==================== 步骤 4 ====================