@coze-arch/cli 0.0.1-alpha.a874ed → 0.0.1-alpha.a984c3

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.
Files changed (45) hide show
  1. package/lib/__templates__/expo/.cozeproj/scripts/server_dev_run.sh +1 -1
  2. package/lib/__templates__/expo/client/metro.config.js +3 -0
  3. package/lib/__templates__/expo/client/package.json +35 -35
  4. package/lib/__templates__/expo/package.json +1 -1
  5. package/lib/__templates__/expo/pnpm-lock.yaml +394 -221
  6. package/lib/__templates__/expo/server/package.json +9 -7
  7. package/lib/__templates__/expo/server/src/index.ts +1 -0
  8. package/lib/__templates__/expo/template.config.js +56 -0
  9. package/lib/__templates__/native-static/.coze +11 -0
  10. package/lib/__templates__/native-static/index.html +33 -0
  11. package/lib/__templates__/native-static/styles/main.css +136 -0
  12. package/lib/__templates__/native-static/template.config.js +22 -0
  13. package/lib/__templates__/nextjs/package.json +3 -1
  14. package/lib/__templates__/nextjs/pnpm-lock.yaml +119 -106
  15. package/lib/__templates__/nextjs/src/app/page.tsx +4 -2
  16. package/lib/__templates__/nextjs/template.config.js +49 -14
  17. package/lib/__templates__/taro/.cozeproj/scripts/deploy_build.sh +2 -2
  18. package/lib/__templates__/taro/.cozeproj/scripts/deploy_run.sh +4 -3
  19. package/lib/__templates__/taro/.cozeproj/scripts/dev_build.sh +0 -15
  20. package/lib/__templates__/taro/.cozeproj/scripts/dev_run.sh +117 -24
  21. package/lib/__templates__/taro/.cozeproj/scripts/pack.sh +24 -1
  22. package/lib/__templates__/taro/README.md +81 -17
  23. package/lib/__templates__/taro/config/index.ts +1 -1
  24. package/lib/__templates__/taro/eslint.config.mjs +25 -3
  25. package/lib/__templates__/taro/package.json +6 -4
  26. package/lib/__templates__/taro/pnpm-lock.yaml +390 -114
  27. package/lib/__templates__/taro/server/package.json +3 -1
  28. package/lib/__templates__/taro/server/src/main.ts +14 -2
  29. package/lib/__templates__/taro/src/app.css +18 -18
  30. package/lib/__templates__/taro/src/app.tsx +9 -0
  31. package/lib/__templates__/taro/src/index.html +20 -1
  32. package/lib/__templates__/taro/src/presets/h5-navbar.tsx +171 -0
  33. package/lib/__templates__/taro/src/{utils → presets}/h5-styles.ts +15 -4
  34. package/lib/__templates__/taro/src/presets/index.tsx +18 -0
  35. package/lib/__templates__/templates.json +11 -0
  36. package/lib/__templates__/vite/package.json +5 -1
  37. package/lib/__templates__/vite/pnpm-lock.yaml +146 -1659
  38. package/lib/__templates__/vite/src/main.ts +2 -2
  39. package/lib/__templates__/vite/template.config.js +49 -14
  40. package/lib/__templates__/vite/vite.config.ts +1 -0
  41. package/lib/cli.js +62 -68
  42. package/package.json +2 -1
  43. package/lib/__templates__/taro/src/app.ts +0 -14
  44. /package/lib/__templates__/expo/patches/{expo@54.0.32.patch → expo@54.0.33.patch} +0 -0
  45. /package/lib/__templates__/taro/src/{utils → presets}/wx-debug.ts +0 -0
@@ -43,4 +43,4 @@ kill_old_server
43
43
 
44
44
  echo "启动 server 服务..."
45
45
  cd "$SERVER_DIR"
46
- NODE_ENV=development PORT="$SERVER_PORT" npx tsx ./src/index.ts 2>&1 | pipe_to_log "SERVER" "$LOG_SERVER_FILE"
46
+ NODE_ENV=development PORT="$SERVER_PORT" npx tsx watch ./src/index.ts 2>&1 | pipe_to_log "SERVER" "$LOG_SERVER_FILE"
@@ -26,6 +26,9 @@ config.resolver.blockList = [
26
26
  // 4. 通用规则
27
27
  /.*\/__tests__\/.*/, // 排除所有测试目录
28
28
  /.*\.git\/.*/, // 排除 Git 目录
29
+
30
+ // 5. pnpm 临时目录(避免 ENOENT 错误)
31
+ /.*node_modules\/\.pnpm\/.*_tmp_\d+.*/,
29
32
  ];
30
33
 
31
34
  const BACKEND_TARGET = 'http://localhost:9091';
@@ -15,38 +15,38 @@
15
15
  "preset": "jest-expo"
16
16
  },
17
17
  "dependencies": {
18
- "@expo/metro-runtime": "^6.1.2",
19
- "@expo/vector-icons": "^15.0.0",
20
- "@react-native-async-storage/async-storage": "^2.2.0",
21
- "@react-native-community/datetimepicker": "^8.5.0",
22
- "@react-native-community/slider": "^5.0.1",
23
- "@react-native-masked-view/masked-view": "^0.3.2",
24
- "@react-native-picker/picker": "^2.11.0",
18
+ "@expo/metro-runtime": "~6.1.2",
19
+ "@expo/vector-icons": "^15.0.3",
20
+ "@react-native-async-storage/async-storage": "2.2.0",
21
+ "@react-native-community/datetimepicker": "8.4.4",
22
+ "@react-native-community/slider": "5.0.1",
23
+ "@react-native-masked-view/masked-view": "0.3.2",
24
+ "@react-native-picker/picker": "2.11.1",
25
25
  "@react-navigation/bottom-tabs": "^7.2.0",
26
26
  "@react-navigation/native": "^7.0.14",
27
27
  "dayjs": "^1.11.19",
28
- "expo": "54.0.32",
29
- "expo-auth-session": "^7.0.9",
30
- "expo-av": "~16.0.6",
31
- "expo-blur": "~15.0.6",
28
+ "expo": "54.0.33",
29
+ "expo-auth-session": "~7.0.10",
30
+ "expo-av": "~16.0.8",
31
+ "expo-blur": "~15.0.8",
32
32
  "expo-camera": "~17.0.10",
33
- "expo-constants": "~18.0.8",
34
- "expo-crypto": "^15.0.7",
33
+ "expo-constants": "~18.0.13",
34
+ "expo-crypto": "~15.0.8",
35
35
  "expo-file-system": "~19.0.21",
36
- "expo-font": "~14.0.7",
37
- "expo-haptics": "~15.0.6",
38
- "expo-image-picker": "~17.0.7",
39
- "expo-linear-gradient": "~15.0.6",
40
- "expo-linking": "~8.0.7",
41
- "expo-location": "~19.0.7",
42
- "expo-image": "^3.0.11",
43
- "js-base64": "^3.7.7",
44
- "expo-router": "~6.0.0",
45
- "expo-splash-screen": "~31.0.8",
46
- "expo-status-bar": "~3.0.7",
47
- "expo-symbols": "~1.0.6",
36
+ "expo-font": "~14.0.11",
37
+ "expo-haptics": "~15.0.8",
38
+ "expo-image": "~3.0.11",
39
+ "expo-image-picker": "~17.0.10",
40
+ "expo-linear-gradient": "~15.0.8",
41
+ "expo-linking": "~8.0.11",
42
+ "expo-location": "~19.0.8",
43
+ "expo-router": "~6.0.23",
44
+ "expo-splash-screen": "~31.0.13",
45
+ "expo-status-bar": "~3.0.9",
46
+ "expo-symbols": "~1.0.8",
48
47
  "expo-system-ui": "~6.0.9",
49
48
  "expo-web-browser": "~15.0.10",
49
+ "js-base64": "^3.7.7",
50
50
  "react": "19.1.0",
51
51
  "react-dom": "19.1.0",
52
52
  "react-native": "0.81.5",
@@ -54,25 +54,26 @@
54
54
  "react-native-gesture-handler": "~2.28.0",
55
55
  "react-native-keyboard-aware-scroll-view": "^0.9.5",
56
56
  "react-native-modal-datetime-picker": "18.0.0",
57
- "react-native-reanimated": "~4.1.0",
57
+ "react-native-reanimated": "~4.1.1",
58
58
  "react-native-safe-area-context": "~5.6.0",
59
59
  "react-native-screens": "~4.16.0",
60
- "react-native-svg": "15.15.0",
60
+ "react-native-svg": "15.12.1",
61
61
  "react-native-toast-message": "^2.3.3",
62
- "react-native-web": "^0.21.2",
63
- "react-native-webview": "~13.15.0",
62
+ "react-native-web": "~0.21.0",
63
+ "react-native-webview": "13.15.0",
64
64
  "react-native-worklets": "0.5.1",
65
65
  "zod": "^4.2.1"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@babel/core": "^7.25.2",
69
- "babel-plugin-module-resolver": "^5.0.2",
70
- "babel-preset-expo": "^54.0.9",
71
69
  "@eslint/js": "^9.27.0",
72
70
  "@types/jest": "^29.5.12",
73
71
  "@types/react": "~19.1.0",
74
72
  "@types/react-test-renderer": "19.1.0",
73
+ "babel-plugin-module-resolver": "^5.0.2",
74
+ "babel-preset-expo": "^54.0.9",
75
75
  "chalk": "^4.1.2",
76
+ "connect": "^3.7.0",
76
77
  "depcheck": "^1.4.7",
77
78
  "esbuild": "0.27.2",
78
79
  "eslint": "^9.39.2",
@@ -83,13 +84,12 @@
83
84
  "eslint-plugin-react-hooks": "^7.0.1",
84
85
  "eslint-plugin-regexp": "^2.10.0",
85
86
  "globals": "^16.1.0",
87
+ "http-proxy-middleware": "^3.0.5",
86
88
  "jest": "^29.2.1",
87
- "jest-expo": "~54.0.10",
89
+ "jest-expo": "~54.0.17",
88
90
  "react-test-renderer": "19.1.0",
89
91
  "tsx": "^4.21.0",
90
92
  "typescript": "^5.8.3",
91
- "typescript-eslint": "^8.32.1",
92
- "connect": "^3.7.0",
93
- "http-proxy-middleware": "^3.0.5"
93
+ "typescript-eslint": "^8.32.1"
94
94
  }
95
95
  }
@@ -19,7 +19,7 @@
19
19
  "esbuild": "0.27.2"
20
20
  },
21
21
  "patchedDependencies": {
22
- "expo@54.0.32": "patches/expo@54.0.32.patch"
22
+ "expo@54.0.33": "patches/expo@54.0.33.patch"
23
23
  }
24
24
  }
25
25
  }