diff --git a/app-proto/Trunk.toml b/app-proto/Trunk.toml new file mode 100644 index 0000000..017deba --- /dev/null +++ b/app-proto/Trunk.toml @@ -0,0 +1,2 @@ +[build] +public_url = "./" \ No newline at end of file diff --git a/demo-summer-2025/.gitignore b/demo-summer-2025/.gitignore new file mode 100644 index 0000000..ce287fc --- /dev/null +++ b/demo-summer-2025/.gitignore @@ -0,0 +1,4 @@ +/dyna3/index.html +/dyna3/dyna3-*.js +/dyna3/dyna3-*.wasm +/dyna3/main-*.css \ No newline at end of file diff --git a/tools/package-demo b/tools/package-demo new file mode 100755 index 0000000..a3b7242 --- /dev/null +++ b/tools/package-demo @@ -0,0 +1,18 @@ +#!/bin/bash + +# set paths. this technique for getting the script location comes from +# `mklement0` on Stack Overflow +# +# https://stackoverflow.com/a/24114056 +# +tools=$(dirname -- "$(readlink -f -- "$BASH_SOURCE")") +dist_src="$tools/../app-proto/dist" +dist_dest="$tools/../demo-summer-2025/dyna3" + +# remove the old hash-named files +[ -e "$dist_dest"/dyna3-*.js ] && rm "$dist_dest"/dyna3-*.js +[ -e "$dist_dest"/dyna3-*.wasm ] && rm "$dist_dest"/dyna3-*.wasm +[ -e "$dist_dest"/main-*.css ] && rm "$dist_dest"/main-*.css + +# copy the distribution +cp -r "$dist_src/." "$dist_dest"