v0.3 infra: dev server from worktree + quietware screenshot capture
Two small infra changes to support visual verification of v0.3 phases
from a git worktree.
- vite.config.js. server.fs.allow extended to ["..", "../.."]. When
the dev server runs inside .worktrees/v0.3-tactile-quietware/ the
shared node_modules sits one extra directory up, which Vite's
default fs.strict policy rejected with HTTP 403 on the @sveltejs
runtime client. Allowing the parent path unblocks dev runs from
any worktree of this repo. No effect when dev runs from the main
checkout.
- scripts/capture-quietware-screenshots.mjs. Headless Playwright
driver that visits /design-system-v2 (and best-effort /) under
five attribute combinations (v0.2 baseline, quietware-dark,
quietware-light, quietware-hc-dark, quietware-hc-light) and
writes one PNG per combination to /tmp/lumotia-v0.3-screenshots/.
Used to email Jake the visual proof for Phase 4a review.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -43,6 +43,12 @@ export default defineConfig(async () => ({
|
||||
watch: {
|
||||
ignored: ["**/src-tauri/**"],
|
||||
},
|
||||
fs: {
|
||||
// v0.3 Phase 4a screenshot capture: when dev server runs inside a
|
||||
// git worktree (.worktrees/v0.3-tactile-quietware/) the parent
|
||||
// node_modules sits one extra dir up. Allow the worktree root.
|
||||
allow: ["..", "../.."],
|
||||
},
|
||||
},
|
||||
test: {
|
||||
// jsdom gives storage-shim tests a real localStorage / DOMException /
|
||||
|
||||
Reference in New Issue
Block a user