@coze-arch/cli 0.0.1-alpha.8e1417 → 0.0.1-alpha.98e280

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 (50) hide show
  1. package/lib/__templates__/expo/.cozeproj/scripts/dev_run.sh +6 -10
  2. package/lib/__templates__/expo/.cozeproj/scripts/prod_build.sh +2 -2
  3. package/lib/__templates__/expo/.cozeproj/scripts/prod_run.sh +2 -2
  4. package/lib/__templates__/expo/_gitignore +1 -1
  5. package/lib/__templates__/expo/_npmrc +4 -2
  6. package/lib/__templates__/expo/{client/app.json → app.json} +4 -4
  7. package/lib/__templates__/expo/babel.config.js +19 -0
  8. package/lib/__templates__/expo/client/app/(tabs)/_layout.tsx +43 -0
  9. package/lib/__templates__/expo/client/app/(tabs)/home.tsx +1 -0
  10. package/lib/__templates__/expo/client/app/(tabs)/index.tsx +7 -0
  11. package/lib/__templates__/expo/client/app/+not-found.tsx +79 -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 +850 -0
  15. package/lib/__templates__/expo/client/index.js +12 -0
  16. package/lib/__templates__/expo/client/{src/screens → screens}/home/index.tsx +1 -0
  17. package/lib/__templates__/expo/metro.config.js +121 -0
  18. package/lib/__templates__/expo/package.json +9 -4
  19. package/lib/__templates__/expo/pnpm-lock.yaml +0 -230
  20. package/lib/__templates__/expo/tsconfig.json +24 -1
  21. package/lib/cli.js +1 -1
  22. package/package.json +3 -1
  23. package/lib/__templates__/expo/client/metro.config.js +0 -51
  24. package/lib/__templates__/expo/client/package.json +0 -92
  25. package/lib/__templates__/expo/client/src/app/index.ts +0 -1
  26. package/lib/__templates__/expo/client/src/constants/theme.ts +0 -128
  27. package/lib/__templates__/expo/client/tsconfig.json +0 -24
  28. package/lib/__templates__/expo/pnpm-workspace.yaml +0 -3
  29. package/lib/__templates__/expo/server/package.json +0 -17
  30. /package/lib/__templates__/expo/client/{src/app → app}/_layout.tsx +0 -0
  31. /package/lib/__templates__/expo/client/{src/assets → assets}/fonts/SpaceMono-Regular.ttf +0 -0
  32. /package/lib/__templates__/expo/client/{src/assets → assets}/images/adaptive-icon.png +0 -0
  33. /package/lib/__templates__/expo/client/{src/assets → assets}/images/default-avatar.png +0 -0
  34. /package/lib/__templates__/expo/client/{src/assets → assets}/images/favicon.png +0 -0
  35. /package/lib/__templates__/expo/client/{src/assets → assets}/images/icon.png +0 -0
  36. /package/lib/__templates__/expo/client/{src/assets → assets}/images/partial-react-logo.png +0 -0
  37. /package/lib/__templates__/expo/client/{src/assets → assets}/images/react-logo.png +0 -0
  38. /package/lib/__templates__/expo/client/{src/assets → assets}/images/react-logo@2x.png +0 -0
  39. /package/lib/__templates__/expo/client/{src/assets → assets}/images/react-logo@3x.png +0 -0
  40. /package/lib/__templates__/expo/client/{src/assets → assets}/images/splash-icon.png +0 -0
  41. /package/lib/__templates__/expo/client/{src/components → components}/Screen.tsx +0 -0
  42. /package/lib/__templates__/expo/client/{src/components → components}/SmartDateInput.tsx +0 -0
  43. /package/lib/__templates__/expo/client/{src/contexts → contexts}/AuthContext.tsx +0 -0
  44. /package/lib/__templates__/expo/client/{src/hooks → hooks}/useColorScheme.ts +0 -0
  45. /package/lib/__templates__/expo/client/{src/hooks → hooks}/useTheme.ts +0 -0
  46. /package/lib/__templates__/expo/client/{src/screens → screens}/home/styles.ts +0 -0
  47. /package/lib/__templates__/expo/client/{src/utils → utils}/index.ts +0 -0
  48. /package/lib/__templates__/expo/{client/eslint-formatter-simple.mjs → eslint-formatter-simple.mjs} +0 -0
  49. /package/lib/__templates__/expo/{client/eslint.config.mjs → eslint.config.mjs} +0 -0
  50. /package/lib/__templates__/expo/{server/src → src}/index.ts +0 -0
@@ -1,128 +0,0 @@
1
- import { Platform } from "react-native";
2
-
3
- const tintColorLight = "#007AFF";
4
- const tintColorDark = "#0A84FF";
5
-
6
- export const Colors = {
7
- light: {
8
- text: "#11181C",
9
- textPrimary: "#11181C",
10
- textSecondary: "#687076",
11
- textMuted: "#9BA1A6",
12
- buttonText: "#FFFFFF",
13
- tabIconDefault: "#687076",
14
- tabIconSelected: tintColorLight,
15
- primary: tintColorLight,
16
- link: "#007AFF",
17
- backgroundRoot: "#FFFFFF", // Elevation 0
18
- backgroundDefault: "#F2F2F2", // Elevation 1
19
- backgroundSecondary: "#E6E6E6", // Elevation 2
20
- backgroundTertiary: "#D9D9D9", // Elevation 3
21
- border: "#E6E6E6",
22
- },
23
- dark: {
24
- text: "#ECEDEE",
25
- textPrimary: "#ECEDEE",
26
- textSecondary: "#9BA1A6",
27
- textMuted: "#6F767E",
28
- buttonText: "#FFFFFF",
29
- tabIconDefault: "#9BA1A6",
30
- tabIconSelected: tintColorDark,
31
- primary: tintColorDark,
32
- link: "#0A84FF",
33
- backgroundRoot: "#1F2123", // Elevation 0
34
- backgroundDefault: "#2A2C2E", // Elevation 1
35
- backgroundSecondary: "#353739", // Elevation 2
36
- backgroundTertiary: "#404244", // Elevation 3
37
- border: "#353739",
38
- },
39
- };
40
-
41
- export const Spacing = {
42
- xs: 4,
43
- sm: 8,
44
- md: 12,
45
- lg: 16,
46
- xl: 20,
47
- "2xl": 24,
48
- "3xl": 32,
49
- "4xl": 40,
50
- "5xl": 48,
51
- inputHeight: 48,
52
- buttonHeight: 52,
53
- };
54
-
55
- export const BorderRadius = {
56
- xs: 8,
57
- sm: 12,
58
- md: 18,
59
- lg: 24,
60
- xl: 30,
61
- "2xl": 40,
62
- "3xl": 50,
63
- full: 9999,
64
- };
65
-
66
- export const Typography = {
67
- h1: {
68
- fontSize: 32,
69
- lineHeight: 40,
70
- fontWeight: "700" as const,
71
- },
72
- h2: {
73
- fontSize: 28,
74
- lineHeight: 36,
75
- fontWeight: "700" as const,
76
- },
77
- h3: {
78
- fontSize: 24,
79
- lineHeight: 32,
80
- fontWeight: "600" as const,
81
- },
82
- h4: {
83
- fontSize: 20,
84
- lineHeight: 28,
85
- fontWeight: "600" as const,
86
- },
87
- body: {
88
- fontSize: 16,
89
- lineHeight: 24,
90
- fontWeight: "400" as const,
91
- },
92
- small: {
93
- fontSize: 14,
94
- lineHeight: 20,
95
- fontWeight: "400" as const,
96
- },
97
- link: {
98
- fontSize: 16,
99
- lineHeight: 24,
100
- fontWeight: "400" as const,
101
- },
102
- };
103
-
104
- export const Fonts = Platform.select({
105
- ios: {
106
- /** iOS `UIFontDescriptorSystemDesignDefault` */
107
- sans: "system-ui",
108
- /** iOS `UIFontDescriptorSystemDesignSerif` */
109
- serif: "ui-serif",
110
- /** iOS `UIFontDescriptorSystemDesignRounded` */
111
- rounded: "ui-rounded",
112
- /** iOS `UIFontDescriptorSystemDesignMonospaced` */
113
- mono: "ui-monospace",
114
- },
115
- default: {
116
- sans: "normal",
117
- serif: "serif",
118
- rounded: "normal",
119
- mono: "monospace",
120
- },
121
- web: {
122
- sans: "system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
123
- serif: "Georgia, 'Times New Roman', serif",
124
- rounded:
125
- "'SF Pro Rounded', 'Hiragino Maru Gothic ProN', Meiryo, 'MS PGothic', sans-serif",
126
- mono: "SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace",
127
- },
128
- });
@@ -1,24 +0,0 @@
1
- {
2
- "extends": "expo/tsconfig.base",
3
- "compilerOptions": {
4
- "skipLibCheck": true,
5
- "jsx": "react-jsx",
6
- "baseUrl": ".",
7
- "strict": true,
8
- "noEmit": true,
9
- "paths": {
10
- "@/*": ["./src/*"]
11
- }
12
- },
13
- "include": ["**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"],
14
- "exclude": [
15
- "node_modules",
16
- "**/*.spec.ts",
17
- "**/*.test.ts",
18
- "**/*.spec.tsx",
19
- "**/*.test.tsx",
20
- "dist",
21
- "build",
22
- ".expo"
23
- ]
24
- }
@@ -1,3 +0,0 @@
1
- packages:
2
- - client
3
- - server
@@ -1,17 +0,0 @@
1
- {
2
- "name": "server",
3
- "private": true,
4
- "scripts": {
5
- "preinstall": "npx only-allow pnpm",
6
- "dev": "NODE_ENV=development tsx ./src/index.ts",
7
- "build": "pnpm exec esbuild src/index.ts --platform=node --packages=external --bundle --format=esm --outdir=dist",
8
- "start": "NODE_ENV=production PORT=${PORT:-5000} node dist/index.js"
9
- },
10
- "dependencies": {
11
- "express": "^4.22.1"
12
- },
13
- "devDependencies": {
14
- "@types/express": "^5.0.6",
15
- "tsx": "^4.21.0"
16
- }
17
- }