@piercebarney/whs-eleventy 2027.0.0 → 2027.1.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/env.js +14 -0
- package/package.json +2 -2
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 env plan|ads on|off check / flip the Netlify env flags (FEATURE_ADS kill switch; checks the AI key, never sets it)
|
|
12
13
|
whs html html-validate (standard preset) over every _site/ page
|
|
13
14
|
whs links built-output link / CSP / JSON-LD integrity
|
|
14
15
|
whs a11y axe-core WCAG 2.2 A/AA scan of _site/
|
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 env plan|ads on|off check / flip the Netlify env flags (FEATURE_ADS kill switch; checks the AI key, never sets it)
|
|
9
10
|
// whs pre-push <name> <url> pre-push check (secrets, private remote, no deploy); git ref lines on stdin
|
|
10
11
|
// whs html html-validate (standard preset) over every _site/ page
|
|
11
12
|
// whs links built-output link / CSP / JSON-LD integrity
|
|
@@ -26,6 +27,7 @@ const COMMANDS = {
|
|
|
26
27
|
compliance: "compliance.js",
|
|
27
28
|
doctor: "doctor.js",
|
|
28
29
|
site: "site.js",
|
|
30
|
+
env: "env.js",
|
|
29
31
|
"pre-push": "pre-push.js",
|
|
30
32
|
html: "html.js",
|
|
31
33
|
links: "check-links.js",
|
package/lib/env.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// `whs env plan|ads on|off` — the Netlify env flags (core.md#config-idiom). The
|
|
2
|
+
// logic is stack-agnostic (@piercebarney/whs-core's lib/env.js); this file
|
|
3
|
+
// supplies the project root, prints, and exits.
|
|
4
|
+
|
|
5
|
+
const { runEnv } = require("@piercebarney/whs-core/lib/env.js");
|
|
6
|
+
const { ROOT } = require("./_project.js");
|
|
7
|
+
|
|
8
|
+
function main() {
|
|
9
|
+
const r = runEnv({ argv: process.argv.slice(2), root: ROOT });
|
|
10
|
+
for (const line of r.lines) console.log(line);
|
|
11
|
+
process.exit(r.exitCode);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
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.1.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.1.0",
|
|
33
33
|
"node-html-parser": "^9.0.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|