From d436925474071bc004586f91554a8b9cd203e481 Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Mon, 8 Jul 2024 10:10:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=8F=82=E6=9E=97-=E5=93=88=E5=B0=94?= =?UTF-8?q?=E6=BB=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hua_wei_yun/13haerbing-test_build.sh | 66 ++++++++++++++++++------------------ 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/hua_wei_yun/13haerbing-test_build.sh b/hua_wei_yun/13haerbing-test_build.sh index dd677dd..c7b4196 100644 --- a/hua_wei_yun/13haerbing-test_build.sh +++ b/hua_wei_yun/13haerbing-test_build.sh @@ -85,42 +85,42 @@ echo "###--代码更新完成--------------------------------------------------- echo "" buildCode() { -# # 构建 yvan-ext -# if [ "${needBuild[1]}" != "0" ]; then -# echo -e "$echoPrefix cd $codePath/yvan-ext $echoSuffix" -# cd "$codePath/yvan-ext" -# echo -e "$echoPrefix yarn $echoSuffix" -# yarn -# echo -e "$echoPrefix yarn link $echoSuffix" -# yarn link -# echo -e "$echoPrefix yarn build $echoSuffix" -# yarn build -# echo "" -# else -# echo "yvan-ext 文件未变化" -# fi -# -# # 构建 yvan-ext-mobile -# if [ "${needBuild[1]}" != "0" ]; then -# echo -e "$echoPrefix cd $codePath/yvan-ext-mobile $echoSuffix" -# cd "$codePath/yvan-ext-mobile" -# echo -e "$echoPrefix yarn $echoSuffix" -# yarn -# echo -e "$echoPrefix yarn link $echoSuffix" -# yarn link -# echo -e "$echoPrefix yarn build $echoSuffix" -# yarn build -# echo "" -# else -# echo "yvan-ext-mobile 文件未变化" -# fi + # 构建 yvan-ext + if [ "${needBuild[1]}" != "0" ]; then + echo -e "$echoPrefix cd $codePath/yvan-ext $echoSuffix" + cd "$codePath/yvan-ext" + echo -e "$echoPrefix yarn --network-timeout 1000 $echoSuffix" + yarn --network-timeout 1000 + echo -e "$echoPrefix yarn link $echoSuffix" + yarn link + echo -e "$echoPrefix yarn build $echoSuffix" + yarn build + echo "" + else + echo "yvan-ext 文件未变化" + fi + + # 构建 yvan-ext-mobile + if [ "${needBuild[1]}" != "0" ]; then + echo -e "$echoPrefix cd $codePath/yvan-ext-mobile $echoSuffix" + cd "$codePath/yvan-ext-mobile" + echo -e "$echoPrefix yarn --network-timeout 1000 $echoSuffix" + yarn --network-timeout 1000 + echo -e "$echoPrefix yarn link $echoSuffix" + yarn link + echo -e "$echoPrefix yarn build $echoSuffix" + yarn build + echo "" + else + echo "yvan-ext-mobile 文件未变化" + fi # 构建 thinkingwms-ui/client if [ "${needBuild[2]}" != "0" ]; then echo -e "$echoPrefix cd $codePath/client $echoSuffix" cd "$codePath/client" - echo -e "$echoPrefix yarn $echoSuffix" - yarn + echo -e "$echoPrefix yarn --network-timeout 1000 $echoSuffix" + yarn --network-timeout 1000 echo -e "$echoPrefix yarn link yvan-ext $echoSuffix" yarn link yvan-ext echo -e "$echoPrefix yarn build $echoSuffix" @@ -134,8 +134,8 @@ buildCode() { if [ "${needBuild[2]}" != "0" ]; then echo -e "$echoPrefix cd $codePath/pda-client $echoSuffix" cd "$codePath/pda-client" - echo -e "$echoPrefix yarn $echoSuffix" - yarn + echo -e "$echoPrefix yarn --network-timeout 1000 $echoSuffix" + yarn --network-timeout 1000 echo -e "$echoPrefix yarn link yvan-ext-mobile $echoSuffix" yarn link yvan-ext-mobile echo -e "$echoPrefix yarn build $echoSuffix"