← back to Wallco Ai
test: make npm test a real preflight gate (node -c server.js + hard-rule audit)
83390fc2ba99b506cd70c49e1a383b2c3cf814c7 · 2026-06-04 09:18:46 -0700 · Steve Abrams
Was a placeholder (echo + exit 1). Now: npm test -> preflight = syntax-check
server.js (the documented #1 deploy hazard — a stray backtick in a template
literal cost 321 pm2 restarts) + run the 4-rule hard-rule audit. Also exposes
npm run audit standalone. Gives the audit gate teeth — one command before any
deploy. Exits 0 today.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
Diff
commit 83390fc2ba99b506cd70c49e1a383b2c3cf814c7
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Jun 4 09:18:46 2026 -0700
test: make npm test a real preflight gate (node -c server.js + hard-rule audit)
Was a placeholder (echo + exit 1). Now: npm test -> preflight = syntax-check
server.js (the documented #1 deploy hazard — a stray backtick in a template
literal cost 321 pm2 restarts) + run the 4-rule hard-rule audit. Also exposes
npm run audit standalone. Gives the audit gate teeth — one command before any
deploy. Exits 0 today.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
package.json | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 8520e44..09da689 100644
--- a/package.json
+++ b/package.json
@@ -3,8 +3,10 @@
"version": "1.0.0",
"main": "server.js",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1",
+ "test": "npm run preflight",
"start": "node server.js",
+ "audit": "node scripts/audit-hard-rules.js",
+ "preflight": "node -c server.js && node scripts/audit-hard-rules.js",
"test:themes": "node scripts/smoke-test-themes-selftest.js",
"test:themes:live": "node scripts/smoke-test-themes.js"
},
← 222ab35 audit: extend hard-rule gate to vendor-names + FLIEPAPER (4
·
back to Wallco Ai
·
damask loop: init (DTD verdict A stage-only) — per-tick gene 31f02c8 →