Kaynağa Gözat

build add lmis-report-system

lizw 3 yıl önce
ebeveyn
işleme
baf0fc2ce6
1 değiştirilmiş dosya ile 22 ekleme ve 0 silme
  1. 22 0
      build.sh

+ 22 - 0
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:变化