mirror of
https://github.com/ZTatman/myst.git
synced 2026-11-20 20:07:59 +00:00
- Download Tailwind v4.3.0 standalone CLI binary (gitignored) - Define custom dark+pink theme tokens in input.css - Add dev.sh for parallel Tailwind watcher + uvicorn - Update Dockerfile to build Tailwind during image build - Update templates with Tailwind utility classes - Generate minified output.css at build time
16 lines
449 B
Bash
Executable file
16 lines
449 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo "Starting Myst dev server..."
|
|
echo " FastAPI: http://localhost:8000"
|
|
echo " CSS: watching app/static/css/input.css"
|
|
|
|
# Start Tailwind CSS watcher in background
|
|
./tailwindcss -i ./app/static/css/input.css -o ./app/static/css/output.css --watch &
|
|
TW_PID=$!
|
|
|
|
# Trap to kill tailwind watcher on exit
|
|
trap "kill $TW_PID 2>/dev/null" EXIT
|
|
|
|
# Start uvicorn
|
|
uv run uvicorn app.main:app --reload --port 8000
|