mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
Move swipe screen logic into hooks/services and extract state-specific UI components to keep files small while preserving existing behavior. Reference: US-002
25 lines
521 B
Bash
Executable File
25 lines
521 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Get the directory where this script is located
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
# Change to the script directory
|
|
cd "$SCRIPT_DIR"
|
|
|
|
# Parse command line arguments
|
|
HEADLESS=false
|
|
while [[ "$#" -gt 0 ]]; do
|
|
case $1 in
|
|
--headless) HEADLESS=true ;;
|
|
*) echo "Unknown parameter: $1"; exit 1 ;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
echo "Installing dependencies..."
|
|
npm install
|
|
|
|
echo "Starting dev-browser server..."
|
|
export HEADLESS=$HEADLESS
|
|
npx tsx scripts/start-server.ts
|