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

12 lines
393 B

#!/usr/bin/env zsh
cd "$(git rev-parse --show-toplevel)" || exit 1
[[ -f ./engine/envvars.sh ]] || make ./engine/envvars.sh
source ./engine/envvars.sh
direnv reload
./engine/build.sh
echo "Watching $PWD/{src,templates}"
# fswatch --exclude='\\.#' src | while read event; do
fswatch --exclude='^.*\.#.*$' src engine templates | while read event; do
echo "$event"
./engine/build.sh
done