diff --git a/wms8/build.sh b/wms8/build.sh index f7f10bc..0555051 100644 --- a/wms8/build.sh +++ b/wms8/build.sh @@ -8,6 +8,7 @@ gitUrlArr=( "http://git.yvanui.com/jztd/yvan-ext.git" "www@git.yvanui.com:lizhiwei/yvan-framework.git" "http://git.galaxis.yvanui.com/wms8/wms-core.git" + "http://git.yvanui.com/jztd/yvan-ext-mobile.git" ) branchArr=( @@ -15,12 +16,14 @@ branchArr=( "master" "master" "master" + "master" ) positionArr=( "." "yvan-ext" "yvan-framework" "wms-core" + "yvan-ext-mobile" ) # 是否需要构建,-1:自动;0:不需要;1:需要 needBuild=( @@ -28,6 +31,7 @@ needBuild=( "-1" "-1" "-1" +"-1" ) echoPrefix="\033[36m+" @@ -95,6 +99,21 @@ buildCode() { echo "yvan-ext 文件未变化" fi + # 构建 yvan-ext-mobile + if [ "${needBuild[4]}" != "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 + # 构建 wms-biz/bundle if [ "${needBuild[0]}" != "0" ]; then echo -e "$echoPrefix cd $codePath/wms-biz/bundle $echoSuffix" @@ -110,6 +129,21 @@ buildCode() { echo "wms-biz/bundle 文件未变化" fi + # 构建 wms-biz/pda-client + if [ "${needBuild[0]}" != "0" ]; then + echo -e "$echoPrefix cd $codePath/wms-biz/pda-client $echoSuffix" + cd "$codePath/wms-biz/pda-client" + echo -e "$echoPrefix yarn $echoSuffix" + yarn + echo -e "$echoPrefix yarn link yvan-ext-mobile $echoSuffix" + yarn link yvan-ext + echo -e "$echoPrefix yarn build $echoSuffix" + yarn build + echo "" + else + echo "wms-biz/pda-client 文件未变化" + fi + # 构建 java echo -e "$echoPrefix cd $codePath $echoSuffix" cd $codePath