|
|
|
@ -2,27 +2,23 @@ |
|
|
|
#set -x |
|
|
|
set -e |
|
|
|
|
|
|
|
codePath=/data3/yvan-framework |
|
|
|
codePath=/data3/thinkingwms-ui |
|
|
|
gitUrlArr=( |
|
|
|
"http://git.yvanui.com/yvan-private/yvan-framework.git" |
|
|
|
"http://git.yvanui.com/jztd/yvan-ext.git" |
|
|
|
"http://git.yvanui.com/jztd/thinkingwms-ui.git" |
|
|
|
"http://git.yvanui.com/jztd/yvan-ext.git" |
|
|
|
) |
|
|
|
branchArr=( |
|
|
|
"master" |
|
|
|
"master" |
|
|
|
"master" |
|
|
|
) |
|
|
|
positionArr=( |
|
|
|
"." |
|
|
|
"yvan-ext" |
|
|
|
"thinkingwms-ui" |
|
|
|
) |
|
|
|
# 是否需要构建,-1:自动;0:不需要;1:需要 |
|
|
|
needBuild=( |
|
|
|
"-1" |
|
|
|
"-1" |
|
|
|
"-1" |
|
|
|
) |
|
|
|
|
|
|
|
echoPrefix="\033[36m+" |
|
|
|
@ -92,8 +88,8 @@ buildCode() { |
|
|
|
|
|
|
|
# 构建 thinkingwms-ui/client |
|
|
|
if [ "${needBuild[2]}" != "0" ]; then |
|
|
|
echo -e "$echoPrefix cd $codePath/thinkingwms-ui/client $echoSuffix" |
|
|
|
cd "$codePath/thinkingwms-ui/client" |
|
|
|
echo -e "$echoPrefix cd $codePath/client $echoSuffix" |
|
|
|
cd "$codePath/client" |
|
|
|
echo -e "$echoPrefix yarn $echoSuffix" |
|
|
|
yarn |
|
|
|
echo -e "$echoPrefix yarn link yvan-ext $echoSuffix" |
|
|
|
|