@coze-arch/cli 0.0.1-alpha.8864c6 → 0.0.1-alpha.8a7e7e

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 (96) hide show
  1. package/lib/__templates__/expo/.cozeproj/scripts/dev_run.sh +13 -12
  2. package/lib/__templates__/expo/.cozeproj/scripts/server_dev_run.sh +9 -8
  3. package/lib/__templates__/expo/client/metro.config.js +3 -0
  4. package/lib/__templates__/expo/client/package.json +35 -35
  5. package/lib/__templates__/expo/client/screens/demo/index.tsx +3 -3
  6. package/lib/__templates__/expo/package.json +1 -1
  7. package/lib/__templates__/expo/patches/{expo@54.0.32.patch → expo@54.0.33.patch} +3 -2
  8. package/lib/__templates__/expo/pnpm-lock.yaml +340 -1736
  9. package/lib/__templates__/expo/server/package.json +9 -7
  10. package/lib/__templates__/expo/server/src/index.ts +1 -0
  11. package/lib/__templates__/expo/template.config.js +56 -0
  12. package/lib/__templates__/native-static/.coze +11 -0
  13. package/lib/__templates__/native-static/index.html +33 -0
  14. package/lib/__templates__/native-static/styles/main.css +136 -0
  15. package/lib/__templates__/native-static/template.config.js +22 -0
  16. package/lib/__templates__/nextjs/package.json +3 -1
  17. package/lib/__templates__/nextjs/pnpm-lock.yaml +119 -106
  18. package/lib/__templates__/nextjs/src/app/page.tsx +18 -60
  19. package/lib/__templates__/nextjs/template.config.js +49 -14
  20. package/lib/__templates__/taro/.coze +14 -0
  21. package/lib/__templates__/taro/.cozeproj/scripts/deploy_build.sh +19 -0
  22. package/lib/__templates__/taro/.cozeproj/scripts/deploy_run.sh +14 -0
  23. package/lib/__templates__/taro/.cozeproj/scripts/dev_build.sh +2 -0
  24. package/lib/__templates__/taro/.cozeproj/scripts/dev_run.sh +151 -0
  25. package/lib/__templates__/taro/.cozeproj/scripts/init_env.sh +5 -0
  26. package/lib/__templates__/taro/.cozeproj/scripts/pack.sh +24 -0
  27. package/lib/__templates__/taro/README.md +751 -0
  28. package/lib/__templates__/taro/_gitignore +40 -0
  29. package/lib/__templates__/taro/_npmrc +18 -0
  30. package/lib/__templates__/taro/babel.config.js +12 -0
  31. package/lib/__templates__/taro/config/dev.ts +9 -0
  32. package/lib/__templates__/taro/config/index.ts +223 -0
  33. package/lib/__templates__/taro/config/prod.ts +34 -0
  34. package/lib/__templates__/taro/eslint.config.mjs +80 -0
  35. package/lib/__templates__/taro/key/private.appid.key +0 -0
  36. package/lib/__templates__/taro/package.json +107 -0
  37. package/lib/__templates__/taro/patches/@tarojs__plugin-mini-ci@4.1.9.patch +30 -0
  38. package/lib/__templates__/taro/pnpm-lock.yaml +23100 -0
  39. package/lib/__templates__/taro/pnpm-workspace.yaml +2 -0
  40. package/lib/__templates__/taro/project.config.json +15 -0
  41. package/lib/__templates__/taro/server/nest-cli.json +10 -0
  42. package/lib/__templates__/taro/server/package.json +40 -0
  43. package/lib/__templates__/taro/server/src/app.controller.ts +23 -0
  44. package/lib/__templates__/taro/server/src/app.module.ts +10 -0
  45. package/lib/__templates__/taro/server/src/app.service.ts +8 -0
  46. package/lib/__templates__/taro/server/src/interceptors/http-status.interceptor.ts +23 -0
  47. package/lib/__templates__/taro/server/src/main.ts +49 -0
  48. package/lib/__templates__/taro/server/tsconfig.json +24 -0
  49. package/lib/__templates__/taro/src/app.config.ts +11 -0
  50. package/lib/__templates__/taro/src/app.css +52 -0
  51. package/lib/__templates__/taro/src/app.tsx +9 -0
  52. package/lib/__templates__/taro/src/index.html +39 -0
  53. package/lib/__templates__/taro/src/network.ts +39 -0
  54. package/lib/__templates__/taro/src/pages/index/index.config.ts +3 -0
  55. package/lib/__templates__/taro/src/pages/index/index.css +1 -0
  56. package/lib/__templates__/taro/src/pages/index/index.tsx +33 -0
  57. package/lib/__templates__/taro/src/presets/dev-debug.ts +23 -0
  58. package/lib/__templates__/taro/src/presets/h5-container.tsx +15 -0
  59. package/lib/__templates__/taro/src/presets/h5-navbar.tsx +201 -0
  60. package/lib/__templates__/taro/src/presets/h5-styles.ts +142 -0
  61. package/lib/__templates__/taro/src/presets/index.tsx +18 -0
  62. package/lib/__templates__/taro/stylelint.config.mjs +4 -0
  63. package/lib/__templates__/taro/template.config.js +68 -0
  64. package/lib/__templates__/taro/tsconfig.json +29 -0
  65. package/lib/__templates__/taro/types/global.d.ts +32 -0
  66. package/lib/__templates__/templates.json +75 -0
  67. package/lib/__templates__/vite/package.json +5 -1
  68. package/lib/__templates__/vite/pnpm-lock.yaml +146 -1659
  69. package/lib/__templates__/vite/src/main.ts +17 -47
  70. package/lib/__templates__/vite/template.config.js +49 -14
  71. package/lib/__templates__/vite/vite.config.ts +1 -0
  72. package/lib/__templates__/vite-vue/.coze +12 -0
  73. package/lib/__templates__/vite-vue/README.md +451 -0
  74. package/lib/__templates__/vite-vue/_gitignore +66 -0
  75. package/lib/__templates__/vite-vue/_npmrc +23 -0
  76. package/lib/__templates__/vite-vue/eslint.config.mjs +9 -0
  77. package/lib/__templates__/vite-vue/index.html +13 -0
  78. package/lib/__templates__/vite-vue/package.json +38 -0
  79. package/lib/__templates__/vite-vue/pnpm-lock.yaml +3132 -0
  80. package/lib/__templates__/vite-vue/postcss.config.mjs +6 -0
  81. package/lib/__templates__/vite-vue/scripts/build.sh +14 -0
  82. package/lib/__templates__/vite-vue/scripts/dev.sh +32 -0
  83. package/lib/__templates__/vite-vue/scripts/prepare.sh +9 -0
  84. package/lib/__templates__/vite-vue/scripts/start.sh +15 -0
  85. package/lib/__templates__/vite-vue/src/App.vue +6 -0
  86. package/lib/__templates__/vite-vue/src/index.css +29 -0
  87. package/lib/__templates__/vite-vue/src/main.ts +8 -0
  88. package/lib/__templates__/vite-vue/src/router/index.ts +17 -0
  89. package/lib/__templates__/vite-vue/src/views/Home.vue +38 -0
  90. package/lib/__templates__/vite-vue/src/vite-env.d.ts +8 -0
  91. package/lib/__templates__/vite-vue/tailwind.config.js +9 -0
  92. package/lib/__templates__/vite-vue/template.config.js +127 -0
  93. package/lib/__templates__/vite-vue/tsconfig.json +17 -0
  94. package/lib/__templates__/vite-vue/vite.config.ts +28 -0
  95. package/lib/cli.js +62 -68
  96. package/package.json +2 -1
@@ -0,0 +1,23 @@
1
+ loglevel=error
2
+ registry=https://registry.npmmirror.com
3
+
4
+ strictStorePkgContentCheck=false
5
+ verifyStoreIntegrity=false
6
+
7
+ # 网络优化
8
+ network-concurrency=16
9
+ fetch-retries=3
10
+ fetch-timeout=60000
11
+
12
+ # 严格使用 peer dependencies
13
+ strict-peer-dependencies=false
14
+
15
+ # 自动生成 lockfile
16
+ auto-install-peers=true
17
+
18
+ # lockfile 配置
19
+ lockfile=true
20
+ prefer-frozen-lockfile=true
21
+
22
+ # 如果 lockfile 存在但过期,更新而不是失败
23
+ resolution-mode=highest
@@ -0,0 +1,9 @@
1
+ import eslint from '@eslint/js';
2
+ import tseslint from 'typescript-eslint';
3
+ import { defineConfig, globalIgnores } from 'eslint/config';
4
+
5
+ export default defineConfig([
6
+ eslint.configs.recommended,
7
+ ...tseslint.configs.recommended,
8
+ globalIgnores(['dist/**', 'node_modules/**']),
9
+ ]);
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <meta name="description" content="扣子编程,你的 AI 开发伙伴已就位" />
7
+ <title>扣子编程 - AI 开发伙伴</title>
8
+ </head>
9
+ <body>
10
+ <div id="app"></div>
11
+ <script type="module" src="/src/main.ts"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "<%= appName %>",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "description": "Vue 3 application with Vite + TypeScript",
6
+ "scripts": {
7
+ "build": "bash ./scripts/build.sh",
8
+ "dev": "bash ./scripts/dev.sh",
9
+ "preinstall": "npx only-allow pnpm",
10
+ "lint": "eslint",
11
+ "start": "bash ./scripts/start.sh",
12
+ "ts-check": "vue-tsc --noEmit"
13
+ },
14
+ "dependencies": {
15
+ "@supabase/supabase-js": "2.95.3",
16
+ "dotenv": "^17.2.3",
17
+ "vue": "^3.5.13",
18
+ "vue-router": "^4.5.0"
19
+ },
20
+ "devDependencies": {
21
+ "@vitejs/plugin-vue": "^5.2.1",
22
+ "autoprefixer": "^10.4.20",
23
+ "coze-coding-dev-sdk": "^0.7.16",
24
+ "eslint": "^9",
25
+ "less": "^4.2.1",
26
+ "only-allow": "^1.2.2",
27
+ "postcss": "^8.4.49",
28
+ "tailwindcss": "^3.4.17",
29
+ "typescript": "^5.6.0",
30
+ "typescript-eslint": "^8",
31
+ "vite": "^7.2.4",
32
+ "vue-tsc": "^2.2.0"
33
+ },
34
+ "packageManager": "pnpm@9.0.0",
35
+ "engines": {
36
+ "pnpm": ">=9.0.0"
37
+ }
38
+ }