@coze-arch/cli 0.0.1-alpha.a3fb1a → 0.0.1-alpha.ac9009

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 (58) hide show
  1. package/lib/__templates__/expo/.coze +7 -2
  2. package/lib/__templates__/expo/.cozeproj/scripts/{deploy_build.sh → dev_build.sh} +4 -10
  3. package/lib/__templates__/expo/.cozeproj/scripts/{deploy_run.sh → dev_run.sh} +25 -57
  4. package/lib/__templates__/expo/.cozeproj/scripts/prod_build.sh +47 -0
  5. package/lib/__templates__/expo/.cozeproj/scripts/prod_run.sh +34 -0
  6. package/lib/__templates__/expo/README.md +58 -8
  7. package/lib/__templates__/expo/_gitignore +1 -1
  8. package/lib/__templates__/expo/_npmrc +3 -5
  9. package/lib/__templates__/expo/client/app/_layout.tsx +1 -1
  10. package/lib/__templates__/expo/client/app/index.ts +1 -0
  11. package/lib/__templates__/expo/client/app.config.ts +71 -0
  12. package/lib/__templates__/expo/client/components/ThemedText.tsx +33 -0
  13. package/lib/__templates__/expo/client/components/ThemedView.tsx +38 -0
  14. package/lib/__templates__/expo/client/constants/theme.ts +779 -47
  15. package/lib/__templates__/expo/client/contexts/AuthContext.tsx +14 -107
  16. package/lib/__templates__/expo/client/hooks/useTheme.ts +1 -1
  17. package/lib/__templates__/expo/client/metro.config.js +121 -0
  18. package/lib/__templates__/expo/client/package.json +92 -0
  19. package/lib/__templates__/expo/client/screens/home/index.tsx +1 -5
  20. package/lib/__templates__/expo/client/screens/home/styles.ts +1 -273
  21. package/lib/__templates__/expo/client/tsconfig.json +24 -0
  22. package/lib/__templates__/expo/client/utils/index.ts +1 -2
  23. package/lib/__templates__/expo/package.json +13 -103
  24. package/lib/__templates__/expo/pnpm-lock.yaml +405 -873
  25. package/lib/__templates__/expo/pnpm-workspace.yaml +3 -0
  26. package/lib/__templates__/expo/server/package.json +29 -0
  27. package/lib/__templates__/expo/{src → server/src}/index.ts +2 -2
  28. package/lib/__templates__/expo/server/tsconfig.json +24 -0
  29. package/lib/__templates__/expo/template.config.js +1 -1
  30. package/lib/__templates__/expo/tsconfig.json +1 -24
  31. package/lib/__templates__/nextjs/_npmrc +1 -1
  32. package/lib/__templates__/nextjs/package.json +1 -4
  33. package/lib/__templates__/nextjs/pnpm-lock.yaml +5 -1025
  34. package/lib/__templates__/nextjs/scripts/dev.sh +8 -27
  35. package/lib/__templates__/nextjs/src/app/globals.css +99 -87
  36. package/lib/__templates__/nextjs/src/app/layout.tsx +18 -22
  37. package/lib/__templates__/nextjs/template.config.js +1 -1
  38. package/lib/__templates__/templates.json +7 -0
  39. package/lib/__templates__/vite/_npmrc +1 -1
  40. package/lib/__templates__/vite/package.json +1 -1
  41. package/lib/__templates__/vite/pnpm-lock.yaml +120 -120
  42. package/lib/__templates__/vite/scripts/dev.sh +7 -26
  43. package/lib/__templates__/vite/template.config.js +11 -2
  44. package/lib/__templates__/vite/vite.config.ts +3 -3
  45. package/lib/cli.js +385 -242
  46. package/package.json +5 -3
  47. package/lib/__templates__/expo/app.json +0 -63
  48. package/lib/__templates__/expo/babel.config.js +0 -9
  49. package/lib/__templates__/expo/client/app/(tabs)/_layout.tsx +0 -43
  50. package/lib/__templates__/expo/client/app/(tabs)/home.tsx +0 -1
  51. package/lib/__templates__/expo/client/app/(tabs)/index.tsx +0 -7
  52. package/lib/__templates__/expo/client/app/+not-found.tsx +0 -79
  53. package/lib/__templates__/expo/client/index.js +0 -12
  54. package/lib/__templates__/expo/metro.config.js +0 -53
  55. package/lib/__templates__/nextjs/.babelrc +0 -15
  56. package/lib/__templates__/nextjs/server.mjs +0 -50
  57. /package/lib/__templates__/expo/{eslint-formatter-simple.mjs → client/eslint-formatter-simple.mjs} +0 -0
  58. /package/lib/__templates__/expo/{eslint.config.mjs → client/eslint.config.mjs} +0 -0
@@ -1,4 +1,3 @@
1
- // import { OpenAPI } from '@api'; // 如果使用 openapi 客户端,请取消注释并确保安装
2
1
  import dayjs from 'dayjs';
3
2
  import utc from 'dayjs/plugin/utc';
4
3
  dayjs.extend(utc);
@@ -26,7 +25,7 @@ export const buildAssetUrl = (url?: string | null, w?: number, h?: number): stri
26
25
  // 3. 构造参数,保留原有 Query (如有)
27
26
  const separator = abs.includes('?') ? '&' : '?';
28
27
  const query = [
29
- w ? `w=${Math.floor(w)}` : '',
28
+ w ? `w=${Math.floor(w)}` : '',
30
29
  h ? `h=${Math.floor(h)}` : ''
31
30
  ].filter(Boolean).join('&');
32
31
  return `${abs}${separator}${query}`;
@@ -1,112 +1,22 @@
1
1
  {
2
- "name": "<%= appName %>",
3
- "version": "1.0.0",
2
+ "name": "expo-express-monorepo",
4
3
  "private": true,
5
- "main": "client/index.js",
4
+ "version": "0.0.0",
6
5
  "scripts": {
7
- "build": "bash .cozeproj/scripts/deploy_build.sh",
8
- "check-deps": "npx depcheck",
9
- "dev": "bash .cozeproj/scripts/deploy_run.sh",
10
- "preinstall": "npx only-allow pnpm",
11
- "postinstall": "node ./client/scripts/install-missing-deps.js",
12
- "install-missing": "node ./client/scripts/install-missing-deps.js",
13
- "lint": "expo lint",
14
- "server": "NODE_ENV=development tsx ./src/index.ts",
15
- "start": "expo start --web",
16
- "test": "jest --watchAll"
17
- },
18
- "jest": {
19
- "preset": "jest-expo"
20
- },
21
- "dependencies": {
22
- "@aws-sdk/client-s3": "^3.958.0",
23
- "@aws-sdk/lib-storage": "^3.958.0",
24
- "@expo/metro-runtime": "^6.1.2",
25
- "@expo/vector-icons": "^15.0.0",
26
- "@react-native-async-storage/async-storage": "^2.2.0",
27
- "@react-native-community/datetimepicker": "^8.5.0",
28
- "@react-native-community/slider": "^5.0.1",
29
- "@react-native-masked-view/masked-view": "^0.3.2",
30
- "@react-native-picker/picker": "^2.11.0",
31
- "@react-navigation/bottom-tabs": "^7.2.0",
32
- "@react-navigation/native": "^7.0.14",
33
- "ajv": "^8.17.1",
34
- "ajv-formats": "^3.0.1",
35
- "connect": "^3.7.0",
36
- "coze-coding-dev-sdk": "0.5.0",
37
- "dayjs": "^1.11.19",
38
- "drizzle-kit": "^0.31.8",
39
- "drizzle-orm": "^0.45.1",
40
- "drizzle-zod": "^0.8.3",
41
- "expo": "^54.0.7",
42
- "expo-auth-session": "^7.0.9",
43
- "expo-av": "~16.0.6",
44
- "expo-blur": "~15.0.6",
45
- "expo-camera": "~17.0.10",
46
- "expo-constants": "~18.0.8",
47
- "expo-crypto": "^15.0.7",
48
- "expo-font": "~14.0.7",
49
- "expo-haptics": "~15.0.6",
50
- "expo-image-picker": "~17.0.7",
51
- "expo-linear-gradient": "~15.0.6",
52
- "expo-linking": "~8.0.7",
53
- "expo-location": "~19.0.7",
54
- "expo-router": "~6.0.0",
55
- "expo-splash-screen": "~31.0.8",
56
- "expo-status-bar": "~3.0.7",
57
- "expo-symbols": "~1.0.6",
58
- "expo-system-ui": "~6.0.9",
59
- "expo-web-browser": "~15.0.10",
60
- "express": "^4.22.1",
61
- "multer": "^2.0.2",
62
- "pg": "^8.16.3",
63
- "react": "19.1.0",
64
- "react-dom": "19.1.0",
65
- "react-native": "0.81.5",
66
- "react-native-chart-kit": "^6.12.0",
67
- "react-native-gesture-handler": "~2.28.0",
68
- "react-native-keyboard-aware-scroll-view": "^0.9.5",
69
- "react-native-modal-datetime-picker": "18.0.0",
70
- "react-native-reanimated": "~4.1.0",
71
- "react-native-safe-area-context": "~5.6.0",
72
- "react-native-screens": "~4.16.0",
73
- "react-native-svg": "15.15.0",
74
- "react-native-toast-message": "^2.3.3",
75
- "react-native-web": "^0.21.2",
76
- "react-native-webview": "~13.15.0",
77
- "react-native-worklets": "0.5.1",
78
- "zod": "^4.2.1"
79
- },
80
- "devDependencies": {
81
- "@babel/core": "^7.25.2",
82
- "@eslint/js": "^9.27.0",
83
- "@types/express": "^5.0.6",
84
- "@types/jest": "^29.5.12",
85
- "@types/multer": "^2.0.0",
86
- "@types/pg": "^8.16.0",
87
- "@types/react": "~19.1.0",
88
- "@types/react-test-renderer": "19.1.0",
89
- "babel-plugin-module-resolver": "^5.0.2",
90
- "babel-preset-expo": "^54.0.9",
91
- "chalk": "^4.1.2",
92
- "depcheck": "^1.4.7",
93
- "eslint": "^9.27.0",
94
- "eslint-formatter-compact": "^9.0.1",
95
- "eslint-import-resolver-typescript": "^4.4.4",
96
- "eslint-plugin-import": "^2.32.0",
97
- "eslint-plugin-react": "^7.37.5",
98
- "eslint-plugin-react-hooks": "^7.0.1",
99
- "eslint-plugin-regexp": "^2.10.0",
100
- "globals": "^16.1.0",
101
- "jest": "^29.2.1",
102
- "jest-expo": "~54.0.10",
103
- "react-test-renderer": "19.1.0",
104
- "tsx": "^4.21.0",
105
- "typescript": "^5.8.3",
106
- "typescript-eslint": "^8.32.1"
6
+ "dev": "bash .cozeproj/scripts/dev_run.sh",
7
+ "build": "bash .cozeproj/scripts/prod_build.sh",
8
+ "start": "bash .cozeproj/scripts/prod_run.sh",
9
+ "preinstall": "npx only-allow pnpm"
107
10
  },
11
+ "dependencies": {},
12
+ "devDependencies": {},
108
13
  "packageManager": "pnpm@9.0.0",
109
14
  "engines": {
110
15
  "pnpm": ">=9.0.0"
16
+ },
17
+ "pnpm": {
18
+ "overrides": {
19
+ "esbuild": "0.27.2"
20
+ }
111
21
  }
112
22
  }