github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/bin/build/client-watch.sh (about) 1 #!/bin/bash 2 # Content managed by Project Forge, see [projectforge.md] for details. 3 4 ## Builds the TypeScript resources, then watches for changes via `watchexec` 5 ## Requires node and tsc available on the path 6 7 set -euo pipefail 8 dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 9 cd "$dir/../../client" 10 11 echo "Watching TypeScript compilation for [client/src]..." 12 watchexec --exts css,ts,tsx node build.js