@piercebarney/whs-eleventy 2027.2.0 → 2027.3.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 CHANGED
@@ -9,6 +9,7 @@ whs plan [--next|--check] project work-queue table / next ticket /
9
9
  whs compliance [--strict] codebase-vs-standard conformance sweep
10
10
  whs doctor [--live|--deploy-preflight] infrastructure drift check
11
11
  whs site plan|apply [--create] show / apply the Netlify site setup (builds stopped, domain, link, secrets)
12
+ whs dns plan|apply [--netlify-dns] check / set up Netlify DNS and HTTPS (prints the nameservers to set at the registrar)
12
13
  whs search plan|apply check / submit the sitemap to Google Search Console and Bing (GOOGLE_SEARCH_CONSOLE_TOKEN, BING_WEBMASTER_API_KEY)
13
14
  whs env plan|ads on|off check / flip the Netlify env flags (FEATURE_ADS kill switch; checks the AI key, never sets it)
14
15
  whs html html-validate (standard preset) over every _site/ page
package/cli.js CHANGED
@@ -6,6 +6,7 @@
6
6
  // whs compliance [--strict] codebase-vs-standard conformance sweep
7
7
  // whs doctor [--live|--deploy-preflight] infrastructure drift check
8
8
  // whs site plan|apply [--create] show / apply the Netlify site setup (builds stopped, domain, link, secrets)
9
+ // whs dns plan|apply [--netlify-dns] check / set up Netlify DNS and HTTPS (prints the nameservers to set at the registrar)
9
10
  // whs search plan|apply check / submit the sitemap to Google Search Console and Bing (needs owner-minted tokens; ownership stays manual)
10
11
  // whs env plan|ads on|off check / flip the Netlify env flags (FEATURE_ADS kill switch; checks the AI key, never sets it)
11
12
  // whs pre-push <name> <url> pre-push check (secrets, private remote, no deploy); git ref lines on stdin
@@ -28,6 +29,7 @@ const COMMANDS = {
28
29
  compliance: "compliance.js",
29
30
  doctor: "doctor.js",
30
31
  site: "site.js",
32
+ dns: "dns.js",
31
33
  search: "search.js",
32
34
  env: "env.js",
33
35
  "pre-push": "pre-push.js",
package/lib/dns.js ADDED
@@ -0,0 +1,20 @@
1
+ // `whs dns plan|apply` — the Netlify DNS and HTTPS setup (core.md#adopting). The
2
+ // logic is stack-agnostic (@piercebarney/whs-core's lib/dns.js); this file supplies
3
+ // Eleventy's values (src/_data/site.js, src/_data/dashboard.js), prints, and exits.
4
+
5
+ const path = require("node:path");
6
+ const { runDns } = require("@piercebarney/whs-core/lib/dns.js");
7
+ const { ROOT, projectRequire } = require("./_project.js");
8
+
9
+ function main() {
10
+ const r = runDns({
11
+ argv: process.argv.slice(2),
12
+ root: ROOT,
13
+ loadSite: () => projectRequire("src/_data/site.js"),
14
+ checklistFile: path.join(ROOT, "src", "_data", "dashboard.js"),
15
+ });
16
+ for (const line of r.lines) console.log(line);
17
+ process.exit(r.exitCode);
18
+ }
19
+
20
+ if (require.main === module) main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@piercebarney/whs-eleventy",
3
- "version": "2027.2.0",
3
+ "version": "2027.3.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.2.0",
32
+ "@piercebarney/whs-core": "^2027.3.0",
33
33
  "node-html-parser": "^9.0.2"
34
34
  },
35
35
  "devDependencies": {