1
0

develop 326 B

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