From d1135ff55db85ef81bbe2bd8f283cdbbd5464298 Mon Sep 17 00:00:00 2001 From: Joris Date: Mon, 13 Jul 2020 21:30:32 +0200 Subject: Show map and add marks with right click --- dev | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 dev (limited to 'dev') diff --git a/dev b/dev new file mode 100755 index 0000000..178fe6f --- /dev/null +++ b/dev @@ -0,0 +1,28 @@ +#!/usr/bin/env bash +set -euo pipefail +cd "$(dirname $0)" +CMD="$1" +PROJECT="map" + +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