@coze-arch/cli 0.0.1-alpha.ee5d83 → 0.0.1-alpha.f11735

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 (42) hide show
  1. package/lib/__templates__/expo/.cozeproj/scripts/dev_run.sh +10 -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/.cozeproj/scripts/server_dev_run.sh +45 -0
  5. package/lib/__templates__/expo/README.md +2 -0
  6. package/lib/__templates__/expo/client/app/_layout.tsx +15 -12
  7. package/lib/__templates__/expo/client/app/index.tsx +1 -1
  8. package/lib/__templates__/expo/client/app.config.ts +4 -3
  9. package/lib/__templates__/expo/client/components/Screen.tsx +1 -17
  10. package/lib/__templates__/expo/client/components/ThemedView.tsx +1 -2
  11. package/lib/__templates__/expo/client/constants/theme.ts +21 -698
  12. package/lib/__templates__/expo/client/declarations.d.ts +5 -0
  13. package/lib/__templates__/expo/client/eslint.config.mjs +17 -10
  14. package/lib/__templates__/expo/client/hooks/{useColorScheme.ts → useColorScheme.tsx} +20 -6
  15. package/lib/__templates__/expo/client/hooks/useTheme.ts +26 -6
  16. package/lib/__templates__/expo/client/screens/{home → demo}/index.tsx +1 -1
  17. package/lib/__templates__/expo/client/scripts/install-missing-deps.js +1 -0
  18. package/lib/__templates__/expo/client/utils/index.ts +22 -0
  19. package/lib/__templates__/expo/eslint-plugins/fontawesome6/index.js +9 -0
  20. package/lib/__templates__/expo/eslint-plugins/fontawesome6/names.js +1889 -0
  21. package/lib/__templates__/expo/eslint-plugins/fontawesome6/rule.js +174 -0
  22. package/lib/__templates__/expo/eslint-plugins/fontawesome6/v5-only-names.js +388 -0
  23. package/lib/__templates__/expo/eslint-plugins/reanimated/index.js +9 -0
  24. package/lib/__templates__/expo/eslint-plugins/reanimated/rule.js +88 -0
  25. package/lib/__templates__/expo/server/build.js +21 -0
  26. package/lib/__templates__/expo/server/package.json +2 -2
  27. package/lib/__templates__/expo/server/src/index.ts +2 -1
  28. package/lib/__templates__/nextjs/.babelrc +15 -0
  29. package/lib/__templates__/nextjs/next.config.ts +2 -2
  30. package/lib/__templates__/nextjs/package.json +9 -1
  31. package/lib/__templates__/nextjs/pnpm-lock.yaml +2485 -1714
  32. package/lib/__templates__/nextjs/src/app/layout.tsx +5 -3
  33. package/lib/__templates__/nextjs/src/app/page.tsx +2 -2
  34. package/lib/__templates__/nextjs/template.config.js +5 -5
  35. package/lib/__templates__/vite/package.json +6 -1
  36. package/lib/__templates__/vite/pnpm-lock.yaml +504 -982
  37. package/lib/__templates__/vite/src/main.ts +1 -2
  38. package/lib/__templates__/vite/template.config.js +6 -4
  39. package/lib/cli.js +258 -14
  40. package/package.json +1 -1
  41. package/lib/__templates__/expo/client/app/home.tsx +0 -1
  42. /package/lib/__templates__/expo/client/screens/{home → demo}/styles.ts +0 -0
@@ -0,0 +1,15 @@
1
+ {
2
+ "presets": [
3
+ [
4
+ "next/babel",
5
+ {
6
+ "preset-react": {
7
+ "development": true
8
+ }
9
+ }
10
+ ]
11
+ ],
12
+ "plugins": [
13
+ "@react-dev-inspector/babel-plugin"
14
+ ]
15
+ }
@@ -2,14 +2,14 @@ import type { NextConfig } from 'next';
2
2
  import path from 'path';
3
3
 
4
4
  const nextConfig: NextConfig = {
5
- outputFileTracingRoot: path.resolve(__dirname, '../../'),
5
+ // outputFileTracingRoot: path.resolve(__dirname, '../../'),
6
6
  /* config options here */
7
7
  allowedDevOrigins: ['*.dev.coze.site'],
8
8
  images: {
9
9
  remotePatterns: [
10
10
  {
11
11
  protocol: 'https',
12
- hostname: 'lf3-static.bytednsdoc.com',
12
+ hostname: 'lf-coze-web-cdn.coze.cn',
13
13
  pathname: '/**',
14
14
  },
15
15
  ],
@@ -43,7 +43,7 @@
43
43
  "class-variance-authority": "^0.7.1",
44
44
  "clsx": "^2.1.1",
45
45
  "cmdk": "^1.1.1",
46
- "coze-coding-dev-sdk": "^0.7.0",
46
+ "coze-coding-dev-sdk": "^0.7.3",
47
47
  "date-fns": "^4.1.0",
48
48
  "drizzle-kit": "^0.31.8",
49
49
  "drizzle-orm": "^0.45.1",
@@ -67,6 +67,8 @@
67
67
  "zod": "^4.3.5"
68
68
  },
69
69
  "devDependencies": {
70
+ "@react-dev-inspector/babel-plugin": "^2.0.1",
71
+ "@react-dev-inspector/middleware": "^2.0.1",
70
72
  "@tailwindcss/postcss": "^4",
71
73
  "@types/node": "^20",
72
74
  "@types/pg": "^8.16.0",
@@ -75,6 +77,7 @@
75
77
  "eslint": "^9",
76
78
  "eslint-config-next": "16.1.1",
77
79
  "only-allow": "^1.2.2",
80
+ "react-dev-inspector": "^2.0.1",
78
81
  "shadcn": "latest",
79
82
  "tailwindcss": "^4",
80
83
  "typescript": "^5"
@@ -82,5 +85,10 @@
82
85
  "packageManager": "pnpm@9.0.0",
83
86
  "engines": {
84
87
  "pnpm": ">=9.0.0"
88
+ },
89
+ "pnpm": {
90
+ "overrides": {
91
+ "esbuild": "^0.25.12"
92
+ }
85
93
  }
86
94
  }