Add automation for testing browser code

This commit is contained in:
erik 2022-10-18 13:27:03 +02:00
parent fda85c7fb0
commit 438f4dc1d9

22
copy-and-build-dda-io.sh Normal file
View file

@ -0,0 +1,22 @@
#!/usr/bin/env bash
# set things
set -o nounset
set -o xtrace
set -o errexit
set -eo pipefail
# dirs
srcDir="/home/$USER/"
srcName="main.js"
targetDir="/home/$USER/"
targetName="c4k-gitea.js"
echo "build"
shadow-cljs compile frontend
echo "move and rename file"
cp $srcDir$srcName $targetDir$targetName
echo "build"
(cd $targetDir; lein ring server)