Files
Sauci/.codex/skills/dev-browser/server.sh
jjbrunton 8d4d9d8750 refactor(swipe): split swipe screen modules
Move swipe screen logic into hooks/services and extract
state-specific UI components to keep files small while
preserving existing behavior.

Reference: US-002
2026-01-25 21:05:54 +00:00

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