2019-12-09 16:29:26 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-01-29 11:00:54 +01:00
|
|
|
export PENPOT_ASSERTS_ENABLED=true
|
|
|
|
|
2020-09-21 16:02:37 +02:00
|
|
|
set -ex
|
2019-12-09 16:29:26 +01:00
|
|
|
|
2020-09-07 13:38:17 +02:00
|
|
|
if [ ! -e ~/.fixtures-loaded ]; then
|
2019-12-09 16:29:26 +01:00
|
|
|
echo "Loading fixtures..."
|
2020-08-18 19:46:28 +02:00
|
|
|
clojure -Adev -X:fn-fixtures
|
2020-09-07 13:38:17 +02:00
|
|
|
touch ~/.fixtures-loaded
|
2019-12-09 16:29:26 +01:00
|
|
|
fi
|
|
|
|
|
2021-10-20 11:18:28 +02:00
|
|
|
if [ "$1" = "--watch" ]; then
|
|
|
|
echo "Start Watch..."
|
|
|
|
|
|
|
|
clojure -A:dev -M -m app.main &
|
|
|
|
PID=$!
|
|
|
|
|
|
|
|
npx nodemon \
|
|
|
|
--watch src \
|
|
|
|
--watch ../common \
|
|
|
|
--ext "clj" \
|
|
|
|
--signal SIGKILL \
|
|
|
|
--exec 'echo "(user/restart)" | nc -N localhost 6062'
|
|
|
|
|
|
|
|
kill -9 $PID
|
|
|
|
else
|
|
|
|
clojure -A:dev -M -m app.main
|
|
|
|
fi
|
|
|
|
|
2019-12-09 16:29:26 +01:00
|
|
|
|
|
|
|
|