mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
23 lines
426 B
Bash
Executable file
23 lines
426 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
export PENPOT_FLAGS="$PENPOT_FLAGS enable-asserts"
|
|
|
|
set -ex
|
|
|
|
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
|