Files
darth-veitcher-comfydv/Justfile
T
James VeitchandClaude Sonnet 4.6 ca1c35a3cf docs: automate README screenshots with Playwright from live ComfyUI harness
Replace hand-crafted PowerPoint exports with Playwright-generated screenshots
taken from the actual running Docker test harness:

- scripts/take_screenshots.py: headless Chromium via Playwright; creates nodes
  programmatically via LiteGraph/window.app, triggers updateNodeConfig() for
  FormatString's dynamic socket update, then crops tightly around each node
- docs/assets/: four screenshots (fstring, jinja2, random, circuit_breaker)
  replacing the old 1920×1080 PowerPoint exports (90%+ smaller, more accurate)
- Justfile: add `screenshots` recipe (starts harness if needed, waits healthy,
  runs the script)
- README.md: rewrite to cover all three nodes including Circuit Breaker;
  fix stale dependency list (was listing rich/colorama/termcolor which we
  removed in spec 001); add ComfyUI Manager install path
- pyproject.toml + uv.lock: add playwright to [dev] dependencies

Run: just screenshots

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RWysE6jYn4YjNorLBQ1cXb
2026-06-28 21:52:45 +01:00

52 lines
1.5 KiB
Makefile

dev := "docker compose -f docker-compose.yml -f docker-compose.dev.yml"
ci := "docker compose"
# List available recipes
default:
@just --list
# Build the base image (run once, or after Dockerfile / ComfyUI version bumps)
build:
{{dev}} build
# Start ComfyUI with local repo mounted; stays running, streams logs
up:
{{dev}} up
# Start in the background (detached)
up-d:
{{dev}} up -d
# Stop and remove containers (keeps the image)
down:
{{dev}} down
# Tail ComfyUI logs (works whether up or up-d was used)
logs:
{{dev}} logs -f comfyui
# Open ComfyUI in the browser
open:
open http://localhost:8188
# Show container health / status
status:
{{dev}} ps
# Rebuild base image from scratch, clearing Docker cache
rebuild:
{{dev}} build --no-cache
# CI smoke test — builds from COPY, starts with --quick-test-for-ci, exits
ci-smoke:
{{ci}} up --build --exit-code-from comfyui
# Regenerate docs/assets/ screenshots from the live ComfyUI dev harness.
# Starts the harness if not already running; leaves it running afterwards.
screenshots:
@echo "Starting dev harness (no-op if already up)…"
{{dev}} up -d
@echo "Waiting for ComfyUI to be healthy…"
@until docker compose -f docker-compose.yml -f docker-compose.dev.yml ps --format json | python3 -c "import sys,json; s=[c for c in json.load(sys.stdin) if c.get('Name','').endswith('comfyui')]; exit(0 if s and s[0].get('Health')=='healthy' else 1)" 2>/dev/null; do sleep 3; done
uv run scripts/take_screenshots.py