diff options
Diffstat (limited to 'dev')
-rwxr-xr-x | dev | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -0,0 +1,33 @@ +#!/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 |