This commit is contained in:
kacper 2026-03-06 22:51:19 -05:00
parent 6acf267d48
commit b7614eb3f8
4794 changed files with 1280808 additions and 1546 deletions

31
build.sh Executable file
View file

@ -0,0 +1,31 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
FRONTEND_DIR="$SCRIPT_DIR/frontend"
BUN="${BUN:-}"
if [[ -z "$BUN" ]]; then
if command -v bun &>/dev/null; then
BUN="bun"
elif [[ -x "$HOME/.bun/bin/bun" ]]; then
BUN="$HOME/.bun/bin/bun"
else
echo "error: bun not found. Install from https://bun.sh or set BUN=/path/to/bun" >&2
exit 1
fi
fi
echo "Using bun: $("$BUN" --version) ($BUN)"
cd "$FRONTEND_DIR"
if [[ ! -d node_modules ]]; then
echo "Installing dependencies..."
"$BUN" install
fi
echo "Building frontend..."
"$BUN" run build
echo "Done. Output: $FRONTEND_DIR/dist/"