From baf0fc2ce600d2150dca8eb3c0b76f4f5f80cfae Mon Sep 17 00:00:00 2001 From: lizw Date: Tue, 30 Nov 2021 10:30:29 +0800 Subject: [PATCH] build add lmis-report-system --- build.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/build.sh b/build.sh index 1688044..23008db 100644 --- a/build.sh +++ b/build.sh @@ -12,6 +12,7 @@ gitUrlArr=( "www@git.yvanui.com:jztd/yvan-ext.git" "www@git.yvanui.com:jztd/wms8.git" "www@git.yvanui.com:jztd/yvan-studio.git" + "www@git.yvanui.com:jztd/lmis-report-system.git" ) branchArr=( "master" @@ -20,6 +21,7 @@ branchArr=( "master" "master" "master" + "master" ) positionArr=( "." @@ -28,6 +30,7 @@ positionArr=( "yvan-ext" "wms8" "yvan-studio" + "lmis-report-system" ) # 是否需要构建,-1:自动;0:不需要;1:需要 needBuild=( @@ -37,6 +40,7 @@ needBuild=( "-1" "-1" "-1" +"-1" ) echoPrefix="\033[36m+" @@ -88,6 +92,21 @@ buildCode() { echo "lmis 文件未变化" fi + # 构建 lmis-report-system/client + if [ "${needBuild[2]}" != "0" ]; then + echo -e "$echoPrefix cd lmis-report-system/client $echoSuffix" + cd "$codePath/lmis-report-system/client" + echo -e "$echoPrefix yarn $echoSuffix" + yarn + echo -e "$echoPrefix yarn link yvan-ext $echoSuffix" + yarn link yvan-ext + echo -e "$echoPrefix yarn build $echoSuffix" + yarn build + echo "" + else + echo "lmis-report-system 文件未变化" + fi + # 构建 java echo -e "$echoPrefix cd $codePath $echoSuffix" cd $codePath @@ -150,6 +169,9 @@ deployPush() { echo "文件未变化不需要push" fi echo "" + + + } isChange="1" # 仓库是否发生变化,0未:变化;非0:变化