blob: bbe0dbd1b4c504188a9c14f21c973e3fbf72b0a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash -e
## tools/run [ARGS...]
if [ -z ${PILCROW_DEV+x} ]; then
cargo run -- "$@"
else
npm run dev & PIDS[0]=$!
cargo run -- "$@" & PIDS[1]=$!
trap "kill ${PIDS[*]}" SIGINT
wait
fi
|