wujie应用联调
This commit is contained in:
1 parent
0784f30e23
commit
f3ca996116
35 files changed
+1590
-334
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
# 离线安装 wujie 相关依赖(内网无网环境)。
|
||||
# bash ./install-offline.sh
|
||||
#
|
||||
# 依赖集(已全部打进同目录 .tgz,无其他传递依赖;vue 为已存在的 peer):
|
||||
# wujie-vue3@2.0.2 -> wujie@2.0.2 -> @babel/runtime@7.29.7
|
||||
set -euo pipefail
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJ="$(cd "$DIR/../.." && pwd)"
|
||||
|
||||
# 依赖在前、消费方在后,便于本地 tarball 互相满足 semver 范围(不触网)。
|
||||
TGZ=(
|
||||
"$DIR/babel-runtime-7.29.7.tgz"
|
||||
"$DIR/wujie-2.0.2.tgz"
|
||||
"$DIR/wujie-vue3-2.0.2.tgz"
|
||||
)
|
||||
|
||||
cd "$PROJ"
|
||||
if command -v pnpm >/dev/null 2>&1; then
|
||||
echo "[offline] 使用 pnpm 离线安装 wujie 依赖 ..."
|
||||
pnpm add --offline "${TGZ[@]}"
|
||||
else
|
||||
echo "[offline] 未找到 pnpm,改用 npm 离线安装 ..."
|
||||
npm install --offline "${TGZ[@]}"
|
||||
fi
|
||||
echo "[offline] 完成。可运行 'pnpm dev' / 'npm run dev' 验证。"
|
||||
Reference in new issue
Block a user