aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-webui
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-06-29 11:53:59 -0300
committerSebastian <sebasjm@gmail.com>2022-06-29 11:54:34 -0300
commitda024a4b92e69e4b19a9fd01eea34571eef4cbdc (patch)
tree3983beb5e55fa278099fd2a3b9f594ccab47f6ee /packages/anastasis-webui
parent257f4e9a8e7bf0c6629b99d4990e584e82fc82eb (diff)
-fix sort countries
Diffstat (limited to 'packages/anastasis-webui')
-rwxr-xr-xpackages/anastasis-webui/clean_and_build.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/anastasis-webui/clean_and_build.sh b/packages/anastasis-webui/clean_and_build.sh
index dd8d0d196..a88dc9c37 100755
--- a/packages/anastasis-webui/clean_and_build.sh
+++ b/packages/anastasis-webui/clean_and_build.sh
@@ -20,7 +20,7 @@ function build_js() {
pnpm exec esbuild --log-level=error --define:process.env.__VERSION__=\"${VERSION}\" --define:process.env.__GIT_HASH__=\"${GIT_HASH}\" --bundle $1 --outdir=dist --target=es6 --loader:.svg=dataurl --format=iife --sourcemap --jsx-factory=h --jsx-fragment=Fragment --platform=browser --minify
}
-function bundle_html() {
+function build_html() {
cat html/$1.html \
| sed -e '/ANASTASIS_SCRIPT_CONTENT/ {' -e 'r dist/main.js' -e 'd' -e '}' \
| sed -e '/ANASTASIS_STYLE_CONTENT/ {' -e 'r dist/main.css' -e 'd' -e '}' \
@@ -49,8 +49,8 @@ wait -n
pnpm run --silent test -- -R dot
echo html
-bundle_html ui
-bundle_html ui-dev
+build_html ui
+build_html ui-dev
if [ "WATCH" == "$1" ]; then
@@ -61,7 +61,7 @@ if [ "WATCH" == "$1" ]; then
inotifywait -e close_write -r src -q -m | while read line; do
echo $(date) $line
build_js src/main.ts
- bundle ui-dev
+ build_html ui-dev
./watch/send.sh '{"type":"RELOAD"}'
done;
fi