From c20802b8f4306d372d602b55982081f05231f958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=AD=90=E6=9D=8E=C2=B7De?= Date: Mon, 19 Jul 2021 00:02:27 +0800 Subject: [PATCH] Create build.sh --- build.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 00000000..add40303 --- /dev/null +++ b/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