#!/usr/bin/env bash cd "$(dirname $0)" CMD="$1" PROJECT="cooking" export DEV_MODE=true if [ "$CMD" = "start" ]; then nix-shell --run "tmuxinator local" elif [ "$CMD" = "stop" ]; then nix-shell --run "tmux kill-session -t $PROJECT" elif [ "$CMD" = "watch-ts" ]; then rm -f static/main.js while true; do find src | entr -d -s "clear && make static/main.js" done else echo "Usage: $0 start|stop|watch-frontend" exit 1 fi