mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-04-19 13:17:20 +00:00
21 lines
326 B
Plaintext
Executable File
21 lines
326 B
Plaintext
Executable File
# Stop on errors
|
|
set -e
|
|
|
|
if [ -z "$PORT" ]; then
|
|
PORT=5001
|
|
fi
|
|
|
|
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
|
|
npm exec -- tsc || true
|
|
|
|
npm exec -- serve -p "$PORT" &
|
|
npm exec -- tsc --watch &
|
|
npm exec -- rollup -c --watch
|