Add automation for testing browser code
This commit is contained in:
parent
fda85c7fb0
commit
438f4dc1d9
1 changed files with 22 additions and 0 deletions
22
copy-and-build-dda-io.sh
Normal file
22
copy-and-build-dda-io.sh
Normal 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)
|
Loading…
Reference in a new issue