aboutsummaryrefslogtreecommitdiff
path: root/dev
blob: c8742c54a9c3c76e4c71199f439cb472a5728695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/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 \
    --strict \
    --noUnusedLocals \
    --noUnusedParameters \
    --noImplicitReturns \
    --outDir static \
    main.ts

else

  echo "Usage: $0 start|stop|watch-ts"
  exit 1

fi