@lark-apaas/coding-template-vite-react 0.1.39-alpha.20260820162445 → 0.1.39-alpha.20260824095516

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-vite-react",
3
- "version": "0.1.39-alpha.20260820162445",
3
+ "version": "0.1.39-alpha.20260824095516",
4
4
  "description": "Vite + React client template for miaoda coding",
5
5
  "type": "module",
6
6
  "files": [
@@ -11,7 +11,7 @@
11
11
  "@formkit/auto-animate": "^0.9.0",
12
12
  "@gsap/react": "^2.1.2",
13
13
  "@hookform/resolvers": "^5.2.2",
14
- "@lark-apaas/client-toolkit-lite": "^1.1.23",
14
+ "@lark-apaas/client-toolkit-lite": "^1.1.22",
15
15
  "@radix-ui/react-accordion": "^1.2.11",
16
16
  "@radix-ui/react-alert-dialog": "^1.1.14",
17
17
  "@radix-ui/react-aspect-ratio": "^1.1.7",
@@ -69,7 +69,7 @@
69
69
  "zod": "^4.3.6"
70
70
  },
71
71
  "devDependencies": {
72
- "@lark-apaas/coding-preset-vite-react": "^1.0.18",
72
+ "@lark-apaas/coding-preset-vite-react": "^1.0.17",
73
73
  "@lark-apaas/coding-presets-react": "^0.1.0",
74
74
  "@types/node": "^24",
75
75
  "@types/react": "^19",
@@ -831,9 +831,9 @@
831
831
  }
832
832
  },
833
833
  "node_modules/@lark-apaas/client-toolkit-lite": {
834
- "version": "1.1.23",
835
- "resolved": "https://registry.npmmirror.com/@lark-apaas/client-toolkit-lite/-/client-toolkit-lite-1.1.23.tgz",
836
- "integrity": "sha512-UpWlJ5zZHholEoeeDJBgW4NpdAkD9MMv1V6KyduVhhiIfErcR3XLOp3kyqeJWsbaTD4rsgD/e4QsDlVv9kMhgg==",
834
+ "version": "1.1.22",
835
+ "resolved": "https://registry.npmmirror.com/@lark-apaas/client-toolkit-lite/-/client-toolkit-lite-1.1.22.tgz",
836
+ "integrity": "sha512-E+0VyGc1VVsz/4MLUn9lN6j3pfD35BPcpK+SAfF8+MyRfJW2lYgfc80Xs+7ol8CmeHkDtLnko/FBKJUPSRZv0w==",
837
837
  "license": "MIT",
838
838
  "dependencies": {
839
839
  "@lark-apaas/auth-sdk": "^0.1.5",
@@ -874,9 +874,9 @@
874
874
  }
875
875
  },
876
876
  "node_modules/@lark-apaas/coding-preset-vite-react": {
877
- "version": "1.0.18",
878
- "resolved": "https://registry.npmmirror.com/@lark-apaas/coding-preset-vite-react/-/coding-preset-vite-react-1.0.18.tgz",
879
- "integrity": "sha512-U261AAPAYaGalPo9K/6s+hRteyK4wAlRHNXyoiGqYj3uh77Qg/TqkW2PwGBmPsk+HRWXZJ6tiZ6BVW3hN9z/tg==",
877
+ "version": "1.0.17",
878
+ "resolved": "https://registry.npmmirror.com/@lark-apaas/coding-preset-vite-react/-/coding-preset-vite-react-1.0.17.tgz",
879
+ "integrity": "sha512-+xwA9tqDtvUKDX1hYHU5tEsyiFk98EEP4SoNpD2dUEhtNsh8MNHxTIf1KGzuV7BQwjwZMBq1gH6jqBFJvNr6bA==",
880
880
  "dev": true,
881
881
  "license": "MIT",
882
882
  "dependencies": {
@@ -6,6 +6,7 @@
6
6
  "scripts": {
7
7
  "dev": "node scripts/dev.mjs",
8
8
  "build": "bash scripts/build.sh",
9
+ "upgrade": "fullstack-cli sync",
9
10
  "typecheck": "tsc -p tsconfig.app.json",
10
11
  "lint": "concurrently npm:typecheck npm:lint:eslint",
11
12
  "lint:eslint": "eslint src",
@@ -40,7 +41,7 @@
40
41
  "@radix-ui/react-toggle": "^1.1.9",
41
42
  "@radix-ui/react-toggle-group": "^1.1.10",
42
43
  "@radix-ui/react-tooltip": "^1.1.18",
43
- "@lark-apaas/client-toolkit-lite": "^1.1.23",
44
+ "@lark-apaas/client-toolkit-lite": "^1.1.22",
44
45
  "@formkit/auto-animate": "^0.9.0",
45
46
  "@gsap/react": "^2.1.2",
46
47
  "framer-motion": "^12.38.0",
@@ -78,7 +79,7 @@
78
79
  "@types/react": "^19",
79
80
  "@types/react-dom": "^19",
80
81
  "@lark-apaas/coding-presets-react": "^0.1.0",
81
- "@lark-apaas/coding-preset-vite-react": "^1.0.18",
82
+ "@lark-apaas/coding-preset-vite-react": "^1.0.17",
82
83
  "concurrently": "^9",
83
84
  "eslint": "^9",
84
85
  "typescript": "~5.9",
@@ -21,8 +21,16 @@ rm -rf "$ROOT/dist"
21
21
  # 1. Vite 构建 → dist/client/(相对于项目根目录输出)
22
22
  npx vite build --outDir "$ROOT/dist/client" --emptyOutDir
23
23
 
24
- # 2. HTML → dist/output/
24
+ # 2. public/ 静态资源 + HTML → dist/output/(模型 B:public = 应用根目录,同源 /app/<appId>/*)
25
25
  mkdir -p "$OUTPUT"
26
+ # 2a. public/*:vite copyPublicDir 已把 public/* 平铺进 dist/client,但下面白名单只取
27
+ # *.html/routes.json,其余(favicon / 图片 / 运行时 fetch 的数据文件)会随 dist/client 被删。
28
+ # 从源 public/ 补拷到 output/(同源根),让 fetch('/x') / resolveAppUrl('/x') 线上可用。
29
+ # 先拷 public、再拷 HTML,保证构建产出的 index.html/routes.json 覆盖 public 里的同名文件(若有)。
30
+ if [ -d "$ROOT/public" ]; then
31
+ cp -R "$ROOT/public/." "$OUTPUT/"
32
+ fi
33
+ # 2b. HTML + routes.json(构建产物)
26
34
  find "$ROOT/dist/client" -maxdepth 1 \( -name '*.html' -o -name 'routes.json' \) -exec cp {} "$OUTPUT/" \;
27
35
 
28
36
  # 3. assets/ → dist/output_resource/(JS/CSS/字体,上传到 CDN)
@@ -1,12 +0,0 @@
1
- # stackConf 钉版验证标记(vite-react)
2
-
3
- 这个文件只用于验证 `?stackMetaId=vite-react&version=<x>` 指定的 template 版本是否真的装进了沙箱。
4
-
5
- - 分支: `lane/stack-conf-pin-verify`(miaoda-coding)
6
- - 加入时间: 2026-08-21
7
- - 关联改动: sandbox_console MR !1021(StackVersion → StackConf + 绕预热池)
8
-
9
- 沙箱里能 `cat` 到这个文件,说明装的是本分支发出的 alpha 版本;
10
- 看不到则说明装的是别的版本(例如 latest 或预热池里的默认模板)。
11
-
12
- **验证完请删除本文件所在的临时分支,不要合入 main。**