You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
syndicate-js/watchall

28 lines
417 B
Bash

#!/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
}
for d in packages/*/tsconfig.json
do
open "cd $(dirname $d); yarn compile:watch"
done
for d in packages/*/rollup.config.js
do
open "cd $(dirname $d); yarn rollup:watch"
done
tmux select-layout even-vertical