@coze-arch/cli 0.0.14 → 0.0.15-alpha.511af9

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.
@@ -5,6 +5,7 @@ requires = ["nodejs-24"]
5
5
  [dev]
6
6
  build = ["bash", ".cozeproj/scripts/dev_build.sh"]
7
7
  run = ["bash", ".cozeproj/scripts/dev_run.sh"]
8
+ validate = ["bash", ".cozeproj/scripts/validate.sh"]
8
9
 
9
10
  [deploy]
10
11
  build = ["bash", ".cozeproj/scripts/prod_build.sh"]
@@ -0,0 +1,8 @@
1
+ #!/bin/bash
2
+ set -Eeuo pipefail
3
+
4
+ cd "${COZE_WORKSPACE_PATH:-$(pwd)}"
5
+
6
+ echo "🔍 Running validate..."
7
+ pnpm validate
8
+ echo "✅ Validate passed!"
@@ -9,7 +9,8 @@
9
9
  "preinstall": "npx only-allow pnpm",
10
10
  "lint:client": "npm run lint --prefix ./client",
11
11
  "lint:server": "npm run lint --prefix ./server",
12
- "lint:all": "npm run lint --prefix ./client; npm run lint --prefix ./server"
12
+ "lint:all": "npm run lint --prefix ./client; npm run lint --prefix ./server",
13
+ "validate": "pnpm run --parallel '/^(lint:client|lint:server)$/'"
13
14
  },
14
15
  "dependencies": {},
15
16
  "devDependencies": {},
@@ -4,6 +4,7 @@ requires = ["nodejs-24"]
4
4
  [dev]
5
5
  build = ["bash", "./scripts/prepare.sh"]
6
6
  run = ["bash", "./scripts/dev.sh"]
7
+ validate = ["bash", "./scripts/validate.sh"]
7
8
  deps = ["git"] # -> apt install git
8
9
 
9
10
  [deploy]
@@ -7,8 +7,10 @@
7
7
  "dev": "bash ./scripts/dev.sh",
8
8
  "preinstall": "npx only-allow pnpm",
9
9
  "lint": "eslint",
10
+ "lint:build": "eslint . --quiet",
10
11
  "start": "bash ./scripts/start.sh",
11
- "ts-check": "tsc -p tsconfig.json"
12
+ "ts-check": "tsc -p tsconfig.json",
13
+ "validate": "pnpm run --parallel '/^(ts-check|lint:build)$/'"
12
14
  },
13
15
  "dependencies": {
14
16
  "@aws-sdk/client-s3": "^3.958.0",
@@ -7,3 +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
12
+ fi
@@ -0,0 +1,10 @@
1
+ #!/bin/bash
2
+ set -Eeuo pipefail
3
+
4
+ COZE_WORKSPACE_PATH="${COZE_WORKSPACE_PATH:-$(pwd)}"
5
+
6
+ cd "${COZE_WORKSPACE_PATH}"
7
+
8
+ echo "🔍 Running validate..."
9
+ pnpm validate
10
+ echo "✅ Validate passed!"
@@ -4,6 +4,7 @@ requires = ["nodejs-24"]
4
4
  [dev]
5
5
  build = ["bash", "./scripts/prepare.sh"]
6
6
  run = ["bash", "./scripts/dev.sh"]
7
+ validate = ["bash", "./scripts/validate.sh"]
7
8
  deps = ["git"] # -> apt install git
8
9
 
9
10
  [deploy]
@@ -0,0 +1,25 @@
1
+ import eslint from '@eslint/js';
2
+ import tseslint from 'typescript-eslint';
3
+ import pluginVue from 'eslint-plugin-vue';
4
+ import { defineConfig, globalIgnores } from 'eslint/config';
5
+
6
+ export default defineConfig([
7
+ eslint.configs.recommended,
8
+ ...tseslint.configs.recommended,
9
+ ...pluginVue.configs['flat/recommended'],
10
+ {
11
+ files: ['**/*.vue'],
12
+ languageOptions: {
13
+ parserOptions: {
14
+ parser: tseslint.parser,
15
+ },
16
+ },
17
+ },
18
+ globalIgnores([
19
+ '.nuxt/**',
20
+ '.output/**',
21
+ 'dist/**',
22
+ 'node_modules/**',
23
+ 'scripts/**',
24
+ ]),
25
+ ]);
@@ -8,8 +8,12 @@
8
8
  "dev": "bash ./scripts/dev.sh",
9
9
  "generate": "nuxt generate",
10
10
  "preinstall": "npx only-allow pnpm",
11
+ "lint": "eslint .",
12
+ "lint:build": "eslint . --quiet",
11
13
  "preview": "nuxt preview",
12
- "start": "bash ./scripts/start.sh"
14
+ "start": "bash ./scripts/start.sh",
15
+ "ts-check": "nuxi typecheck",
16
+ "validate": "pnpm run --parallel '/^(ts-check|lint:build)$/'"
13
17
  },
14
18
  "dependencies": {
15
19
  "@nuxt/image": "^1.8.1",
@@ -23,10 +27,13 @@
23
27
  "@types/node": "^20",
24
28
  "autoprefixer": "^10.4.20",
25
29
  "coze-coding-dev-sdk": "^0.7.16",
30
+ "eslint": "^9",
31
+ "eslint-plugin-vue": "^10",
26
32
  "only-allow": "^1.2.2",
27
33
  "postcss": "^8.4.49",
28
34
  "tailwindcss": "^3.4.17",
29
- "typescript": "^5"
35
+ "typescript": "^5",
36
+ "typescript-eslint": "^8"
30
37
  },
31
38
  "packageManager": "pnpm@9.0.0",
32
39
  "engines": {