fix(build): copy web UI output to server default path after bundling
This commit is contained in:
parent
7acdee89e1
commit
a1fc60641f
|
@ -29,8 +29,13 @@ build-shebang: build
|
||||||
|
|
||||||
bundle: build
|
bundle: build
|
||||||
node esbuild.js
|
node esbuild.js
|
||||||
|
# copy other files into output to make a complete UI
|
||||||
cp -v src/index.html out/
|
cp -v src/index.html out/
|
||||||
cp -v src/config.json out/
|
cp -v src/config.json out/
|
||||||
|
# copy everything into the server's default path
|
||||||
|
cp -v src/index.html ../api/gui/
|
||||||
|
cp -v src/config.json ../api/gui/
|
||||||
|
cp -v out/bundle/main.js ../api/gui/bundle/
|
||||||
|
|
||||||
COVER_OPTS := --all \
|
COVER_OPTS := --all \
|
||||||
--exclude ".eslintrc.js" \
|
--exclude ".eslintrc.js" \
|
||||||
|
|
Loading…
Reference in New Issue