create-website-build-kit 0.1.18 → 0.1.20
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/package.json +1 -1
- package/template/CLAUDE.md +3 -1
- package/template/docs/dependencies.md +14 -5
- package/template/package-lock.json +509 -982
- package/template/package.json +1 -0
- package/template/scripts/a11y-evidence.mjs +31 -4
- package/template/scripts/check-a11y.mjs +16 -1
- package/template/scripts/check-cms.mjs +692 -26
- package/template/scripts/check-drift.mjs +154 -8
- package/template/scripts/lib/literal-content.mjs +233 -0
- package/template/scripts/lib/literal-images.mjs +35 -0
- package/template/scripts/lib/schemes.mjs +98 -10
- package/template/scripts/md-to-pdf.mjs +19 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-website-build-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "Scaffold a production marketing site \u2014 Astro on Cloudflare Workers, with the gates, the migration playbook and the accessibility work already wired.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astro",
|
package/template/CLAUDE.md
CHANGED
|
@@ -9,7 +9,9 @@ Astro (static) on Cloudflare Workers. Built from
|
|
|
9
9
|
npm run dev # localhost:4321 — no bindings, /api/* will not work
|
|
10
10
|
npm run media # after adding or replacing any image
|
|
11
11
|
npm run build:staging && npx wrangler dev # localhost:8788, real KV + secrets
|
|
12
|
-
npm run a11y # accessibility check, one URL per family
|
|
12
|
+
npm run a11y # accessibility check, one URL per family, both schemes
|
|
13
|
+
npx puppeteer browsers install chrome # ...if that says Chrome is missing. npm 11 withholds
|
|
14
|
+
# install scripts, so the download may not have run
|
|
13
15
|
npm run tells # what is undecided, and the design tells
|
|
14
16
|
npm run check:copy # author notes that reached the rendered page
|
|
15
17
|
npm run recon -- https://old-site.com # inventory the old site BEFORE designing routes
|
|
@@ -27,12 +27,19 @@ one problem. Do not read the larger number as six separate holes.
|
|
|
27
27
|
|
|
28
28
|
## Where it comes from
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
Browser-driven checking is the whole chain. Each step declares the next:
|
|
31
31
|
|
|
32
32
|
```
|
|
33
|
-
|
|
33
|
+
puppeteer ^24.43.1 → @puppeteer/browsers 2.13.2 → extract-zip ^2.0.1
|
|
34
|
+
pa11y-ci → pa11y ^9.1.1 → puppeteer → (the same two)
|
|
34
35
|
```
|
|
35
36
|
|
|
37
|
+
⚠ **`puppeteer` is declared here directly, and it did not used to be.** It arrived under
|
|
38
|
+
`pa11y-ci`, which made it a dependency of this project only by accident of how pa11y was
|
|
39
|
+
installed — run as `npx --yes pa11y-ci` instead and four scripts that import it outright would
|
|
40
|
+
have had nothing to import. Declaring it changes nothing about the advisory below; the chain
|
|
41
|
+
underneath is the same one.
|
|
42
|
+
|
|
36
43
|
`extract-zip` is what unpacks the Chrome build that puppeteer downloads the first time you run
|
|
37
44
|
`npm run a11y`.
|
|
38
45
|
|
|
@@ -65,9 +72,11 @@ requiring user interaction.
|
|
|
65
72
|
More to the point:
|
|
66
73
|
|
|
67
74
|
- It is a **development** dependency. It is not bundled, imported, or served.
|
|
68
|
-
- **Nothing under `src/` references pa11y or puppeteer.** Only
|
|
69
|
-
`check-
|
|
70
|
-
|
|
75
|
+
- **Nothing under `src/` references pa11y or puppeteer.** Only the scripts do, and none of them
|
|
76
|
+
run in a deploy: `check-console.mjs`, `check-reflow.mjs`, `shots.mjs`, `md-to-pdf.mjs` and
|
|
77
|
+
`lib/schemes.mjs` import puppeteer; `check-a11y.mjs` and `a11y-evidence.mjs` spawn pa11y-ci.
|
|
78
|
+
⚠ This list said "three scripts" and named two that do not import it while missing three that
|
|
79
|
+
do — a count nobody re-derives is a count that drifts.
|
|
71
80
|
- A production install (`npm ci --omit=dev`) does not install it at all.
|
|
72
81
|
|
|
73
82
|
⚠ **This is a reason it is low risk, not a reason it is fine.** If you ever start running the
|