Skip the pre-deploy build when only test files changed.
predeploy was a shell chain that always rebuilt, so a test-only edit paid for a full Vite build. It is now scripts/predeploy.mjs: typecheck, tests and the render check always run, and the build is skipped when a content hash of the bundle inputs (src and public minus test files, plus the Vite/TS/package config) matches the last successful build. The signature lives in node_modules/.cache, so it is gitignored and never rsynced to the server. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
@@ -957,7 +957,7 @@ positions. Camera-lens defaults require both a normalised camera and lens name t
|
||||
| `npm run typecheck` | `tsc --noEmit` |
|
||||
| `npm test` | Vitest, one pass then exit |
|
||||
| `npm run check:render` | Headless Chrome check that the 16-bit sidecar and JPEG proxy upload in the same row order |
|
||||
| `npm run predeploy` | Typecheck, unit suite, render check, then build — run this before pushing a deploy |
|
||||
| `npm run predeploy` | Typecheck, unit suite, render check, then build — run this before pushing a deploy; the build is skipped when only test files changed since the last build |
|
||||
|
||||
Conventions worth knowing before changing code:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user