@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
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/* ABOUTME: Main stylesheet for native-static template */
|
|
2
|
+
/* ABOUTME: Provides layout, typography, and theme styles without external dependencies */
|
|
3
|
+
|
|
4
|
+
/* Reset and base styles */
|
|
5
|
+
* {
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:root {
|
|
12
|
+
/* Light theme colors */
|
|
13
|
+
--background: #ffffff;
|
|
14
|
+
--foreground: #171717;
|
|
15
|
+
--muted-foreground: #71717a;
|
|
16
|
+
|
|
17
|
+
/* Spacing */
|
|
18
|
+
--spacing-2: 0.5rem;
|
|
19
|
+
--spacing-4: 1rem;
|
|
20
|
+
--spacing-16: 4rem;
|
|
21
|
+
--spacing-32: 8rem;
|
|
22
|
+
|
|
23
|
+
/* Typography */
|
|
24
|
+
--font-size-base: 1rem;
|
|
25
|
+
--font-size-sm: 0.875rem;
|
|
26
|
+
--line-height-tight: 1.25;
|
|
27
|
+
--line-height-relaxed: 2;
|
|
28
|
+
--letter-spacing-tight: -0.025em;
|
|
29
|
+
|
|
30
|
+
/* Transitions */
|
|
31
|
+
--transition-duration: 300ms;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Dark theme */
|
|
35
|
+
@media (prefers-color-scheme: dark) {
|
|
36
|
+
:root {
|
|
37
|
+
--background: #0a0a0a;
|
|
38
|
+
--foreground: #ededed;
|
|
39
|
+
--muted-foreground: #a1a1aa;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body {
|
|
44
|
+
background: var(--background);
|
|
45
|
+
color: var(--foreground);
|
|
46
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
47
|
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
48
|
+
sans-serif;
|
|
49
|
+
-webkit-font-smoothing: antialiased;
|
|
50
|
+
-moz-osx-font-smoothing: grayscale;
|
|
51
|
+
margin: 0;
|
|
52
|
+
padding: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* App container */
|
|
56
|
+
#app {
|
|
57
|
+
display: flex;
|
|
58
|
+
height: 100%;
|
|
59
|
+
min-height: 100vh;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Main content wrapper */
|
|
66
|
+
.main-wrapper {
|
|
67
|
+
display: flex;
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
max-width: 48rem;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
padding-left: var(--spacing-16);
|
|
75
|
+
padding-right: var(--spacing-16);
|
|
76
|
+
padding-top: var(--spacing-32);
|
|
77
|
+
padding-bottom: var(--spacing-32);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Content container */
|
|
81
|
+
.content-container {
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: space-between;
|
|
86
|
+
gap: var(--spacing-4);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Logo image */
|
|
90
|
+
.logo-image {
|
|
91
|
+
width: 156px;
|
|
92
|
+
height: 130px;
|
|
93
|
+
object-fit: contain;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Text container */
|
|
97
|
+
.text-container {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: var(--spacing-2);
|
|
102
|
+
text-align: center;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Heading */
|
|
106
|
+
.heading {
|
|
107
|
+
max-width: 36rem;
|
|
108
|
+
font-size: var(--font-size-base);
|
|
109
|
+
font-weight: 600;
|
|
110
|
+
line-height: var(--line-height-tight);
|
|
111
|
+
letter-spacing: var(--letter-spacing-tight);
|
|
112
|
+
color: var(--foreground);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Description text */
|
|
116
|
+
.description {
|
|
117
|
+
max-width: 42rem;
|
|
118
|
+
font-size: var(--font-size-sm);
|
|
119
|
+
line-height: var(--line-height-relaxed);
|
|
120
|
+
color: var(--muted-foreground);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Responsive design */
|
|
124
|
+
@media (max-width: 640px) {
|
|
125
|
+
.main-wrapper {
|
|
126
|
+
padding-left: 1rem;
|
|
127
|
+
padding-right: 1rem;
|
|
128
|
+
padding-top: 2rem;
|
|
129
|
+
padding-bottom: 2rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.logo-image {
|
|
133
|
+
width: 120px;
|
|
134
|
+
height: 100px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// start_aigc
|
|
7
|
+
const config = {
|
|
8
|
+
description:
|
|
9
|
+
'Native Static(纯静态):`coze init ${COZE_WORKSPACE_PATH} --template native-static`\n' +
|
|
10
|
+
'- 适用:纯静态 HTML/CSS/JS 项目、静态网站\n' +
|
|
11
|
+
'- 使用 Python http.server 作为开发服务器\n' +
|
|
12
|
+
'- 不需要 Node.js 环境,适合简单静态内容',
|
|
13
|
+
paramsSchema: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {},
|
|
16
|
+
required: [],
|
|
17
|
+
additionalProperties: false,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
// end_aigc
|
|
21
|
+
|
|
22
|
+
export default config;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { NextConfig } from 'next';
|
|
2
|
-
import path from 'path';
|
|
3
2
|
|
|
4
3
|
const nextConfig: NextConfig = {
|
|
5
|
-
// outputFileTracingRoot: path.resolve(__dirname, '../../'),
|
|
4
|
+
// outputFileTracingRoot: path.resolve(__dirname, '../../'), // Uncomment and add 'import path from "path"' if needed
|
|
6
5
|
/* config options here */
|
|
7
6
|
allowedDevOrigins: ['*.dev.coze.site'],
|
|
8
7
|
images: {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"class-variance-authority": "^0.7.1",
|
|
45
45
|
"clsx": "^2.1.1",
|
|
46
46
|
"cmdk": "^1.1.1",
|
|
47
|
-
"coze-coding-dev-sdk": "^0.7.
|
|
47
|
+
"coze-coding-dev-sdk": "^0.7.16",
|
|
48
48
|
"date-fns": "^4.1.0",
|
|
49
49
|
"dotenv": "^17.2.3",
|
|
50
50
|
"drizzle-kit": "^0.31.8",
|
|
@@ -82,15 +82,12 @@
|
|
|
82
82
|
"react-dev-inspector": "^2.0.1",
|
|
83
83
|
"shadcn": "latest",
|
|
84
84
|
"tailwindcss": "^4",
|
|
85
|
+
"tsup": "^8.3.5",
|
|
86
|
+
"tsx": "^4.19.2",
|
|
85
87
|
"typescript": "^5"
|
|
86
88
|
},
|
|
87
89
|
"packageManager": "pnpm@9.0.0",
|
|
88
90
|
"engines": {
|
|
89
91
|
"pnpm": ">=9.0.0"
|
|
90
|
-
},
|
|
91
|
-
"pnpm": {
|
|
92
|
-
"overrides": {
|
|
93
|
-
"esbuild": "^0.25.12"
|
|
94
|
-
}
|
|
95
92
|
}
|
|
96
93
|
}
|