@kmlckj/licos-ai-cli 1.0.20 → 1.0.22

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.
@@ -88,12 +88,11 @@ const parsePort = (value?: string) => {
88
88
  return Number.isInteger(port) && port > 0 ? port : undefined;
89
89
  };
90
90
 
91
- const previewBasePath = normalizePreviewBasePath(
92
- process.env.LICOS_PREVIEW_BASE_PATH ||
93
- process.env.VITE_BASE_PATH ||
94
- process.env.BASE_PATH,
91
+ const externalPreviewBasePath = normalizePreviewBasePath(process.env.LICOS_PREVIEW_BASE_PATH);
92
+ const deployBasePath = normalizePreviewBasePath(
93
+ process.env.VITE_BASE_PATH || process.env.BASE_PATH,
95
94
  );
96
- const h5PublicPath = previewBasePath || './';
95
+ const h5PublicPath = externalPreviewBasePath ? './' : deployBasePath || './';
97
96
 
98
97
  const createPreviewHmrConfig = () => {
99
98
  if (!process.env.LICOS_PREVIEW_BASE_PATH) {
@@ -1,123 +1,123 @@
1
- {
2
- "name": "<%= appName %>",
3
- "version": "1.0.0",
4
- "private": true,
5
- "description": "LICOS Mini Program Application",
6
- "scripts": {
7
- "build": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc,web,server -c red,blue,green,magenta \"pnpm lint:build\" \"pnpm tsc\" \"pnpm build:web\" \"pnpm build:server\"",
8
- "build:all": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc,web,weapp,tt,server -c red,blue,green,yellow,cyan,magenta \"pnpm lint:build\" \"pnpm tsc\" \"pnpm build:web\" \"pnpm build:weapp\" \"pnpm build:tt\" \"pnpm build:server\"",
9
- "build:pack": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n weapp,tt -c yellow,cyan \"pnpm build:weapp\" \"pnpm build:tt\"",
10
- "build:server": "pnpm --filter server build",
11
- "build:tt": "taro build --type tt",
12
- "build:weapp": "taro build --type weapp",
13
- "build:web": "taro build --type h5",
14
- "dev": "pnpm exec concurrently --kill-others --kill-signal SIGKILL -n web,server -c blue,green \"pnpm dev:web\" \"pnpm dev:server\"",
15
- "dev:server": "pnpm --filter server dev",
16
- "dev:tt": "taro build --type tt --watch",
17
- "dev:weapp": "taro build --type weapp --watch",
18
- "dev:web": "taro build --type h5 --watch",
19
- "ensure:deps": "node -e \"const fs=require('fs'); const bins=['node_modules/.bin/concurrently','node_modules/.bin/tsc','node_modules/.bin/eslint','node_modules/.bin/taro']; process.exit(bins.every((p)=>fs.existsSync(p)||fs.existsSync(p+'.cmd'))?0:1)\" || pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only || pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile --reporter=append-only",
20
- "prebuild": "pnpm run ensure:deps",
21
- "predev": "pnpm run ensure:deps",
22
- "preinstall": "node -e \"const ua=process.env.npm_config_user_agent||''; if(!ua.includes('pnpm')){console.error('Use pnpm to install dependencies.'); process.exit(1)}\"",
23
- "postinstall": "weapp-tw patch",
24
- "kill:all": "pkill -9 -f 'concurrently' 2>/dev/null || true; pkill -9 -f 'nest start' 2>/dev/null || true; pkill -9 -f 'taro build' 2>/dev/null || true; pkill -9 -f 'node.*dev' 2>/dev/null || true; echo 'All dev processes cleaned'",
25
- "lint": "eslint \"src/**/*.{js,jsx,ts,tsx,css}\"",
26
- "lint:build": "eslint \"src/**/*.{js,jsx,ts,tsx,css}\" --max-warnings=0",
27
- "lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx,css}\" --fix",
28
- "new": "taro new",
29
- "preview:tt": "taro build --type tt --preview",
30
- "preview:weapp": "taro build --type weapp --preview",
31
- "tsc": "pnpm exec tsc --noEmit --skipLibCheck",
32
- "validate": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc -c red,blue \"pnpm lint:build\" \"pnpm tsc\""
33
- },
34
- "lint-staged": {
35
- "src/**/*.{js,jsx,ts,tsx,css}": [
36
- "eslint"
37
- ]
38
- },
39
- "browserslist": [
40
- "last 3 versions",
41
- "Android >= 4.1",
42
- "ios >= 8"
43
- ],
44
- "dependencies": {
45
- "@babel/runtime": "^7.24.4",
46
- "@tarojs/components": "4.1.9",
47
- "@tarojs/helper": "4.1.9",
48
- "@tarojs/plugin-framework-react": "4.1.9",
49
- "@tarojs/plugin-platform-h5": "4.1.9",
50
- "@tarojs/plugin-platform-tt": "4.1.9",
51
- "@tarojs/plugin-platform-weapp": "4.1.9",
52
- "@tarojs/react": "4.1.9",
53
- "@tarojs/runtime": "4.1.9",
54
- "@tarojs/shared": "4.1.9",
55
- "@tarojs/taro": "4.1.9",
56
- "class-variance-authority": "^0.7.1",
57
- "clsx": "^2.1.1",
58
- "date-fns": "^4.1.0",
59
- "lucide-react-taro": "^1.4.1",
60
- "react": "^18.0.0",
61
- "react-dom": "^18.0.0",
62
- "tailwind-merge": "^3.5.0",
63
- "tailwindcss-animate": "^1.0.7",
64
- "zustand": "^5.0.9"
65
- },
66
- "devDependencies": {
67
- "@babel/core": "^7.24.4",
68
- "@babel/plugin-transform-class-properties": "7.25.9",
69
- "@babel/preset-react": "^7.24.1",
70
- "@eslint/eslintrc": "^3.3.1",
71
- "@tailwindcss/postcss": "^4.1.18",
72
- "@tarojs/binding-linux-x64-musl": "4.1.9",
73
- "@tarojs/cli": "4.1.9",
74
- "@tarojs/plugin-generator": "4.1.9",
75
- "@tarojs/plugin-mini-ci": "4.1.9",
76
- "@tarojs/vite-runner": "4.1.9",
77
- "@types/minimatch": "^5",
78
- "@types/react": "^18.0.0",
79
- "@vitejs/plugin-react": "^4.3.0",
80
- "babel-preset-taro": "4.1.9",
81
- "concurrently": "^9.2.1",
82
- "dotenv": "^17.2.3",
83
- "eslint": "^8.57.0",
84
- "eslint-config-taro": "4.1.9",
85
- "eslint-plugin-react": "^7.34.1",
86
- "eslint-plugin-react-hooks": "^4.4.0",
87
- "eslint-plugin-tailwindcss": "^3.18.2",
88
- "less": "^4.2.0",
89
- "lint-staged": "^16.1.2",
90
- "miniprogram-ci": "^2.1.26",
91
- "postcss": "^8.5.6",
92
- "react-refresh": "^0.14.0",
93
- "stylelint": "^16.4.0",
94
- "stylelint-config-standard": "^38.0.0",
95
- "tailwindcss": "^4.1.18",
96
- "terser": "^5.30.4",
97
- "tt-ide-cli": "^0.1.31",
98
- "typescript": "^5.4.5",
99
- "vite": "^4.2.0",
100
- "weapp-tailwindcss": "^4.10.3"
101
- },
102
- "packageManager": "pnpm@9.0.0",
103
- "engines": {
104
- "pnpm": ">=9.0.0"
105
- },
106
- "pnpm": {
107
- "overrides": {
108
- "confbox": "0.2.2",
109
- "decode-uri-component": "0.2.2",
110
- "regenerate-unicode-properties": "10.2.2",
111
- "reflect-metadata": "0.2.2"
112
- },
113
- "patchedDependencies": {
114
- "@tarojs/plugin-mini-ci@4.1.9": "patches/@tarojs__plugin-mini-ci@4.1.9.patch"
115
- }
116
- },
117
- "templateInfo": {
118
- "name": "default",
119
- "typescript": true,
120
- "css": "Less",
121
- "framework": "React"
122
- }
123
- }
1
+ {
2
+ "name": "<%= appName %>",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "description": "LICOS Mini Program Application",
6
+ "scripts": {
7
+ "build": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc,web,server -c red,blue,green,magenta \"pnpm lint:build\" \"pnpm tsc\" \"pnpm build:web\" \"pnpm build:server\"",
8
+ "build:all": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc,web,weapp,tt,server -c red,blue,green,yellow,cyan,magenta \"pnpm lint:build\" \"pnpm tsc\" \"pnpm build:web\" \"pnpm build:weapp\" \"pnpm build:tt\" \"pnpm build:server\"",
9
+ "build:pack": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n weapp,tt -c yellow,cyan \"pnpm build:weapp\" \"pnpm build:tt\"",
10
+ "build:server": "pnpm --filter server build",
11
+ "build:tt": "taro build --type tt",
12
+ "build:weapp": "taro build --type weapp",
13
+ "build:web": "taro build --type h5",
14
+ "dev": "pnpm exec concurrently --kill-others --kill-signal SIGKILL -n web,server -c blue,green \"pnpm dev:web\" \"pnpm dev:server\"",
15
+ "dev:server": "pnpm --filter server dev",
16
+ "dev:tt": "taro build --type tt --watch",
17
+ "dev:weapp": "taro build --type weapp --watch",
18
+ "dev:web": "taro build --type h5 --watch",
19
+ "ensure:deps": "node -e \"const fs=require('fs'); const bins=['node_modules/.bin/concurrently','node_modules/.bin/tsc','node_modules/.bin/eslint','node_modules/.bin/taro']; process.exit(bins.every((p)=>fs.existsSync(p)||fs.existsSync(p+'.cmd'))?0:1)\" || pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only || pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile --reporter=append-only",
20
+ "prebuild": "pnpm run ensure:deps",
21
+ "predev": "pnpm run ensure:deps",
22
+ "preinstall": "node -e \"const ua=process.env.npm_config_user_agent||''; if(!ua.includes('pnpm')){console.error('Use pnpm to install dependencies.'); process.exit(1)}\"",
23
+ "postinstall": "weapp-tw patch",
24
+ "kill:all": "pkill -9 -f 'concurrently' 2>/dev/null || true; pkill -9 -f 'nest start' 2>/dev/null || true; pkill -9 -f 'taro build' 2>/dev/null || true; pkill -9 -f 'node.*dev' 2>/dev/null || true; echo 'All dev processes cleaned'",
25
+ "lint": "eslint \"src/**/*.{js,jsx,ts,tsx,css}\"",
26
+ "lint:build": "eslint \"src/**/*.{js,jsx,ts,tsx,css}\" --max-warnings=0",
27
+ "lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx,css}\" --fix",
28
+ "new": "taro new",
29
+ "preview:tt": "taro build --type tt --preview",
30
+ "preview:weapp": "taro build --type weapp --preview",
31
+ "tsc": "pnpm exec tsc --noEmit --skipLibCheck",
32
+ "validate": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc -c red,blue \"pnpm lint:build\" \"pnpm tsc\""
33
+ },
34
+ "lint-staged": {
35
+ "src/**/*.{js,jsx,ts,tsx,css}": [
36
+ "eslint"
37
+ ]
38
+ },
39
+ "browserslist": [
40
+ "last 3 versions",
41
+ "Android >= 4.1",
42
+ "ios >= 8"
43
+ ],
44
+ "dependencies": {
45
+ "@babel/runtime": "^7.24.4",
46
+ "@tarojs/components": "4.1.9",
47
+ "@tarojs/helper": "4.1.9",
48
+ "@tarojs/plugin-framework-react": "4.1.9",
49
+ "@tarojs/plugin-platform-h5": "4.1.9",
50
+ "@tarojs/plugin-platform-tt": "4.1.9",
51
+ "@tarojs/plugin-platform-weapp": "4.1.9",
52
+ "@tarojs/react": "4.1.9",
53
+ "@tarojs/runtime": "4.1.9",
54
+ "@tarojs/shared": "4.1.9",
55
+ "@tarojs/taro": "4.1.9",
56
+ "class-variance-authority": "^0.7.1",
57
+ "clsx": "^2.1.1",
58
+ "date-fns": "^4.1.0",
59
+ "lucide-react-taro": "^1.4.1",
60
+ "react": "^18.0.0",
61
+ "react-dom": "^18.0.0",
62
+ "tailwind-merge": "^3.5.0",
63
+ "tailwindcss-animate": "^1.0.7",
64
+ "zustand": "^5.0.9"
65
+ },
66
+ "devDependencies": {
67
+ "@babel/core": "^7.24.4",
68
+ "@babel/plugin-transform-class-properties": "7.25.9",
69
+ "@babel/preset-react": "^7.24.1",
70
+ "@eslint/eslintrc": "^3.3.1",
71
+ "@tailwindcss/postcss": "^4.1.18",
72
+ "@tarojs/binding-linux-x64-musl": "4.1.9",
73
+ "@tarojs/cli": "4.1.9",
74
+ "@tarojs/plugin-generator": "4.1.9",
75
+ "@tarojs/plugin-mini-ci": "4.1.9",
76
+ "@tarojs/vite-runner": "4.1.9",
77
+ "@types/minimatch": "^5",
78
+ "@types/react": "^18.0.0",
79
+ "@vitejs/plugin-react": "^4.3.0",
80
+ "babel-preset-taro": "4.1.9",
81
+ "concurrently": "^9.2.1",
82
+ "dotenv": "^17.2.3",
83
+ "eslint": "^8.57.0",
84
+ "eslint-config-taro": "4.1.9",
85
+ "eslint-plugin-react": "^7.34.1",
86
+ "eslint-plugin-react-hooks": "^4.4.0",
87
+ "eslint-plugin-tailwindcss": "^3.18.2",
88
+ "less": "^4.2.0",
89
+ "lint-staged": "^16.1.2",
90
+ "miniprogram-ci": "^2.1.26",
91
+ "postcss": "^8.5.6",
92
+ "react-refresh": "^0.14.0",
93
+ "stylelint": "^16.4.0",
94
+ "stylelint-config-standard": "^38.0.0",
95
+ "tailwindcss": "^4.1.18",
96
+ "terser": "^5.30.4",
97
+ "tt-ide-cli": "^0.1.31",
98
+ "typescript": "^5.4.5",
99
+ "vite": "^4.2.0",
100
+ "weapp-tailwindcss": "^4.10.3"
101
+ },
102
+ "packageManager": "pnpm@9.0.0",
103
+ "engines": {
104
+ "pnpm": ">=9.0.0"
105
+ },
106
+ "pnpm": {
107
+ "overrides": {
108
+ "confbox": "0.2.2",
109
+ "decode-uri-component": "0.2.2",
110
+ "regenerate-unicode-properties": "10.2.2",
111
+ "reflect-metadata": "0.2.2"
112
+ },
113
+ "patchedDependencies": {
114
+ "@tarojs/plugin-mini-ci@4.1.9": "patches/@tarojs__plugin-mini-ci@4.1.9.patch"
115
+ }
116
+ },
117
+ "templateInfo": {
118
+ "name": "default",
119
+ "typescript": true,
120
+ "css": "Less",
121
+ "framework": "React"
122
+ }
123
+ }