BRAND=lux|acm node capture.mjs -> ~/Desktop/<brand>. Auto-discovers each app's pages, logs in where a credential is set, shoots desktop+mobile full-page. One command -> the whole demo deck; down surfaces skipped. Co-authored-by: Hanzo Dev <[email protected]>
672 B
672 B
White-label screenshot harness
One command captures every live surface (desktop + mobile, full-page) into ~/Desktop/<brand>.
cd ~/work/lux/universe/screenshots
npm i # playwright (browsers already cached)
BRAND=lux node capture.mjs # -> ~/Desktop/lux/<surface>/<page>-<desktop|mobile>.png
BRAND=acm node capture.mjs # -> ~/Desktop/acm/... (once ACM brand swap lands)
- Surfaces + auth are declared in
manifest.json. Add a surface = one entry. - Each surface: auto-discovers same-origin pages, logs in where a credential is set, shoots 1440×900 + 390×844.
- Down surfaces are skipped, never fatal — re-run as apps come online.