Browse Source

大参林 pad

master
lizw 4 years ago
parent
commit
51991b20df
  1. 40
      dsl/build.sh

40
dsl/build.sh

@ -6,19 +6,23 @@ codePath=/data3/thinkingwms-ui
gitUrlArr=( gitUrlArr=(
"http://git.yvanui.com/jztd/thinkingwms-ui.git" "http://git.yvanui.com/jztd/thinkingwms-ui.git"
"http://git.yvanui.com/jztd/yvan-ext.git" "http://git.yvanui.com/jztd/yvan-ext.git"
"http://git.yvanui.com/jztd/yvan-ext-mobile.git"
) )
branchArr=( branchArr=(
"master" "master"
"master" "master"
"master"
) )
positionArr=( positionArr=(
"." "."
"yvan-ext" "yvan-ext"
"yvan-ext-mobile"
) )
# 是否需要构建,-1:自动;0:不需要;1:需要 # 是否需要构建,-1:自动;0:不需要;1:需要
needBuild=( needBuild=(
"-1" "1"
"-1" "1"
"1"
) )
echoPrefix="\033[36m+" echoPrefix="\033[36m+"
@ -86,6 +90,21 @@ buildCode() {
echo "yvan-ext 文件未变化" echo "yvan-ext 文件未变化"
fi 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
# 构建 thinkingwms-ui/client # 构建 thinkingwms-ui/client
if [ "${needBuild[2]}" != "0" ]; then if [ "${needBuild[2]}" != "0" ]; then
echo -e "$echoPrefix cd $codePath/client $echoSuffix" echo -e "$echoPrefix cd $codePath/client $echoSuffix"
@ -98,7 +117,22 @@ buildCode() {
yarn build yarn build
echo "" echo ""
else else
echo "thinkingwms-ui 文件未变化" echo "thinkingwms-ui/client 文件未变化"
fi
# 构建 thinkingwms-ui/pda-client
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 link yvan-ext-mobile $echoSuffix"
yarn link yvan-ext-mobile
echo -e "$echoPrefix yarn build $echoSuffix"
yarn build
echo ""
else
echo "thinkingwms-ui/pda-client 文件未变化"
fi fi
# 构建 java # 构建 java

Loading…
Cancel
Save