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