UNPKG

278 BPlain TextView Raw
1# Stop on errors
2set -e
3
4cd "$(dirname "$0")/.."
5
6rm -rf dist
7
8# Quit all background tasks when script exits
9trap "kill 0" EXIT
10
11# Run tsc once as rollup expects those files
12tsc || true
13
14npm exec -- serve -p 5001 &
15npm exec -- tsc --watch &
16npm exec -- rollup -c --watch &
17wait