This commit is contained in:
Tony Garnock-Jones 2021-01-23 23:38:55 +01:00
parent 2f8e1fb1ca
commit 6b72bf9d78
1 changed files with 27 additions and 0 deletions

27
watchall Executable file
View File

@ -0,0 +1,27 @@
#!/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); ../../node_modules/.bin/tsc -w"
done
for d in packages/*/rollup.config.js
do
open "cd $(dirname $d); npx rollup -c -w"
done
tmux select-layout even-vertical