#!/bin/bash
## Builds the client app using `build-client`, then watches for changes in `client`'s code.
## Requires fswatch
set -e
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
project_dir=${dir}/..
cd $project_dir
bin/build-client
fswatch -o -r crates/core crates/client --exclude=crates/client/pkg --exclude=crates/client/www/dist | xargs -n1 -I{} bin/build-client