@coze-arch/cli 0.0.1-alpha.de5a13 → 0.0.1-alpha.deaedf
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.
- package/README.md +1 -0
- package/lib/__templates__/expo/.cozeproj/scripts/server_dev_run.sh +1 -1
- package/lib/__templates__/expo/client/components/Screen.tsx +2 -2
- package/lib/__templates__/expo/client/eslint.config.mjs +7 -0
- package/lib/__templates__/expo/client/metro.config.js +3 -0
- package/lib/__templates__/expo/client/scripts/install-missing-deps.js +10 -10
- package/lib/__templates__/expo/eslint-plugins/forbid-emoji/index.js +9 -0
- package/lib/__templates__/expo/eslint-plugins/forbid-emoji/rule.js +112 -0
- package/lib/__templates__/expo/eslint-plugins/forbid-emoji/tech.md +94 -0
- package/lib/__templates__/expo/eslint-plugins/restrict-linear-gradient/index.js +9 -0
- package/lib/__templates__/expo/eslint-plugins/restrict-linear-gradient/rule.js +120 -0
- package/lib/__templates__/expo/eslint-plugins/restrict-linear-gradient/tech.md +58 -0
- package/lib/__templates__/expo/pnpm-lock.yaml +8 -5
- package/lib/__templates__/expo/server/package.json +1 -1
- package/lib/__templates__/native-static/.coze +11 -0
- package/lib/__templates__/native-static/index.html +33 -0
- package/lib/__templates__/native-static/styles/main.css +136 -0
- package/lib/__templates__/native-static/template.config.js +22 -0
- package/lib/__templates__/nextjs/.babelrc +3 -0
- package/lib/__templates__/nextjs/README.md +5 -0
- package/lib/__templates__/nextjs/eslint.config.mjs +5 -0
- package/lib/__templates__/nextjs/next.config.ts +1 -2
- package/lib/__templates__/nextjs/package.json +3 -6
- package/lib/__templates__/nextjs/pnpm-lock.yaml +1036 -10
- package/lib/__templates__/nextjs/scripts/build.sh +4 -1
- package/lib/__templates__/nextjs/scripts/dev.sh +8 -2
- package/lib/__templates__/nextjs/scripts/start.sh +7 -1
- package/lib/__templates__/nextjs/src/app/layout.tsx +1 -1
- package/lib/__templates__/nextjs/src/app/page.tsx +1 -2
- package/lib/__templates__/nextjs/src/server.ts +35 -0
- package/lib/__templates__/nextjs/tsconfig.json +1 -1
- package/lib/__templates__/nuxt-vue/.coze +12 -0
- package/lib/__templates__/nuxt-vue/README.md +73 -0
- package/lib/__templates__/nuxt-vue/_gitignore +24 -0
- package/lib/__templates__/nuxt-vue/_npmrc +23 -0
- package/lib/__templates__/nuxt-vue/app/app.vue +6 -0
- package/lib/__templates__/nuxt-vue/app/pages/index.vue +23 -0
- package/lib/__templates__/nuxt-vue/assets/css/main.css +24 -0
- package/lib/__templates__/nuxt-vue/nuxt.config.ts +116 -0
- package/lib/__templates__/nuxt-vue/package.json +35 -0
- package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +8759 -0
- package/lib/__templates__/nuxt-vue/postcss.config.mjs +8 -0
- package/lib/__templates__/nuxt-vue/public/favicon.ico +0 -0
- package/lib/__templates__/nuxt-vue/public/robots.txt +2 -0
- package/lib/__templates__/nuxt-vue/scripts/build.sh +14 -0
- package/lib/__templates__/nuxt-vue/scripts/dev.sh +39 -0
- package/lib/__templates__/nuxt-vue/scripts/prepare.sh +14 -0
- package/lib/__templates__/nuxt-vue/scripts/start.sh +21 -0
- package/lib/__templates__/nuxt-vue/server/api/hello.ts +10 -0
- package/lib/__templates__/nuxt-vue/server/middleware/logger.ts +10 -0
- package/lib/__templates__/nuxt-vue/server/routes/health.ts +10 -0
- package/lib/__templates__/nuxt-vue/tailwind.config.js +13 -0
- package/lib/__templates__/nuxt-vue/template.config.js +87 -0
- package/lib/__templates__/nuxt-vue/tsconfig.json +18 -0
- package/lib/__templates__/taro/.cozeproj/scripts/dev_run.sh +107 -37
- package/lib/__templates__/taro/.cozeproj/scripts/pack.sh +24 -1
- package/lib/__templates__/taro/README.md +138 -62
- package/lib/__templates__/taro/config/index.ts +105 -41
- package/lib/__templates__/taro/config/prod.ts +4 -5
- package/lib/__templates__/taro/eslint.config.mjs +82 -4
- package/lib/__templates__/taro/package.json +23 -7
- package/lib/__templates__/taro/patches/@tarojs__plugin-mini-ci@4.1.9.patch +30 -0
- package/lib/__templates__/taro/pnpm-lock.yaml +1198 -214
- package/lib/__templates__/taro/server/package.json +3 -1
- package/lib/__templates__/taro/src/app.css +140 -47
- package/lib/__templates__/taro/src/app.tsx +9 -0
- package/lib/__templates__/taro/src/components/ui/accordion.tsx +159 -0
- package/lib/__templates__/taro/src/components/ui/alert-dialog.tsx +260 -0
- package/lib/__templates__/taro/src/components/ui/alert.tsx +60 -0
- package/lib/__templates__/taro/src/components/ui/aspect-ratio.tsx +36 -0
- package/lib/__templates__/taro/src/components/ui/avatar.tsx +84 -0
- package/lib/__templates__/taro/src/components/ui/badge.tsx +37 -0
- package/lib/__templates__/taro/src/components/ui/breadcrumb.tsx +117 -0
- package/lib/__templates__/taro/src/components/ui/button-group.tsx +83 -0
- package/lib/__templates__/taro/src/components/ui/button.tsx +67 -0
- package/lib/__templates__/taro/src/components/ui/calendar.tsx +394 -0
- package/lib/__templates__/taro/src/components/ui/card.tsx +108 -0
- package/lib/__templates__/taro/src/components/ui/carousel.tsx +228 -0
- package/lib/__templates__/taro/src/components/ui/checkbox.tsx +58 -0
- package/lib/__templates__/taro/src/components/ui/code-block.tsx +169 -0
- package/lib/__templates__/taro/src/components/ui/collapsible.tsx +71 -0
- package/lib/__templates__/taro/src/components/ui/command.tsx +385 -0
- package/lib/__templates__/taro/src/components/ui/context-menu.tsx +614 -0
- package/lib/__templates__/taro/src/components/ui/dialog.tsx +256 -0
- package/lib/__templates__/taro/src/components/ui/drawer.tsx +192 -0
- package/lib/__templates__/taro/src/components/ui/dropdown-menu.tsx +561 -0
- package/lib/__templates__/taro/src/components/ui/field.tsx +228 -0
- package/lib/__templates__/taro/src/components/ui/hover-card.tsx +282 -0
- package/lib/__templates__/taro/src/components/ui/input-group.tsx +197 -0
- package/lib/__templates__/taro/src/components/ui/input-otp.tsx +136 -0
- package/lib/__templates__/taro/src/components/ui/input.tsx +56 -0
- package/lib/__templates__/taro/src/components/ui/label.tsx +24 -0
- package/lib/__templates__/taro/src/components/ui/menubar.tsx +595 -0
- package/lib/__templates__/taro/src/components/ui/navigation-menu.tsx +264 -0
- package/lib/__templates__/taro/src/components/ui/pagination.tsx +118 -0
- package/lib/__templates__/taro/src/components/ui/popover.tsx +291 -0
- package/lib/__templates__/taro/src/components/ui/portal.tsx +19 -0
- package/lib/__templates__/taro/src/components/ui/progress.tsx +28 -0
- package/lib/__templates__/taro/src/components/ui/radio-group.tsx +64 -0
- package/lib/__templates__/taro/src/components/ui/resizable.tsx +346 -0
- package/lib/__templates__/taro/src/components/ui/scroll-area.tsx +34 -0
- package/lib/__templates__/taro/src/components/ui/select.tsx +438 -0
- package/lib/__templates__/taro/src/components/ui/separator.tsx +30 -0
- package/lib/__templates__/taro/src/components/ui/sheet.tsx +262 -0
- package/lib/__templates__/taro/src/components/ui/skeleton.tsx +17 -0
- package/lib/__templates__/taro/src/components/ui/slider.tsx +203 -0
- package/lib/__templates__/taro/src/components/ui/sonner.tsx +1 -0
- package/lib/__templates__/taro/src/components/ui/switch.tsx +55 -0
- package/lib/__templates__/taro/src/components/ui/table.tsx +142 -0
- package/lib/__templates__/taro/src/components/ui/tabs.tsx +114 -0
- package/lib/__templates__/taro/src/components/ui/textarea.tsx +54 -0
- package/lib/__templates__/taro/src/components/ui/toast.tsx +517 -0
- package/lib/__templates__/taro/src/components/ui/toggle-group.tsx +120 -0
- package/lib/__templates__/taro/src/components/ui/toggle.tsx +77 -0
- package/lib/__templates__/taro/src/components/ui/tooltip.tsx +455 -0
- package/lib/__templates__/taro/src/lib/hooks/use-keyboard-offset.ts +37 -0
- package/lib/__templates__/taro/src/lib/measure.ts +115 -0
- package/lib/__templates__/taro/src/lib/platform.ts +12 -0
- package/lib/__templates__/taro/src/lib/utils.ts +6 -0
- package/lib/__templates__/taro/src/presets/dev-debug.ts +23 -0
- package/lib/__templates__/taro/src/presets/h5-container.tsx +15 -0
- package/lib/__templates__/taro/src/presets/h5-navbar.tsx +238 -0
- package/lib/__templates__/taro/src/presets/h5-styles.ts +220 -0
- package/lib/__templates__/taro/src/presets/index.tsx +18 -0
- package/lib/__templates__/templates.json +43 -0
- package/lib/__templates__/vite/README.md +190 -11
- package/lib/__templates__/vite/_gitignore +1 -0
- package/lib/__templates__/vite/eslint.config.mjs +6 -1
- package/lib/__templates__/vite/package.json +14 -5
- package/lib/__templates__/vite/pnpm-lock.yaml +768 -24
- package/lib/__templates__/vite/scripts/build.sh +4 -1
- package/lib/__templates__/vite/scripts/dev.sh +9 -2
- package/lib/__templates__/vite/scripts/start.sh +9 -3
- package/lib/__templates__/vite/server/routes/index.ts +31 -0
- package/lib/__templates__/vite/server/server.ts +65 -0
- package/lib/__templates__/vite/server/vite.ts +67 -0
- package/lib/__templates__/vite/tsconfig.json +4 -3
- package/lib/__templates__/vite/vite.config.ts +5 -0
- package/lib/cli.js +124 -103
- package/package.json +7 -3
- package/lib/__templates__/taro/src/app.ts +0 -14
- package/lib/__templates__/taro/src/utils/h5-styles.ts +0 -22
- package/lib/__templates__/taro/src/utils/wx-debug.ts +0 -23
|
@@ -4,22 +4,27 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Coze Mini Program Application",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "pnpm exec concurrently -n lint,tsc,web,weapp,server -c red,blue,green,yellow,magenta \"pnpm lint:build\" \"pnpm tsc\" \"pnpm build:web\" \"pnpm build:weapp\" \"pnpm build:server\"",
|
|
7
|
+
"build": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc,web,weapp,tt,server -c red,blue,green,yellow,cyan,magenta \"pnpm lint:build\" \"pnpm tsc\" \"pnpm build:web\" \"pnpm build:weapp\" \"pnpm build:tt\" \"pnpm build:server\"",
|
|
8
8
|
"build:server": "pnpm --filter server build",
|
|
9
|
+
"build:tt": "taro build --type tt",
|
|
9
10
|
"build:weapp": "taro build --type weapp",
|
|
10
11
|
"build:web": "taro build --type h5",
|
|
11
|
-
"dev": "pnpm exec concurrently -n web,server -c blue,green \"pnpm dev:web\" \"pnpm dev:server\"",
|
|
12
|
+
"dev": "pnpm exec concurrently --kill-others --kill-signal SIGKILL -n web,server -c blue,green \"pnpm dev:web\" \"pnpm dev:server\"",
|
|
12
13
|
"dev:server": "pnpm --filter server dev",
|
|
14
|
+
"dev:tt": "taro build --type tt --watch",
|
|
13
15
|
"dev:weapp": "taro build --type weapp --watch",
|
|
14
16
|
"dev:web": "taro build --type h5 --watch",
|
|
15
17
|
"preinstall": "npx only-allow pnpm",
|
|
16
18
|
"postinstall": "weapp-tw patch",
|
|
19
|
+
"kill:all": "pkill -9 -f 'concurrently' 2>/dev/null || true; pkill -9 -f 'nest start' 2>/dev/null || true; pkill -9 -f 'taro build' 2>/dev/null || true; pkill -9 -f 'node.*dev' 2>/dev/null || true; echo 'All dev processes cleaned'",
|
|
17
20
|
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
18
21
|
"lint:build": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --max-warnings=0",
|
|
19
22
|
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
20
23
|
"new": "taro new",
|
|
24
|
+
"preview:tt": "taro build --type tt --preview",
|
|
21
25
|
"preview:weapp": "taro build --type weapp --preview",
|
|
22
|
-
"tsc": "npx tsc --noEmit --skipLibCheck"
|
|
26
|
+
"tsc": "npx tsc --noEmit --skipLibCheck",
|
|
27
|
+
"validate": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc -c red,blue \"pnpm lint:build\" \"pnpm tsc\""
|
|
23
28
|
},
|
|
24
29
|
"lint-staged": {
|
|
25
30
|
"src/**/*.{js,jsx,ts,tsx}": [
|
|
@@ -37,15 +42,20 @@
|
|
|
37
42
|
"@tarojs/helper": "4.1.9",
|
|
38
43
|
"@tarojs/plugin-framework-react": "4.1.9",
|
|
39
44
|
"@tarojs/plugin-platform-h5": "4.1.9",
|
|
45
|
+
"@tarojs/plugin-platform-tt": "4.1.9",
|
|
40
46
|
"@tarojs/plugin-platform-weapp": "4.1.9",
|
|
41
47
|
"@tarojs/react": "4.1.9",
|
|
42
48
|
"@tarojs/runtime": "4.1.9",
|
|
43
49
|
"@tarojs/shared": "4.1.9",
|
|
44
50
|
"@tarojs/taro": "4.1.9",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
51
|
+
"class-variance-authority": "^0.7.1",
|
|
52
|
+
"clsx": "^2.1.1",
|
|
53
|
+
"date-fns": "^4.1.0",
|
|
54
|
+
"lucide-react-taro": "^1.3.0",
|
|
47
55
|
"react": "^18.0.0",
|
|
48
56
|
"react-dom": "^18.0.0",
|
|
57
|
+
"tailwind-merge": "^3.5.0",
|
|
58
|
+
"tailwindcss-animate": "^1.0.7",
|
|
49
59
|
"zustand": "^5.0.9"
|
|
50
60
|
},
|
|
51
61
|
"devDependencies": {
|
|
@@ -53,7 +63,6 @@
|
|
|
53
63
|
"@babel/plugin-transform-class-properties": "7.25.9",
|
|
54
64
|
"@babel/preset-react": "^7.24.1",
|
|
55
65
|
"@eslint/eslintrc": "^3.3.1",
|
|
56
|
-
"@supabase/supabase-js": "2.95.3",
|
|
57
66
|
"@tailwindcss/postcss": "^4.1.18",
|
|
58
67
|
"@tarojs/cli": "4.1.9",
|
|
59
68
|
"@tarojs/plugin-generator": "4.1.9",
|
|
@@ -69,6 +78,7 @@
|
|
|
69
78
|
"eslint-config-taro": "4.1.9",
|
|
70
79
|
"eslint-plugin-react": "^7.34.1",
|
|
71
80
|
"eslint-plugin-react-hooks": "^4.4.0",
|
|
81
|
+
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
72
82
|
"less": "^4.2.0",
|
|
73
83
|
"lint-staged": "^16.1.2",
|
|
74
84
|
"miniprogram-ci": "^2.1.26",
|
|
@@ -79,14 +89,20 @@
|
|
|
79
89
|
"stylelint-config-standard": "^38.0.0",
|
|
80
90
|
"tailwindcss": "^4.1.18",
|
|
81
91
|
"terser": "^5.30.4",
|
|
92
|
+
"tt-ide-cli": "^0.1.31",
|
|
82
93
|
"typescript": "^5.4.5",
|
|
83
94
|
"vite": "^4.2.0",
|
|
84
|
-
"weapp-tailwindcss": "^4.
|
|
95
|
+
"weapp-tailwindcss": "^4.10.3"
|
|
85
96
|
},
|
|
86
97
|
"packageManager": "pnpm@9.0.0",
|
|
87
98
|
"engines": {
|
|
88
99
|
"pnpm": ">=9.0.0"
|
|
89
100
|
},
|
|
101
|
+
"pnpm": {
|
|
102
|
+
"patchedDependencies": {
|
|
103
|
+
"@tarojs/plugin-mini-ci@4.1.9": "patches/@tarojs__plugin-mini-ci@4.1.9.patch"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
90
106
|
"templateInfo": {
|
|
91
107
|
"name": "default",
|
|
92
108
|
"typescript": true,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
diff --git a/dist/TTCI.js b/dist/TTCI.js
|
|
2
|
+
index e5fe6a5f9a0ca8670ffa2b7e14cdfd8d49d0d792..6f24020a3388ea8fc7d1cbc41c1df104a8c37cb8 100644
|
|
3
|
+
--- a/dist/TTCI.js
|
|
4
|
+
+++ b/dist/TTCI.js
|
|
5
|
+
@@ -63,7 +63,10 @@ class TTCI extends BaseCi_1.default {
|
|
6
|
+
output: previewQrcodePath,
|
|
7
|
+
},
|
|
8
|
+
copyToClipboard: true,
|
|
9
|
+
- cache: true
|
|
10
|
+
+ cache: true,
|
|
11
|
+
+ ideConfig: {
|
|
12
|
+
+ skipDomainCheck: this.pluginOpts.tt && this.pluginOpts.tt.setting && this.pluginOpts.tt.setting.skipDomainCheck
|
|
13
|
+
+ }
|
|
14
|
+
});
|
|
15
|
+
console.log(chalk.green(`开发版上传成功 ${new Date().toLocaleString()}\n`));
|
|
16
|
+
const qrContent = previewResult.shortUrl;
|
|
17
|
+
diff --git a/dist/index.js b/dist/index.js
|
|
18
|
+
index bb245e34a477bcd738b18fdd754b252a456efe4f..588fe56131be52de2d798ee959ef257b4fa53313 100644
|
|
19
|
+
--- a/dist/index.js
|
|
20
|
+
+++ b/dist/index.js
|
|
21
|
+
@@ -43,7 +43,8 @@ exports.default = (ctx, _pluginOpts) => {
|
|
22
|
+
/** 字节跳动小程序上传配置 */
|
|
23
|
+
tt: joi.object({
|
|
24
|
+
email: joi.string().required(),
|
|
25
|
+
- password: joi.string().required()
|
|
26
|
+
+ password: joi.string().required(),
|
|
27
|
+
+ setting: joi.object()
|
|
28
|
+
}),
|
|
29
|
+
/** 阿里小程序上传配置 */
|
|
30
|
+
alipay: joi.alternatives().try(joi.object({
|