mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
- 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>
25 lines
506 B
Bash
Executable File
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
|