2022-10-18 11:09:13 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# set things
|
|
|
|
set -o nounset
|
|
|
|
set -o xtrace
|
|
|
|
set -o errexit
|
|
|
|
set -eo pipefail
|
|
|
|
|
|
|
|
# dirs
|
2022-10-21 09:33:25 +00:00
|
|
|
srcDir="/home/$USER/repo/c4k/c4k-website/public/js/"
|
2022-10-18 11:09:13 +00:00
|
|
|
srcName="main.js"
|
2022-10-21 09:33:25 +00:00
|
|
|
targetDir="/home/$USER/repo/website/dda-io/content/templates/js/"
|
2022-10-18 11:09:13 +00:00
|
|
|
targetName="c4k-website.js"
|
|
|
|
|
|
|
|
echo "build"
|
|
|
|
shadow-cljs compile frontend
|
|
|
|
|
|
|
|
echo "move and rename file"
|
|
|
|
cp $srcDir$srcName $targetDir$targetName
|
|
|
|
|
|
|
|
echo "build"
|
|
|
|
(cd $targetDir; lein ring server)
|