diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-10-23 21:52:24 -0400 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-10-23 21:52:24 -0400 |
| commit | 8f360dd9cc45bb14431238ccc5e3d137c020fa7b (patch) | |
| tree | fcb65190ba06932cdba79b91513e74155aaa912e /tools | |
| parent | 56e16e29db55dae84549229d24b971f8bcf7da21 (diff) | |
Do a big mobile app design thing
Mobile-friendly anyway. Thanks to
[Miriam](https://www.miriamsuzanne.com/) for the CSS that enables a
sliding menu on mobile size, constant menu on larger.
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/run | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -1,8 +1,15 @@ #!/bin/bash -e ## tools/run [ARGS...] -## -## Run the server in development mode. Shorthand for `cargo run`. -tools/build-ui -cargo run -- "$@" +if [ -z ${HI_DEV+x} ]; then + tools/build-ui + cargo run -- "$@" +else + npm run dev & PIDS[0]=$! + cargo run -- "$@" & PIDS[1]=$! + + trap "kill ${PIDS[*]}" SIGINT + + wait +fi |
