@piercebarney/whs-eleventy 2026.9.27 → 2026.9.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/compliance.js CHANGED
@@ -186,6 +186,13 @@ const CHECKS = {
186
186
  const toml = read("netlify.toml") || "";
187
187
  if (!/for = "\/site\.webmanifest"[\s\S]*?application\/manifest\+json/.test(toml))
188
188
  return { status: FAIL, note: "site.webmanifest not served as application/manifest+json" };
189
+ if (!has("_site/site.webmanifest"))
190
+ return {
191
+ status: FAIL,
192
+ note:
193
+ "netlify.toml declares site.webmanifest's header, but the file " +
194
+ "doesn't exist in the built output",
195
+ };
189
196
  const fontFiles = walk(path.join(ROOT, "static")).filter((f) => /\.(woff2?|ttf|otf)$/.test(f));
190
197
  if (fontFiles.length && !grepSrc(/@font-face/, [".css"]).length)
191
198
  return { status: FAIL, note: `${fontFiles.length} font file(s) but no @font-face` };
@@ -438,7 +445,7 @@ const CHECKS = {
438
445
  // The privacy page may be a standalone src/privacy.njk or a pages.json
439
446
  // entry rendered by a src/pages/ shell — check the built output, with a
440
447
  // source fallback for when _site isn't built yet.
441
- const built = has("_site/privacy/index.html");
448
+ const built = has("_site/privacy/index.html") || has("_site/privacy.html");
442
449
  const source =
443
450
  has("src/privacy.njk") ||
444
451
  /["']slug["']\s*:\s*["']privacy["']/.test(read("src/content/pages.json") || "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@piercebarney/whs-eleventy",
3
- "version": "2026.9.27",
3
+ "version": "2026.9.29",
4
4
  "description": "The web house style's Eleventy + Netlify tooling — the compliance sweep, the infra doctor, the link/CSP integrity check, and the a11y scan, shared by every project on the stack.",
5
5
  "bin": {
6
6
  "whs": "cli.js"
@@ -21,6 +21,41 @@ enforced, new *opt-in* chapters/capabilities, tooling-only changes — is
21
21
 
22
22
  ---
23
23
 
24
+ ## 2026-09-29 [non-breaking]
25
+
26
+ ### packages/whs-eleventy
27
+
28
+ `privacy` in `lib/compliance.js`'s built-output signal only matched a
29
+ directory-style permalink (`_site/privacy/index.html`), so a project with a
30
+ flat `privacy.html` permalink failed the chapter despite having a real,
31
+ working privacy page — the same directory-assumption class as the earlier
32
+ `check-links.js` relative-resolution fix. Now also accepts `_site/privacy.html`,
33
+ mirroring how the adjacent source-level signal in the same chapter already
34
+ carries multiple fallbacks for the same question. No `feedback/` file this
35
+ time: found and fixed while reviewing a real project's migration report, not
36
+ filed by an adopting session. Fixed in `41881c2`.
37
+
38
+ ---
39
+
40
+ ## 2026-09-28 [non-breaking]
41
+
42
+ ### packages/whs-eleventy
43
+
44
+ `assets` in `lib/compliance.js` reported `PASS` for `site.webmanifest` based
45
+ solely on `netlify.toml` declaring a header rule for it — never checking
46
+ whether the file itself existed in the built output. A project could pass
47
+ having only declared the rule, never having actually generated the file (it's
48
+ produced at build time by `scripts/icons.js`), and the `PASS` message gave no
49
+ sign anything was missing — the same silent-pass class as the
50
+ `styling`/`brand-source`/`domain-tests` fix documented under 2026-09-23. No
51
+ `feedback/` file this time: found and fixed live in this conversation while
52
+ reviewing a real project's `/audit/` page work, not filed by an adopting
53
+ session. Fixed in `8773e26`: now also checks `_site/site.webmanifest` exists,
54
+ the same way `sitemap-robots` and `privacy` already check their own built-output
55
+ files in this file.
56
+
57
+ ---
58
+
24
59
  ## 2026-09-27 [non-breaking]
25
60
 
26
61
  ### templates/eleventy-netlify
package/standard/core.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Web project house style — CORE (stack-agnostic)
2
2
 
3
- **Version:** 2026-09-27 · **Status:** active
3
+ **Version:** 2026-09-29 · **Status:** active
4
4
 
5
5
  This is the stack-agnostic contract every web project follows, regardless of
6
6
  framework, host, or CSS system. It says **what** must be true, with concrete
@@ -1467,7 +1467,7 @@ governs it and follow that chapter — the slugs are the index (a `<script>` →
1467
1467
  - production-url: https://example.com
1468
1468
  - content-type: tool # tool | article (article => feeds)
1469
1469
  - publishing-rate: ~5 pages/week
1470
- - standard-version: 2026-09-27 # recommended — enables standard-version drift tracking (#compliance)
1470
+ - standard-version: 2026-09-29 # recommended — enables standard-version drift tracking (#compliance)
1471
1471
  ```
1472
1472
 
1473
1473
  If the section is absent, the assistant's first action is to run the flow above