@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
@@ -0,0 +1,3 @@
1
+ packages:
2
+ - client
3
+ - server
@@ -0,0 +1,29 @@
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
+ "coze-coding-dev-sdk": "^0.5.5",
13
+ "dayjs": "^1.11.19",
14
+ "drizzle-orm": "^0.45.1",
15
+ "drizzle-zod": "^0.8.3",
16
+ "multer": "^2.0.2",
17
+ "pg": "^8.16.3",
18
+ "zod": "^4.2.1"
19
+ },
20
+ "devDependencies": {
21
+ "@types/express": "^5.0.6",
22
+ "tsx": "^4.21.0",
23
+ "@types/multer": "^2.0.0",
24
+ "@types/pg": "^8.16.0",
25
+ "esbuild": "0.27.2",
26
+ "typescript": "^5.8.3",
27
+ "drizzle-kit": "^0.31.8"
28
+ }
29
+ }
@@ -3,8 +3,8 @@ import express from "express";
3
3
  const app = express();
4
4
  const port = process.env.PORT || 9091;
5
5
 
6
- app.get('/api/hello', (req, res) => {
7
- res.status(200).json({ message: 'hello world' });
6
+ app.get('/api/v1/ping', (req, res) => {
7
+ res.status(200).json({ message: 'connected' });
8
8
  });
9
9
 
10
10
  app.listen(port, () => {
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "lib": [
5
+ "es2024",
6
+ "ESNext.Array",
7
+ "ESNext.Collection",
8
+ "ESNext.Iterator",
9
+ "ESNext.Promise"
10
+ ],
11
+ "module": "nodenext",
12
+ "target": "es2024",
13
+
14
+ "strict": true,
15
+ "esModuleInterop": true,
16
+ "skipLibCheck": true,
17
+ "moduleResolution": "node16",
18
+
19
+ "rewriteRelativeImportExtensions": true,
20
+ "erasableSyntaxOnly": true,
21
+ "verbatimModuleSyntax": true
22
+ },
23
+ "include": ["src"]
24
+ }
@@ -31,7 +31,7 @@ export const paramsSchema = {
31
31
  const config = {
32
32
  paramsSchema,
33
33
  defaultParams: {
34
- port: 8081,
34
+ port: 9090,
35
35
  appName: 'my-expo-app',
36
36
  },
37
37
  onBeforeRender: async context => {
@@ -1,24 +1 @@
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
- "@/*": ["./client/*"]
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
- "client/.expo"
23
- ]
24
- }
1
+ {}
@@ -1,4 +1,4 @@
1
- registry=https://registry.npmjs.org
1
+ registry=https://registry.npmmirror.com
2
2
 
3
3
  strictStorePkgContentCheck=false
4
4
  verifyStoreIntegrity=false
@@ -42,7 +42,7 @@
42
42
  "class-variance-authority": "^0.7.1",
43
43
  "clsx": "^2.1.1",
44
44
  "cmdk": "^1.1.1",
45
- "coze-coding-dev-sdk": "0.5.0",
45
+ "coze-coding-dev-sdk": "^0.5.2",
46
46
  "date-fns": "^4.1.0",
47
47
  "drizzle-kit": "^0.31.8",
48
48
  "drizzle-orm": "^0.45.1",
@@ -66,8 +66,6 @@
66
66
  "zod": "^4.3.5"
67
67
  },
68
68
  "devDependencies": {
69
- "@react-dev-inspector/babel-plugin": "^2.0.1",
70
- "@react-dev-inspector/middleware": "^2.0.1",
71
69
  "@tailwindcss/postcss": "^4",
72
70
  "@types/node": "^20",
73
71
  "@types/pg": "^8.16.0",
@@ -76,7 +74,6 @@
76
74
  "eslint": "^9",
77
75
  "eslint-config-next": "16.1.1",
78
76
  "only-allow": "^1.2.2",
79
- "react-dev-inspector": "^2.0.1",
80
77
  "shadcn": "latest",
81
78
  "tailwindcss": "^4",
82
79
  "typescript": "^5"