File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ benchmark.txt
22
22
/documentation /examples /remote_storage /example_write_adapter /example_write_adapter
23
23
24
24
npm_licenses.tar.bz2
25
- /web /ui /static /react-app
26
- /web /ui /static /mantine-ui
25
+ /web /ui /static
27
26
28
27
/vendor
29
28
/.build
Original file line number Diff line number Diff line change 21
21
fi
22
22
23
23
buildOrder=(lezer-promql codemirror-promql)
24
+ assetsDir=" ./static"
24
25
25
26
function buildModule() {
26
27
for module in " ${buildOrder[@]} " ; do
@@ -32,15 +33,17 @@ function buildModule() {
32
33
function buildReactApp() {
33
34
echo " build react-app"
34
35
(cd react-app && npm run build)
35
- rm -rf ./static/react-app
36
- mv ./react-app/build ./static/react-app
36
+ mkdir -p ${assetsDir}
37
+ rm -rf ${assetsDir} /react-app
38
+ mv ./react-app/build ${assetsDir} /react-app
37
39
}
38
40
39
41
function buildMantineUI() {
40
42
echo " build mantine-ui"
41
43
npm run build -w @prometheus-io/mantine-ui
42
- rm -rf ./static/mantine-ui
43
- mv ./mantine-ui/dist ./static/mantine-ui
44
+ mkdir -p ${assetsDir}
45
+ rm -rf ${assetsDir} /mantine-ui
46
+ mv ./mantine-ui/dist ${assetsDir} /mantine-ui
44
47
}
45
48
46
49
for i in " $@ " ; do
You can’t perform that action at this time.
0 commit comments