木子李·De 4 жил өмнө
parent
commit
c20802b8f4
1 өөрчлөгдсөн 16 нэмэгдсэн , 0 устгасан
  1. 16 0
      build.sh

+ 16 - 0
build.sh

@@ -0,0 +1,16 @@
+#!/bin/bash
+cd `dirname $0`
+BuildDir=`pwd` #工程根目录
+
+echo "build web"
+cd $BuildDir/report-ui
+npm install >/dev/null 2>&1
+npm run build:prod >/dev/null 2>&1
+
+echo "publish web to springboot src/main/resources/static"
+mv $BuildDir/report-ui/dist $BuildDir/report-core/src/main/resources/static
+
+
+echo "build springboot"
+cd $BuildDir/report-core
+mvn clean & package -Dmaven.test.skip=true >/dev/null 2>&1