@kmlckj/licos-ai-cli 1.0.19 → 1.0.21
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/.licosproj/scripts/dev_build.sh +4 -1
- package/lib/__templates__/expo/package.json +1 -1
- package/lib/__templates__/expo/template.config.js +4 -7
- package/lib/__templates__/nextjs/package.json +1 -1
- package/lib/__templates__/nextjs/pnpm-lock.yaml +11549 -12072
- package/lib/__templates__/nextjs/scripts/prepare.sh +4 -1
- package/lib/__templates__/nextjs/template.config.js +4 -7
- package/lib/__templates__/nuxt-vue/package.json +1 -1
- package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +8586 -8283
- package/lib/__templates__/nuxt-vue/scripts/prepare.sh +4 -1
- package/lib/__templates__/taro/.licosproj/scripts/dev_build.sh +4 -1
- package/lib/__templates__/taro/.licosproj/scripts/dev_run.sh +4 -1
- package/lib/__templates__/taro/config/index.ts +5 -6
- package/lib/__templates__/taro/package.json +2 -2
- package/lib/__templates__/taro/pnpm-lock.yaml +20848 -21212
- package/lib/__templates__/vite/package.json +1 -1
- package/lib/__templates__/vite/scripts/prepare.sh +4 -1
- package/lib/__templates__/vite/template.config.js +4 -7
- package/lib/cli.js +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,10 @@ PROJECT_DIR="${LICOS_PROJECT_PATH:-${LICOS_WORKSPACE_PATH:-$(pwd)}}"
|
|
|
6
6
|
cd "${PROJECT_DIR}"
|
|
7
7
|
|
|
8
8
|
echo "Installing dependencies..."
|
|
9
|
-
pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only
|
|
9
|
+
pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only || {
|
|
10
|
+
echo "Primary registry install failed; retrying with npmjs registry..."
|
|
11
|
+
pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile --reporter=append-only
|
|
12
|
+
}
|
|
10
13
|
|
|
11
14
|
echo "Preparing Nuxt project..."
|
|
12
15
|
pnpm exec nuxt prepare
|
|
@@ -6,5 +6,8 @@ PROJECT_DIR="${LICOS_PROJECT_PATH:-${LICOS_WORKSPACE_PATH:-$(pwd)}}"
|
|
|
6
6
|
cd "${PROJECT_DIR}"
|
|
7
7
|
|
|
8
8
|
echo "📦 Ensuring dependencies are installed..."
|
|
9
|
-
pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only
|
|
9
|
+
pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only || {
|
|
10
|
+
echo "Primary registry install failed; retrying with npmjs registry..."
|
|
11
|
+
pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile --reporter=append-only
|
|
12
|
+
}
|
|
10
13
|
echo "✅ Dependencies are ready."
|
|
@@ -94,7 +94,10 @@ cleanup_previous_run() {
|
|
|
94
94
|
echo "📦 Installing dependencies..."
|
|
95
95
|
if [[ ! -x "node_modules/.bin/concurrently" ]] || [[ ! -x "node_modules/.bin/tsc" ]] || [[ ! -x "node_modules/.bin/eslint" ]]; then
|
|
96
96
|
echo "📦 Dependencies are incomplete, installing..."
|
|
97
|
-
pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only
|
|
97
|
+
pnpm install --registry=https://registry.npmmirror.com --prefer-frozen-lockfile --prefer-offline --reporter=append-only || {
|
|
98
|
+
echo "Primary registry install failed; retrying with npmjs registry..."
|
|
99
|
+
pnpm install --registry=https://registry.npmjs.org --no-frozen-lockfile --reporter=append-only
|
|
100
|
+
}
|
|
98
101
|
echo "✅ Dependencies installed successfully!"
|
|
99
102
|
else
|
|
100
103
|
echo "✅ Dependencies already installed."
|
|
@@ -88,12 +88,11 @@ const parsePort = (value?: string) => {
|
|
|
88
88
|
return Number.isInteger(port) && port > 0 ? port : undefined;
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
const h5PublicPath = previewBasePath || './';
|
|
91
|
+
const externalPreviewBasePath = normalizePreviewBasePath(process.env.LICOS_PREVIEW_BASE_PATH);
|
|
92
|
+
const deployBasePath = normalizePreviewBasePath(
|
|
93
|
+
process.env.VITE_BASE_PATH || process.env.BASE_PATH,
|
|
94
|
+
);
|
|
95
|
+
const h5PublicPath = externalPreviewBasePath ? './' : deployBasePath || './';
|
|
97
96
|
|
|
98
97
|
const createPreviewHmrConfig = () => {
|
|
99
98
|
if (!process.env.LICOS_PREVIEW_BASE_PATH) {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dev:tt": "taro build --type tt --watch",
|
|
17
17
|
"dev:weapp": "taro build --type weapp --watch",
|
|
18
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",
|
|
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
20
|
"prebuild": "pnpm run ensure:deps",
|
|
21
21
|
"predev": "pnpm run ensure:deps",
|
|
22
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)}\"",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@tarojs/binding-linux-x64-musl": "4.1.9",
|
|
73
73
|
"@tarojs/cli": "4.1.9",
|
|
74
74
|
"@tarojs/plugin-generator": "4.1.9",
|
|
75
|
-
"@tarojs/plugin-mini-ci": "
|
|
75
|
+
"@tarojs/plugin-mini-ci": "4.1.9",
|
|
76
76
|
"@tarojs/vite-runner": "4.1.9",
|
|
77
77
|
"@types/minimatch": "^5",
|
|
78
78
|
"@types/react": "^18.0.0",
|