@piercebarney/whs-eleventy 2026.11.126 → 2027.0.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 +12 -5
- package/package.json +2 -5
- package/scripts/bundle-standard.js +0 -35
- package/standard/CHANGELOG.md +0 -6802
- package/standard/core.md +0 -2025
package/README.md
CHANGED
|
@@ -61,11 +61,18 @@ const { runRepoChecks, readCache } = require("@piercebarney/whs-eleventy/lib/doc
|
|
|
61
61
|
|
|
62
62
|
`whs compliance`'s drift check reads `core.md` + `CHANGELOG.md` to compare the
|
|
63
63
|
project's `standard-version` pin against the current standard —
|
|
64
|
-
`resolveStandard()` is `@piercebarney/whs-core`'s
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
`MANUAL`, never a
|
|
64
|
+
`resolveStandard()` is `@piercebarney/whs-core`'s. This package bundles no
|
|
65
|
+
standard of its own: the fallback copy is the one `@piercebarney/whs-core`
|
|
66
|
+
carries under its own `standard/`, as of that package's last publish. Override
|
|
67
|
+
with `WHS_STANDARD=/path/to/web-house-style` (the authoring repo points this at
|
|
68
|
+
itself). When neither resolves, the drift row is a visible `MANUAL`, never a
|
|
69
|
+
silent pass.
|
|
70
|
+
|
|
71
|
+
This package's version is its own semver (first `2027.0.0`), bumped by
|
|
72
|
+
`bin/bump-package` at release time and published when it is new — it does not
|
|
73
|
+
track the standard's date pin. A project's tooling range comes from the
|
|
74
|
+
`package.json` version in the standard checkout at its target tag (see
|
|
75
|
+
`/whs:upgrade`).
|
|
69
76
|
|
|
70
77
|
## Not in this package
|
|
71
78
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@piercebarney/whs-eleventy",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2027.0.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"
|
|
@@ -8,12 +8,9 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"cli.js",
|
|
10
10
|
"lib/",
|
|
11
|
-
"scripts/",
|
|
12
|
-
"standard/",
|
|
13
11
|
"README.md"
|
|
14
12
|
],
|
|
15
13
|
"scripts": {
|
|
16
|
-
"prepare": "node scripts/bundle-standard.js",
|
|
17
14
|
"lint": "prettier --check . && eslint .",
|
|
18
15
|
"types": "tsc -p .",
|
|
19
16
|
"test": "node --test test/*.test.js",
|
|
@@ -32,7 +29,7 @@
|
|
|
32
29
|
"node": ">=22"
|
|
33
30
|
},
|
|
34
31
|
"dependencies": {
|
|
35
|
-
"@piercebarney/whs-core": "
|
|
32
|
+
"@piercebarney/whs-core": "^2027.0.0",
|
|
36
33
|
"node-html-parser": "^9.0.2"
|
|
37
34
|
},
|
|
38
35
|
"devDependencies": {
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// Copies the standard's text into standard/ so the published package carries the
|
|
2
|
-
// core.md + CHANGELOG.md the drift check reads. Runs as `prepare` — before
|
|
3
|
-
// `npm pack` / `npm publish`, and on a local `file:` install.
|
|
4
|
-
//
|
|
5
|
-
// Source is the repo root, three levels up (packages/whs-eleventy/scripts →
|
|
6
|
-
// repo). When that isn't there (the package was installed as a git dep, say)
|
|
7
|
-
// but standard/ is already populated, this is a no-op. Never hard-fails an
|
|
8
|
-
// install.
|
|
9
|
-
|
|
10
|
-
const fs = require("node:fs");
|
|
11
|
-
const path = require("node:path");
|
|
12
|
-
|
|
13
|
-
const REPO = path.join(__dirname, "..", "..", "..");
|
|
14
|
-
const OUT = path.join(__dirname, "..", "standard");
|
|
15
|
-
const FILES = ["core.md", "CHANGELOG.md"];
|
|
16
|
-
|
|
17
|
-
const haveSource = FILES.every((f) => fs.existsSync(path.join(REPO, f)));
|
|
18
|
-
const haveBundle = FILES.every((f) => fs.existsSync(path.join(OUT, f)));
|
|
19
|
-
|
|
20
|
-
if (!haveSource) {
|
|
21
|
-
if (haveBundle) {
|
|
22
|
-
console.log("bundle-standard: no repo source, standard/ already populated — skipping");
|
|
23
|
-
process.exit(0);
|
|
24
|
-
}
|
|
25
|
-
console.warn(
|
|
26
|
-
"bundle-standard: no repo source and no bundled standard/ — the drift check will need WHS_STANDARD set",
|
|
27
|
-
);
|
|
28
|
-
process.exit(0);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
fs.mkdirSync(OUT, { recursive: true });
|
|
32
|
-
for (const f of FILES) {
|
|
33
|
-
fs.copyFileSync(path.join(REPO, f), path.join(OUT, f));
|
|
34
|
-
}
|
|
35
|
-
console.log(`bundle-standard: copied ${FILES.join(", ")} → standard/`);
|