2021-11-09 23:50:18 -08:00

18 lines
278 B
Plaintext
Executable File

# Stop on errors
set -e
cd "$(dirname "$0")/.."
rm -rf dist
# Quit all background tasks when script exits
trap "kill 0" EXIT
# Run tsc once as rollup expects those files
tsc || true
npm exec -- serve -p 5001 &
npm exec -- tsc --watch &
npm exec -- rollup -c --watch &
wait