@coze-arch/cli 0.0.1-alpha.912cd5 → 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 (41) hide show
  1. package/lib/__templates__/expo/.coze +7 -2
  2. package/lib/__templates__/expo/.cozeproj/scripts/{deploy_build.sh → dev_build.sh} +25 -25
  3. package/lib/__templates__/expo/.cozeproj/scripts/{deploy_run.sh → dev_run.sh} +35 -57
  4. package/lib/__templates__/expo/.cozeproj/scripts/prod_build.sh +47 -0
  5. package/lib/__templates__/expo/.cozeproj/scripts/prod_run.sh +35 -0
  6. package/lib/__templates__/expo/_npmrc +1 -1
  7. package/lib/__templates__/expo/babel.config.js +10 -0
  8. package/lib/__templates__/expo/client/components/ThemedText.tsx +33 -0
  9. package/lib/__templates__/expo/client/components/ThemedView.tsx +38 -0
  10. package/lib/__templates__/expo/client/constants/theme.ts +779 -47
  11. package/lib/__templates__/expo/client/contexts/AuthContext.tsx +14 -107
  12. package/lib/__templates__/expo/client/hooks/useTheme.ts +1 -1
  13. package/lib/__templates__/expo/client/screens/home/index.tsx +1 -4
  14. package/lib/__templates__/expo/client/screens/home/styles.ts +1 -273
  15. package/lib/__templates__/expo/client/utils/index.ts +1 -2
  16. package/lib/__templates__/expo/metro.config.js +76 -8
  17. package/lib/__templates__/expo/package.json +17 -6
  18. package/lib/__templates__/expo/pnpm-lock.yaml +153 -516
  19. package/lib/__templates__/expo/src/index.ts +2 -2
  20. package/lib/__templates__/expo/template.config.js +1 -1
  21. package/lib/__templates__/nextjs/.coze +3 -3
  22. package/lib/__templates__/nextjs/_npmrc +1 -1
  23. package/lib/__templates__/nextjs/package.json +9 -3
  24. package/lib/__templates__/nextjs/pnpm-lock.yaml +2501 -1120
  25. package/lib/__templates__/nextjs/scripts/dev.sh +8 -27
  26. package/lib/__templates__/nextjs/src/app/globals.css +99 -87
  27. package/lib/__templates__/nextjs/src/app/layout.tsx +18 -22
  28. package/lib/__templates__/nextjs/template.config.js +1 -1
  29. package/lib/__templates__/templates.json +7 -0
  30. package/lib/__templates__/vite/.coze +3 -3
  31. package/lib/__templates__/vite/README.md +204 -26
  32. package/lib/__templates__/vite/_npmrc +1 -1
  33. package/lib/__templates__/vite/package.json +1 -1
  34. package/lib/__templates__/vite/pnpm-lock.yaml +120 -120
  35. package/lib/__templates__/vite/scripts/dev.sh +7 -26
  36. package/lib/__templates__/vite/template.config.js +10 -1
  37. package/lib/__templates__/vite/vite.config.ts +3 -3
  38. package/lib/cli.js +408 -248
  39. package/package.json +7 -3
  40. package/lib/__templates__/nextjs/.babelrc +0 -15
  41. package/lib/__templates__/nextjs/server.mjs +0 -50
@@ -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, () => {
@@ -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 => {
@@ -2,10 +2,10 @@
2
2
  requires = ["nodejs-24"]
3
3
 
4
4
  [dev]
5
- run = ["npm", "run", "dev"]
5
+ run = ["bash", "./scripts/dev.sh"]
6
6
  deps = ["git"] # -> apt install git
7
7
 
8
8
  [deploy]
9
- build = ["npm", "run", "build"]
10
- run = ["npm", "run", "start"]
9
+ build = ["bash","./scripts/build.sh"]
10
+ run = ["bash","./scripts/start.sh"]
11
11
  deps = ["git"] # -> apt install git
@@ -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
@@ -10,6 +10,8 @@
10
10
  "start": "bash ./scripts/start.sh"
11
11
  },
12
12
  "dependencies": {
13
+ "@aws-sdk/client-s3": "^3.958.0",
14
+ "@aws-sdk/lib-storage": "^3.958.0",
13
15
  "@hookform/resolvers": "^5.2.2",
14
16
  "@radix-ui/react-accordion": "^1.2.12",
15
17
  "@radix-ui/react-alert-dialog": "^1.1.15",
@@ -40,12 +42,17 @@
40
42
  "class-variance-authority": "^0.7.1",
41
43
  "clsx": "^2.1.1",
42
44
  "cmdk": "^1.1.1",
45
+ "coze-coding-dev-sdk": "^0.5.2",
43
46
  "date-fns": "^4.1.0",
47
+ "drizzle-kit": "^0.31.8",
48
+ "drizzle-orm": "^0.45.1",
49
+ "drizzle-zod": "^0.8.3",
44
50
  "embla-carousel-react": "^8.6.0",
45
51
  "input-otp": "^1.4.2",
46
52
  "lucide-react": "^0.468.0",
47
53
  "next": "16.1.1",
48
54
  "next-themes": "^0.4.6",
55
+ "pg": "^8.16.3",
49
56
  "react": "19.2.3",
50
57
  "react-day-picker": "^9.13.0",
51
58
  "react-dom": "19.2.3",
@@ -54,20 +61,19 @@
54
61
  "recharts": "2.15.4",
55
62
  "sonner": "^2.0.7",
56
63
  "tailwind-merge": "^2.6.0",
64
+ "tw-animate-css": "^1.4.0",
57
65
  "vaul": "^1.1.2",
58
66
  "zod": "^4.3.5"
59
67
  },
60
68
  "devDependencies": {
61
- "@react-dev-inspector/babel-plugin": "^2.0.1",
62
- "@react-dev-inspector/middleware": "^2.0.1",
63
69
  "@tailwindcss/postcss": "^4",
64
70
  "@types/node": "^20",
71
+ "@types/pg": "^8.16.0",
65
72
  "@types/react": "^19",
66
73
  "@types/react-dom": "^19",
67
74
  "eslint": "^9",
68
75
  "eslint-config-next": "16.1.1",
69
76
  "only-allow": "^1.2.2",
70
- "react-dev-inspector": "^2.0.1",
71
77
  "shadcn": "latest",
72
78
  "tailwindcss": "^4",
73
79
  "typescript": "^5"