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