#!/usr/bin/env bash cd "$(dirname $0)" CMD="$1" PROJECT="cooking" 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 tsc \ --watch \ --pretty \ --sourceMap \ --removeComments \ --strict \ --noUnusedLocals \ --noUnusedParameters \ --noImplicitReturns \ --outDir static \ main.ts else echo "Usage: $0 start|stop|watch-ts" exit 1 fi