Files
firezone/rust/windows-client/dev.sh
Jamil 086f7a85c6 refactor(windows): Windows UI polish (#3338)
- Add Tailwind and Flowbite for consistent UI

---------

Signed-off-by: Reactor Scram <ReactorScram@users.noreply.github.com>
Co-authored-by: Reactor Scram <ReactorScram@users.noreply.github.com>
2024-01-23 17:07:25 +00:00

25 lines
506 B
Bash
Executable File

#!/bin/sh
# The Windows client obviously doesn't build for *nix, but this
# script is helpful for doing UI work on those platforms for the
# Windows client.
set -e
# Fixes exiting with Ctrl-C
stop() {
kill $(jobs -p)
}
trap stop SIGINT SIGTERM
# Copy frontend dependencies
cp node_modules/flowbite/dist/flowbite.min.js src/
# Compile TypeScript
tsc --watch &
# Compile CSS
tailwindcss -i src/input.css -o src/output.css --watch &
# Start Tauri hot-reloading: Not applicable for Windows
# tauri dev