Take the website's screenshots with one command

composer screenshots runs Pest browser tests in tests/Screenshots, outside
every test suite: fixed demo data under a frozen clock, desktop (MacBook
14, 2x) and phone (iPhone 15 Pro, 3x) in light and dark, each capture
published at once as WebP at two widths into website/img/screenshots.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy
This commit is contained in:
Andreas Reinhold / reini
2026-09-13 12:30:53 +02:00
co-authored by Claude Opus 5
parent 4470c2ed87
commit e49bdf3eb3
51 changed files with 607 additions and 1 deletions
+5
View File
@@ -84,6 +84,11 @@
],
"pre-package-uninstall": [
"Illuminate\\Foundation\\ComposerScripts::prePackageUninstall"
],
"screenshots": [
"Composer\\Config::disableProcessTimeout",
"npm run build",
"@php -d upload_max_filesize=4G -d post_max_size=4G vendor/bin/pest tests/Screenshots"
]
},
"extra": {