@coze-arch/cli 0.0.33-alpha.eeae5b → 0.0.35
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/README.md +1 -1
- package/lib/__templates__/native-static/template.config.js +1 -1
- package/lib/__templates__/nextjs/README.md +3 -3
- package/lib/__templates__/nextjs/scripts/prepare.sh +2 -2
- package/lib/__templates__/nextjs/template.config.js +1 -1
- package/lib/__templates__/nuxt-vue/package.json +3 -2
- package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +2901 -1391
- package/lib/__templates__/nuxt-vue/scripts/prepare.sh +2 -2
- package/lib/__templates__/nuxt-vue/template.config.js +1 -1
- package/lib/__templates__/pi-agent/template.config.js +1 -1
- package/lib/__templates__/taro/template.config.js +1 -1
- package/lib/__templates__/templates.json +6 -6
- package/lib/__templates__/vite/README.md +10 -10
- package/lib/__templates__/vite/scripts/prepare.sh +2 -2
- package/lib/__templates__/vite/template.config.js +1 -1
- package/lib/cli.js +7 -9
- package/package.json +1 -3
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// start_aigc
|
|
7
7
|
const config = {
|
|
8
8
|
description:
|
|
9
|
-
'Native Static(纯静态):`coze init ${COZE_WORKSPACE_PATH} --template native-static`\n' +
|
|
9
|
+
'Native Static(纯静态):`coze-dev init ${COZE_WORKSPACE_PATH} --template native-static`\n' +
|
|
10
10
|
'- 适用:纯静态 HTML/CSS/JS 项目、静态网站\n' +
|
|
11
11
|
'- 使用 Python http.server 作为开发服务器\n' +
|
|
12
12
|
'- 不需要 Node.js 环境,适合简单静态内容',
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
### 启动开发服务器
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
coze dev
|
|
10
|
+
coze-dev dev
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
启动后,在浏览器中打开 [http://localhost:<%= port %>](http://localhost:<%= port %>) 查看应用。
|
|
@@ -17,13 +17,13 @@ coze dev
|
|
|
17
17
|
### 构建生产版本
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
coze build
|
|
20
|
+
coze-dev build
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
### 启动生产服务器
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
coze start
|
|
26
|
+
coze-dev start
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
## 项目结构
|
|
@@ -7,6 +7,6 @@ cd "${COZE_WORKSPACE_PATH}"
|
|
|
7
7
|
|
|
8
8
|
echo "Installing dependencies..."
|
|
9
9
|
pnpm install --prefer-frozen-lockfile --prefer-offline --loglevel debug --reporter=append-only
|
|
10
|
-
if command -v coze > /dev/null 2>&1 && coze check-bins --help > /dev/null 2>&1; then
|
|
11
|
-
coze check-bins --fix
|
|
10
|
+
if command -v coze-dev > /dev/null 2>&1 && coze-dev check-bins --help > /dev/null 2>&1; then
|
|
11
|
+
coze-dev check-bins --fix
|
|
12
12
|
fi
|
|
@@ -9,7 +9,7 @@ import { appendFileSync, openSync, closeSync, mkdirSync } from 'fs';
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
const description = `Next.js(复杂项目):\`coze init \${COZE_WORKSPACE_PATH} --template nextjs\`
|
|
12
|
+
const description = `Next.js(复杂项目):\`coze-dev init \${COZE_WORKSPACE_PATH} --template nextjs\`
|
|
13
13
|
- 适用:全栈应用、复杂多页面等复杂项目
|
|
14
14
|
- 使用默认nextjs项目规范
|
|
15
15
|
- **目录规范**: 默认开启src目录(打开--src-dir选项):项目文件(如 app 目录、pages 目录、components 等)初始化到 src/ 目录下。
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@nuxt/image": "^1.8.1",
|
|
21
|
-
"nuxt": "
|
|
21
|
+
"nuxt": "4.4.8",
|
|
22
22
|
"tailwind-merge": "^2.6.0",
|
|
23
23
|
"vue": "^3.5.30",
|
|
24
24
|
"vue-router": "^4.6.4"
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"stylelint": "^16.4.0",
|
|
37
37
|
"stylelint-config-standard": "^38.0.0",
|
|
38
38
|
"tailwindcss": "^3.4.17",
|
|
39
|
-
"typescript": "
|
|
39
|
+
"typescript": "5.9.3",
|
|
40
|
+
"vue-tsc": "3.3.9",
|
|
40
41
|
"typescript-eslint": "^8"
|
|
41
42
|
},
|
|
42
43
|
"packageManager": "pnpm@9.0.0",
|