From 25afb0bde9b8a2c064135a534231c232a461b341 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 16 Feb 2020 22:45:07 +0100 Subject: Set up a first version of tabata timer --- dev | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 dev (limited to 'dev') diff --git a/dev b/dev new file mode 100755 index 0000000..af2b51a --- /dev/null +++ b/dev @@ -0,0 +1,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 -- cgit v1.2.3