summaryrefslogtreecommitdiffstats
path: root/scripts/debug.sh
blob: 711df8db3719534f11b6f7fc9a8dcb63d34f0231 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

TOP_LEVEL="$(git rev-parse --show-toplevel)"
PORT="${1:-8001}"

echo ":: Watching directory src/ and serving continuous builds on http://localhost:${PORT}."
echo ":: Touch a file in src/ to compile & serve!"

# bash scripts/_build-and-serve.sh ${PORT}
fswatch -or src | xargs -n1 -I{} bash scripts/_build-and-serve.sh ${PORT}