house/watchall

22 lines
326 B
Bash
Executable File

#!/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 "yarn run compile:watch"
open "yarn run rollup:watch"
tmux select-layout even-vertical