@coze-arch/cli 0.0.1-alpha.77c1b0 → 0.0.1-alpha.a3fb1a
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/lib/__templates__/expo/.cozeproj/scripts/deploy_build.sh +21 -15
- package/lib/__templates__/expo/.cozeproj/scripts/deploy_run.sh +28 -14
- package/lib/__templates__/expo/client/scripts/install-missing-deps.js +36 -12
- package/lib/__templates__/expo/metro.config.js +15 -15
- package/lib/__templates__/expo/package.json +12 -2
- package/lib/__templates__/expo/pnpm-lock.yaml +131 -4
- package/lib/__templates__/nextjs/.babelrc +15 -0
- package/lib/__templates__/nextjs/.coze +3 -3
- package/lib/__templates__/nextjs/README.md +341 -19
- package/lib/__templates__/nextjs/components.json +21 -0
- package/lib/__templates__/nextjs/package.json +57 -1
- package/lib/__templates__/nextjs/pnpm-lock.yaml +8953 -1509
- package/lib/__templates__/nextjs/scripts/dev.sh +2 -1
- package/lib/__templates__/nextjs/server.mjs +50 -0
- package/lib/__templates__/nextjs/src/app/globals.css +99 -8
- package/lib/__templates__/nextjs/src/app/layout.tsx +4 -0
- package/lib/__templates__/nextjs/src/components/ui/accordion.tsx +66 -0
- package/lib/__templates__/nextjs/src/components/ui/alert-dialog.tsx +157 -0
- package/lib/__templates__/nextjs/src/components/ui/alert.tsx +66 -0
- package/lib/__templates__/nextjs/src/components/ui/aspect-ratio.tsx +11 -0
- package/lib/__templates__/nextjs/src/components/ui/avatar.tsx +53 -0
- package/lib/__templates__/nextjs/src/components/ui/badge.tsx +46 -0
- package/lib/__templates__/nextjs/src/components/ui/breadcrumb.tsx +109 -0
- package/lib/__templates__/nextjs/src/components/ui/button-group.tsx +83 -0
- package/lib/__templates__/nextjs/src/components/ui/button.tsx +62 -0
- package/lib/__templates__/nextjs/src/components/ui/calendar.tsx +220 -0
- package/lib/__templates__/nextjs/src/components/ui/card.tsx +92 -0
- package/lib/__templates__/nextjs/src/components/ui/carousel.tsx +241 -0
- package/lib/__templates__/nextjs/src/components/ui/chart.tsx +357 -0
- package/lib/__templates__/nextjs/src/components/ui/checkbox.tsx +32 -0
- package/lib/__templates__/nextjs/src/components/ui/collapsible.tsx +33 -0
- package/lib/__templates__/nextjs/src/components/ui/command.tsx +184 -0
- package/lib/__templates__/nextjs/src/components/ui/context-menu.tsx +252 -0
- package/lib/__templates__/nextjs/src/components/ui/dialog.tsx +143 -0
- package/lib/__templates__/nextjs/src/components/ui/drawer.tsx +135 -0
- package/lib/__templates__/nextjs/src/components/ui/dropdown-menu.tsx +257 -0
- package/lib/__templates__/nextjs/src/components/ui/empty.tsx +104 -0
- package/lib/__templates__/nextjs/src/components/ui/field.tsx +248 -0
- package/lib/__templates__/nextjs/src/components/ui/form.tsx +167 -0
- package/lib/__templates__/nextjs/src/components/ui/hover-card.tsx +44 -0
- package/lib/__templates__/nextjs/src/components/ui/input-group.tsx +170 -0
- package/lib/__templates__/nextjs/src/components/ui/input-otp.tsx +77 -0
- package/lib/__templates__/nextjs/src/components/ui/input.tsx +21 -0
- package/lib/__templates__/nextjs/src/components/ui/item.tsx +193 -0
- package/lib/__templates__/nextjs/src/components/ui/kbd.tsx +28 -0
- package/lib/__templates__/nextjs/src/components/ui/label.tsx +24 -0
- package/lib/__templates__/nextjs/src/components/ui/menubar.tsx +276 -0
- package/lib/__templates__/nextjs/src/components/ui/navigation-menu.tsx +168 -0
- package/lib/__templates__/nextjs/src/components/ui/pagination.tsx +127 -0
- package/lib/__templates__/nextjs/src/components/ui/popover.tsx +48 -0
- package/lib/__templates__/nextjs/src/components/ui/progress.tsx +31 -0
- package/lib/__templates__/nextjs/src/components/ui/radio-group.tsx +45 -0
- package/lib/__templates__/nextjs/src/components/ui/resizable.tsx +56 -0
- package/lib/__templates__/nextjs/src/components/ui/scroll-area.tsx +58 -0
- package/lib/__templates__/nextjs/src/components/ui/select.tsx +190 -0
- package/lib/__templates__/nextjs/src/components/ui/separator.tsx +28 -0
- package/lib/__templates__/nextjs/src/components/ui/sheet.tsx +139 -0
- package/lib/__templates__/nextjs/src/components/ui/sidebar.tsx +726 -0
- package/lib/__templates__/nextjs/src/components/ui/skeleton.tsx +13 -0
- package/lib/__templates__/nextjs/src/components/ui/slider.tsx +63 -0
- package/lib/__templates__/nextjs/src/components/ui/sonner.tsx +40 -0
- package/lib/__templates__/nextjs/src/components/ui/spinner.tsx +16 -0
- package/lib/__templates__/nextjs/src/components/ui/switch.tsx +31 -0
- package/lib/__templates__/nextjs/src/components/ui/table.tsx +116 -0
- package/lib/__templates__/nextjs/src/components/ui/tabs.tsx +66 -0
- package/lib/__templates__/nextjs/src/components/ui/textarea.tsx +18 -0
- package/lib/__templates__/nextjs/src/components/ui/toggle-group.tsx +83 -0
- package/lib/__templates__/nextjs/src/components/ui/toggle.tsx +47 -0
- package/lib/__templates__/nextjs/src/components/ui/tooltip.tsx +61 -0
- package/lib/__templates__/nextjs/src/hooks/use-mobile.ts +19 -0
- package/lib/__templates__/nextjs/src/lib/utils.ts +6 -0
- package/lib/__templates__/nextjs/template.config.js +1 -1
- package/lib/__templates__/templates.json +1 -39
- package/lib/__templates__/vite/.coze +3 -3
- package/lib/__templates__/vite/README.md +204 -26
- package/lib/__templates__/vite/template.config.js +2 -2
- package/lib/cli.js +42 -8
- package/package.json +5 -2
- package/lib/__templates__/react-rsbuild/.coze +0 -11
- package/lib/__templates__/react-rsbuild/.vscode/settings.json +0 -121
- package/lib/__templates__/react-rsbuild/README.md +0 -61
- package/lib/__templates__/react-rsbuild/_gitignore +0 -97
- package/lib/__templates__/react-rsbuild/_npmrc +0 -22
- package/lib/__templates__/react-rsbuild/package.json +0 -31
- package/lib/__templates__/react-rsbuild/pnpm-lock.yaml +0 -997
- package/lib/__templates__/react-rsbuild/rsbuild.config.ts +0 -13
- package/lib/__templates__/react-rsbuild/scripts/build.sh +0 -14
- package/lib/__templates__/react-rsbuild/scripts/dev.sh +0 -51
- package/lib/__templates__/react-rsbuild/scripts/start.sh +0 -15
- package/lib/__templates__/react-rsbuild/src/App.tsx +0 -60
- package/lib/__templates__/react-rsbuild/src/index.css +0 -21
- package/lib/__templates__/react-rsbuild/src/index.html +0 -12
- package/lib/__templates__/react-rsbuild/src/index.tsx +0 -16
- package/lib/__templates__/react-rsbuild/tailwind.config.js +0 -9
- package/lib/__templates__/react-rsbuild/template.config.js +0 -54
- package/lib/__templates__/react-rsbuild/tsconfig.json +0 -17
- package/lib/__templates__/rsbuild/.coze +0 -11
- package/lib/__templates__/rsbuild/.vscode/settings.json +0 -7
- package/lib/__templates__/rsbuild/README.md +0 -61
- package/lib/__templates__/rsbuild/_gitignore +0 -97
- package/lib/__templates__/rsbuild/_npmrc +0 -22
- package/lib/__templates__/rsbuild/package.json +0 -24
- package/lib/__templates__/rsbuild/pnpm-lock.yaml +0 -888
- package/lib/__templates__/rsbuild/rsbuild.config.ts +0 -12
- package/lib/__templates__/rsbuild/scripts/build.sh +0 -14
- package/lib/__templates__/rsbuild/scripts/dev.sh +0 -51
- package/lib/__templates__/rsbuild/scripts/start.sh +0 -15
- package/lib/__templates__/rsbuild/src/index.css +0 -21
- package/lib/__templates__/rsbuild/src/index.html +0 -12
- package/lib/__templates__/rsbuild/src/index.ts +0 -5
- package/lib/__templates__/rsbuild/src/main.ts +0 -65
- package/lib/__templates__/rsbuild/tailwind.config.js +0 -9
- package/lib/__templates__/rsbuild/template.config.js +0 -56
- package/lib/__templates__/rsbuild/tsconfig.json +0 -16
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# Dependencies
|
|
2
|
-
node_modules/
|
|
3
|
-
.pnp
|
|
4
|
-
.pnp.js
|
|
5
|
-
|
|
6
|
-
# Production build
|
|
7
|
-
dist/
|
|
8
|
-
build/
|
|
9
|
-
out/
|
|
10
|
-
.next/
|
|
11
|
-
.rsbuild/
|
|
12
|
-
|
|
13
|
-
# Testing
|
|
14
|
-
coverage/
|
|
15
|
-
*.lcov
|
|
16
|
-
.nyc_output
|
|
17
|
-
|
|
18
|
-
# Environment variables
|
|
19
|
-
.env
|
|
20
|
-
.env.local
|
|
21
|
-
.env.development.local
|
|
22
|
-
.env.test.local
|
|
23
|
-
.env.production.local
|
|
24
|
-
|
|
25
|
-
# Logs
|
|
26
|
-
logs/
|
|
27
|
-
*.log
|
|
28
|
-
npm-debug.log*
|
|
29
|
-
yarn-debug.log*
|
|
30
|
-
yarn-error.log*
|
|
31
|
-
pnpm-debug.log*
|
|
32
|
-
lerna-debug.log*
|
|
33
|
-
|
|
34
|
-
# Runtime data
|
|
35
|
-
pids
|
|
36
|
-
*.pid
|
|
37
|
-
*.seed
|
|
38
|
-
*.pid.lock
|
|
39
|
-
|
|
40
|
-
# Diagnostic reports
|
|
41
|
-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
42
|
-
|
|
43
|
-
# Cache
|
|
44
|
-
.cache/
|
|
45
|
-
.parcel-cache/
|
|
46
|
-
.eslintcache
|
|
47
|
-
.stylelintcache
|
|
48
|
-
.npm
|
|
49
|
-
.yarn/cache
|
|
50
|
-
.yarn/unplugged
|
|
51
|
-
.yarn/build-state.yml
|
|
52
|
-
.yarn/install-state.gz
|
|
53
|
-
|
|
54
|
-
# Editor directories and files
|
|
55
|
-
.vscode/*
|
|
56
|
-
!.vscode/extensions.json
|
|
57
|
-
!.vscode/settings.json
|
|
58
|
-
.idea/
|
|
59
|
-
*.suo
|
|
60
|
-
*.ntvs*
|
|
61
|
-
*.njsproj
|
|
62
|
-
*.sln
|
|
63
|
-
*.sw?
|
|
64
|
-
*.swp
|
|
65
|
-
*.swo
|
|
66
|
-
*~
|
|
67
|
-
|
|
68
|
-
# OS files
|
|
69
|
-
.DS_Store
|
|
70
|
-
.DS_Store?
|
|
71
|
-
._*
|
|
72
|
-
.Spotlight-V100
|
|
73
|
-
.Trashes
|
|
74
|
-
ehthumbs.db
|
|
75
|
-
Thumbs.db
|
|
76
|
-
Desktop.ini
|
|
77
|
-
|
|
78
|
-
# Temporary files
|
|
79
|
-
*.tmp
|
|
80
|
-
*.temp
|
|
81
|
-
.tmp/
|
|
82
|
-
.temp/
|
|
83
|
-
|
|
84
|
-
# Optional files
|
|
85
|
-
*.tgz
|
|
86
|
-
*.gz
|
|
87
|
-
*.zip
|
|
88
|
-
*.tar
|
|
89
|
-
|
|
90
|
-
# TypeScript
|
|
91
|
-
*.tsbuildinfo
|
|
92
|
-
|
|
93
|
-
# Misc
|
|
94
|
-
.vercel
|
|
95
|
-
.turbo
|
|
96
|
-
|
|
97
|
-
.coze-logs
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
registry=https://registry.npmjs.org
|
|
2
|
-
|
|
3
|
-
strictStorePkgContentCheck=false
|
|
4
|
-
verifyStoreIntegrity=false
|
|
5
|
-
|
|
6
|
-
# 网络优化
|
|
7
|
-
network-concurrency=16
|
|
8
|
-
fetch-retries=3
|
|
9
|
-
fetch-timeout=60000
|
|
10
|
-
|
|
11
|
-
# 严格使用 peer dependencies
|
|
12
|
-
strict-peer-dependencies=false
|
|
13
|
-
|
|
14
|
-
# 自动生成 lockfile
|
|
15
|
-
auto-install-peers=true
|
|
16
|
-
|
|
17
|
-
# lockfile 配置
|
|
18
|
-
lockfile=true
|
|
19
|
-
prefer-frozen-lockfile=true
|
|
20
|
-
|
|
21
|
-
# 如果 lockfile 存在但过期,更新而不是失败
|
|
22
|
-
resolution-mode=highest
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "<%= appName %>",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"description": "React application with Rsbuild",
|
|
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
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"react": "^19",
|
|
15
|
-
"react-dom": "^19"
|
|
16
|
-
},
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@rsbuild/core": "^1.1.0",
|
|
19
|
-
"@rsbuild/plugin-react": "^1.0.2",
|
|
20
|
-
"@types/react": "^19",
|
|
21
|
-
"@types/react-dom": "^19",
|
|
22
|
-
"only-allow": "^1.2.2",
|
|
23
|
-
"rsbuild-plugin-tailwindcss": "^0.2.1",
|
|
24
|
-
"tailwindcss": "^3.4.17",
|
|
25
|
-
"typescript": "^5.6.0"
|
|
26
|
-
},
|
|
27
|
-
"packageManager": "pnpm@9.0.0",
|
|
28
|
-
"engines": {
|
|
29
|
-
"pnpm": ">=9.0.0"
|
|
30
|
-
}
|
|
31
|
-
}
|