forked from pool/golang-github-prometheus-prometheus
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheus?expand=0&rev=138
28 lines
691 B
Diff
28 lines
691 B
Diff
Index: prometheus-3.5.0/web/ui/build_ui.sh
|
|
===================================================================
|
|
--- prometheus-3.5.0.orig/web/ui/build_ui.sh
|
|
+++ prometheus-3.5.0/web/ui/build_ui.sh
|
|
@@ -30,14 +30,6 @@ function buildModule() {
|
|
done
|
|
}
|
|
|
|
-function buildReactApp() {
|
|
- echo "build react-app"
|
|
- (cd react-app && npm run build)
|
|
- mkdir -p ${assetsDir}
|
|
- rm -rf ${assetsDir}/react-app
|
|
- mv ./react-app/build ${assetsDir}/react-app
|
|
-}
|
|
-
|
|
function buildMantineUI() {
|
|
echo "build mantine-ui"
|
|
npm run build -w @prometheus-io/mantine-ui
|
|
@@ -50,7 +42,6 @@ for i in "$@"; do
|
|
case ${i} in
|
|
--all)
|
|
buildModule
|
|
- buildReactApp
|
|
buildMantineUI
|
|
shift
|
|
;;
|