From 438f4dc1d9bf21970452f8392a1ea0c2bab61d0c Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 18 Oct 2022 13:27:03 +0200 Subject: [PATCH] Add automation for testing browser code --- copy-and-build-dda-io.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 copy-and-build-dda-io.sh diff --git a/copy-and-build-dda-io.sh b/copy-and-build-dda-io.sh new file mode 100644 index 0000000..4449369 --- /dev/null +++ b/copy-and-build-dda-io.sh @@ -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)