1
0
mirror of https://codeberg.org/setop/elm-scripting synced 2025-11-08 21:49:57 +00:00

first working implementation

This commit is contained in:
2025-09-26 00:15:36 +02:00
commit 34aaeaccc1
5 changed files with 140 additions and 0 deletions

17
build.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh -eu
w1="$(mktemp out_$$_1_XXXX.js)"
elm make --optimize --output=${w1} src/Main.elm 1>&2
w2="$(mktemp out_$$_XXXX.js)"
cat dom.js ${w1} launch.js > ${w2}
rm ${w1}
qjs --std ${w2}
# if qjs fails, output file will stay for debugging, else
rm ${w2}