@coze-arch/cli 0.0.14-alpha.e0ee3f → 0.0.15-alpha.76f8e3
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/.coze +1 -0
- package/lib/__templates__/expo/.cozeproj/scripts/validate.sh +8 -0
- package/lib/__templates__/expo/package.json +2 -1
- package/lib/__templates__/nextjs/.coze +1 -0
- package/lib/__templates__/nextjs/package.json +3 -1
- package/lib/__templates__/nextjs/scripts/prepare.sh +3 -1
- package/lib/__templates__/nextjs/scripts/validate.sh +10 -0
- package/lib/__templates__/nuxt-vue/.coze +1 -0
- package/lib/__templates__/nuxt-vue/eslint.config.mjs +25 -0
- package/lib/__templates__/nuxt-vue/package.json +9 -2
- package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +790 -10
- package/lib/__templates__/nuxt-vue/scripts/prepare.sh +3 -0
- package/lib/__templates__/nuxt-vue/scripts/validate.sh +10 -0
- package/lib/__templates__/taro/.coze +1 -0
- package/lib/__templates__/taro/.cozeproj/scripts/validate.sh +8 -0
- package/lib/__templates__/taro/package.json +1 -1
- package/lib/__templates__/vite/.coze +1 -0
- package/lib/__templates__/vite/package.json +3 -1
- package/lib/__templates__/vite/scripts/prepare.sh +3 -0
- package/lib/__templates__/vite/scripts/validate.sh +10 -0
- package/lib/cli.js +118 -9
- package/package.json +1 -1
- package/lib/__templates__/nextjs/scripts/check-bins.js +0 -73
|
@@ -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": {},
|
|
@@ -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,4 +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
|
-
|
|
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,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": {
|