blob: af2b51adf5466f4de18b5b0c1f5e51ea421a6488 (
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
|
#!/usr/bin/env bash
cd "$(dirname $0)"
CMD="$1"
PROJECT="tabata-timer"
if [ "$CMD" = "start" ]; then
nix-shell --run "make node_modules && tmuxinator local"
elif [ "$CMD" = "stop" ]; then
nix-shell --run "tmux kill-session -t $PROJECT"
elif [ "$CMD" = "watch-ocaml" ]; then
bsb -make-world -w
elif [ "$CMD" = "watch-js" ]; then
node_modules/.bin/rollup --watch --config rollup.config.js
else
echo "Usage: $0 start|stop|watch-ocaml|watch-js"
exit 1
fi
|