@coze-arch/cli 0.0.7-alpha.196f15 → 0.0.7-alpha.e6346c

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.
@@ -40,6 +40,13 @@
40
40
  - 安装所有依赖:`pnpm install`
41
41
  - 移除依赖:`pnpm remove <package>`
42
42
 
43
+ ## 验证规范
44
+
45
+ 每次开发完成后,都需要执行以下验证:
46
+
47
+ - **静态检查**:`pnpm check:all`
48
+
49
+
43
50
  ## 开发规范
44
51
 
45
52
  - **项目理解加速**:初始可以依赖项目下`package.json`文件理解项目类型,如果没有或无法理解退化成阅读其他文件。
@@ -4,6 +4,7 @@
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "build": "bash ./scripts/build.sh",
7
+ "check:all": "run-p build lint ts-check",
7
8
  "dev": "bash ./scripts/dev.sh",
8
9
  "preinstall": "npx only-allow pnpm",
9
10
  "lint": "eslint",
@@ -78,6 +79,7 @@
78
79
  "@types/react-dom": "^19",
79
80
  "eslint": "^9",
80
81
  "eslint-config-next": "16.1.1",
82
+ "npm-run-all2": "^8.0.4",
81
83
  "only-allow": "^1.2.2",
82
84
  "react-dev-inspector": "^2.0.1",
83
85
  "shadcn": "latest",
@@ -9,9 +9,9 @@ echo "Installing dependencies..."
9
9
  pnpm install --prefer-frozen-lockfile --prefer-offline --loglevel debug --reporter=append-only
10
10
 
11
11
  echo "Building the Next.js project..."
12
- pnpm next build
12
+ npx next build
13
13
 
14
14
  echo "Bundling server with tsup..."
15
- pnpm tsup src/server.ts --format cjs --platform node --target node20 --outDir dist --no-splitting --no-minify
15
+ npx tsup src/server.ts --format cjs --platform node --target node20 --outDir dist --no-splitting --no-minify
16
16
 
17
17
  echo "Build completed successfully!"
@@ -36,4 +36,4 @@ echo "Clearing port ${PORT} before start."
36
36
  kill_port_if_listening
37
37
  echo "Starting HTTP service on port ${PORT} for dev..."
38
38
 
39
- PORT=$PORT pnpm tsx watch src/server.ts
39
+ PORT=$PORT npx tsx watch src/server.ts
@@ -37,6 +37,13 @@
37
37
  - 安装所有依赖:`pnpm install`
38
38
  - 移除依赖:`pnpm remove <package>`
39
39
 
40
+ ## 验证规范
41
+
42
+ 每次开发完成后,都需要执行以下验证:
43
+
44
+ - **静态检查**:`pnpm check:all`
45
+
46
+
40
47
  ## 开发规范
41
48
 
42
49
  - 使用 Tailwind CSS 进行样式开发
@@ -0,0 +1,12 @@
1
+ import withNuxt from './.nuxt/eslint.config.mjs';
2
+ import { globalIgnores } from 'eslint/config';
3
+
4
+ export default withNuxt(
5
+ globalIgnores([
6
+ '.nuxt/**',
7
+ '.output/**',
8
+ 'dist/**',
9
+ 'node_modules/**',
10
+ 'scripts/**/*.js',
11
+ ]),
12
+ );
@@ -5,11 +5,14 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "bash ./scripts/build.sh",
8
+ "check:all": "run-p build lint ts-check",
8
9
  "dev": "bash ./scripts/dev.sh",
9
10
  "generate": "nuxt generate",
11
+ "lint": "eslint",
10
12
  "preinstall": "npx only-allow pnpm",
11
13
  "preview": "nuxt preview",
12
- "start": "bash ./scripts/start.sh"
14
+ "start": "bash ./scripts/start.sh",
15
+ "ts-check": "nuxt typecheck"
13
16
  },
14
17
  "dependencies": {
15
18
  "@nuxt/image": "^1.8.1",
@@ -19,10 +22,13 @@
19
22
  "vue-router": "^4.6.4"
20
23
  },
21
24
  "devDependencies": {
25
+ "@nuxt/eslint": "^1.5.0",
22
26
  "@nuxtjs/tailwindcss": "^6.14.0",
23
27
  "@types/node": "^20",
24
28
  "autoprefixer": "^10.4.20",
25
29
  "coze-coding-dev-sdk": "^0.7.16",
30
+ "eslint": "^9",
31
+ "npm-run-all2": "^8.0.4",
26
32
  "only-allow": "^1.2.2",
27
33
  "postcss": "^8.4.49",
28
34
  "tailwindcss": "^3.4.17",
@@ -9,6 +9,6 @@ echo "Installing dependencies..."
9
9
  pnpm install --prefer-frozen-lockfile --prefer-offline --loglevel debug --reporter=append-only
10
10
 
11
11
  echo "Building the Nuxt.js project..."
12
- pnpm nuxt build
12
+ npx nuxt build
13
13
 
14
14
  echo "Build completed successfully!"
@@ -36,4 +36,4 @@ echo "Clearing port ${PORT} before start."
36
36
  kill_port_if_listening
37
37
  echo "Starting Nuxt dev server on port ${PORT}..."
38
38
 
39
- PORT=$PORT pnpm nuxt dev
39
+ PORT=$PORT npx nuxt dev
@@ -36,6 +36,13 @@
36
36
  - 安装所有依赖:`pnpm install`
37
37
  - 移除依赖:`pnpm remove <package>`
38
38
 
39
+ ## 验证规范
40
+
41
+ 每次开发完成后,都需要执行以下验证:
42
+
43
+ - **静态检查**:`pnpm check:all`
44
+
45
+
39
46
  ## 开发规范
40
47
 
41
48
  - 使用 Tailwind CSS 进行样式开发
@@ -4,6 +4,7 @@
4
4
  "description": "Vanilla TypeScript application with Express + Vite (HTML + CSS + TS + Node API)",
5
5
  "scripts": {
6
6
  "build": "bash ./scripts/build.sh",
7
+ "check:all": "run-p build lint ts-check",
7
8
  "dev": "bash ./scripts/dev.sh",
8
9
  "preinstall": "npx only-allow pnpm",
9
10
  "lint": "eslint",
@@ -22,6 +23,7 @@
22
23
  "coze-coding-dev-sdk": "^0.7.16",
23
24
  "esbuild": "^0.24.2",
24
25
  "eslint": "^9",
26
+ "npm-run-all2": "^8.0.4",
25
27
  "only-allow": "^1.2.2",
26
28
  "postcss": "^8.4.49",
27
29
  "tailwindcss": "^3.4.17",
@@ -9,9 +9,9 @@ echo "Installing dependencies..."
9
9
  pnpm install --prefer-frozen-lockfile --prefer-offline --loglevel debug --reporter=append-only
10
10
 
11
11
  echo "Building frontend with Vite..."
12
- pnpm vite build
12
+ npx vite build
13
13
 
14
14
  echo "Bundling server with tsup..."
15
- pnpm tsup server/server.ts --format cjs --platform node --target node20 --outDir dist-server --no-splitting --no-minify --external vite
15
+ npx tsup server/server.ts --format cjs --platform node --target node20 --outDir dist-server --no-splitting --no-minify --external vite
16
16
 
17
17
  echo "Build completed successfully!"
@@ -36,4 +36,4 @@ echo "Clearing port ${PORT} before start."
36
36
  kill_port_if_listening
37
37
  echo "Starting express + Vite dev server on port ${PORT}..."
38
38
 
39
- PORT=$PORT pnpm tsx watch server/server.ts
39
+ PORT=$PORT npx tsx watch server/server.ts
package/lib/cli.js CHANGED
@@ -2105,7 +2105,7 @@ const EventBuilder = {
2105
2105
  };
2106
2106
 
2107
2107
  var name = "@coze-arch/cli";
2108
- var version = "0.0.7-alpha.196f15";
2108
+ var version = "0.0.7-alpha.e6346c";
2109
2109
  var description = "coze coding devtools cli";
2110
2110
  var license = "MIT";
2111
2111
  var author = "fanwenjie.fe@bytedance.com";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coze-arch/cli",
3
- "version": "0.0.7-alpha.196f15",
3
+ "version": "0.0.7-alpha.e6346c",
4
4
  "private": false,
5
5
  "description": "coze coding devtools cli",
6
6
  "license": "MIT",