@piercebarney/whs-eleventy 2027.3.0 → 2027.4.0
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/README.md +1 -0
- package/cli.js +2 -0
- package/lib/compliance.js +7 -4
- package/lib/monitor.js +18 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@ whs site plan|apply [--create] show / apply the Netlify site setup (buil
|
|
|
12
12
|
whs dns plan|apply [--netlify-dns] check / set up Netlify DNS and HTTPS (prints the nameservers to set at the registrar)
|
|
13
13
|
whs search plan|apply check / submit the sitemap to Google Search Console and Bing (GOOGLE_SEARCH_CONSOLE_TOKEN, BING_WEBMASTER_API_KEY)
|
|
14
14
|
whs env plan|ads on|off check / flip the Netlify env flags (FEATURE_ADS kill switch; checks the AI key, never sets it)
|
|
15
|
+
whs monitor check uptime probe of the production URL (2xx over HTTPS, TLS cert >= 14 days, header baseline)
|
|
15
16
|
whs html html-validate (standard preset) over every _site/ page
|
|
16
17
|
whs links built-output link / CSP / JSON-LD integrity
|
|
17
18
|
whs a11y axe-core WCAG 2.2 A/AA scan of _site/
|
package/cli.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
// whs dns plan|apply [--netlify-dns] check / set up Netlify DNS and HTTPS (prints the nameservers to set at the registrar)
|
|
10
10
|
// whs search plan|apply check / submit the sitemap to Google Search Console and Bing (needs owner-minted tokens; ownership stays manual)
|
|
11
11
|
// whs env plan|ads on|off check / flip the Netlify env flags (FEATURE_ADS kill switch; checks the AI key, never sets it)
|
|
12
|
+
// whs monitor check uptime probe of the production URL (2xx over HTTPS, TLS cert >= 14 days, header baseline)
|
|
12
13
|
// whs pre-push <name> <url> pre-push check (secrets, private remote, no deploy); git ref lines on stdin
|
|
13
14
|
// whs html html-validate (standard preset) over every _site/ page
|
|
14
15
|
// whs links built-output link / CSP / JSON-LD integrity
|
|
@@ -32,6 +33,7 @@ const COMMANDS = {
|
|
|
32
33
|
dns: "dns.js",
|
|
33
34
|
search: "search.js",
|
|
34
35
|
env: "env.js",
|
|
36
|
+
monitor: "monitor.js",
|
|
35
37
|
"pre-push": "pre-push.js",
|
|
36
38
|
html: "html.js",
|
|
37
39
|
links: "check-links.js",
|
package/lib/compliance.js
CHANGED
|
@@ -715,10 +715,13 @@ const CHECKS = {
|
|
|
715
715
|
return fromDoctor("env-untracked", ".env.example committed; no secret in _site/");
|
|
716
716
|
},
|
|
717
717
|
|
|
718
|
-
observability: () =>
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
718
|
+
observability: () =>
|
|
719
|
+
!has(".github/workflows/monitor.yml")
|
|
720
|
+
? { status: FAIL, note: "no scheduled uptime probe (.github/workflows/monitor.yml)" }
|
|
721
|
+
: {
|
|
722
|
+
status: MANUAL,
|
|
723
|
+
note: "post-launch: Search Console coverage, Core Web Vitals, form deliverability — see /audit/ manual checklist",
|
|
724
|
+
},
|
|
722
725
|
|
|
723
726
|
"llm-integration": () => {
|
|
724
727
|
if (aiMode === "none") return { status: NA, note: "ai: none" };
|
package/lib/monitor.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// `whs monitor check` — the scheduled uptime probe (core.md#observability). The
|
|
2
|
+
// logic is stack-agnostic (@piercebarney/whs-core's lib/monitor.js); this file
|
|
3
|
+
// supplies Eleventy's value (src/_data/site.js), prints, and exits.
|
|
4
|
+
|
|
5
|
+
const { runMonitor } = require("@piercebarney/whs-core/lib/monitor.js");
|
|
6
|
+
const { ROOT, projectRequire } = require("./_project.js");
|
|
7
|
+
|
|
8
|
+
function main() {
|
|
9
|
+
const r = runMonitor({
|
|
10
|
+
argv: process.argv.slice(2),
|
|
11
|
+
root: ROOT,
|
|
12
|
+
loadSite: () => projectRequire("src/_data/site.js"),
|
|
13
|
+
});
|
|
14
|
+
for (const line of r.lines) console.log(line);
|
|
15
|
+
process.exit(r.exitCode);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (require.main === module) main();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@piercebarney/whs-eleventy",
|
|
3
|
-
"version": "2027.
|
|
3
|
+
"version": "2027.4.0",
|
|
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"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"node": ">=22"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@piercebarney/whs-core": "^2027.
|
|
32
|
+
"@piercebarney/whs-core": "^2027.4.0",
|
|
33
33
|
"node-html-parser": "^9.0.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|