#!/usr/bin/env bash set -euo function finish { if [ -n "$LIVE_SERVER_PID" ]; then kill "$LIVE_SERVER_PID" > /dev/null 2>&1 fi } trap finish EXIT (cd public; python -m SimpleHTTPServer) & LIVE_SERVER_PID="$!" make build || true watchman-make \ --pattern 'src/**' elm-package.json Makefile public/style/main.css \ --target "build" \ --settle 0.5