c4k-forgejo/build-and-move-frontend.sh

29 lines
512 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# set things
set -o nounset
set -o xtrace
set -o errexit
set -eo pipefail
# dirs
2023-06-07 10:37:27 +00:00
srcDir="/home/$USER/repo/c4k/c4k-forgejo/public/js/"
srcName="main.js"
2023-06-07 10:37:27 +00:00
targetDir="/home/$USER/repo/website/dda-io/content/templates/js/"
2023-04-21 06:56:06 +00:00
targetName="c4k-forgejo.js"
2023-06-07 10:37:27 +00:00
echo "build test"
shadow-cljs compile test
echo "test"
node target/node-tests.js
echo "build"
shadow-cljs compile frontend
echo "move and rename file"
cp $srcDir$srcName $targetDir$targetName
echo "build"
(cd $targetDir; lein ring server)