aboutsummaryrefslogtreecommitdiff
path: root/dev
blob: b7eddfe610ccc7d88c277edfa95660cfbe4e9df0 (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
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