From 24a7d2a55f85f5e9becb570bdf81575feb673af3 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Wed, 11 Jan 2023 14:28:11 +0100 Subject: [PATCH] watchall --- watchall | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 watchall diff --git a/watchall b/watchall new file mode 100755 index 0000000..57115fa --- /dev/null +++ b/watchall @@ -0,0 +1,21 @@ +#!/bin/sh + +cd $(dirname $0) + +first=y + +open() { + if [ "$first" = "y" ] + then + tmux new-window "$1" + first=n + else + tmux split-window "$1" \; select-layout tiled + fi +} + +open "yarn run regenerate:watch" +open "while true; do yarn run compile:watch; sleep 5; done" +open "yarn run rollup:watch" + +tmux select-layout even-vertical