chore: build standalone page

This commit is contained in:
2025-10-05 01:28:49 +02:00
parent 9fc21c0f03
commit 1bf78299c8
4 changed files with 31 additions and 18 deletions

8
build.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash -eu
elm make --optimize --output=js/miu-demo.js src/Miu.elm
{ cat js/jquery.js js/jquery.markitup.js js/custom-element-markitup.js js/miu-demo.js ; echo 'Elm.Miu.init({node: document.getElementById("elm")});'; } | google-closure-compiler -W QUIET > out.js
sh <(awk -f qq.awk miu-demo.qq.html | sed '1s/%%%/"%%%"/') > index.html