@reddoorla/maintenance 0.7.0 → 0.9.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 +8 -2
- package/dist/cli/bin.js +388 -117
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/commands/audit.d.ts +6 -0
- package/dist/cli/commands/audit.js +284 -26
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/index.d.ts +35 -9
- package/dist/index.js +259 -142
- package/dist/index.js.map +1 -1
- package/dist/reports/maintenance-email/assets/blurredTests.jpg +0 -0
- package/dist/reports/maintenance-email/assets/check.png +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ Each audit is `(ctx) => Promise<AuditResult>` and is exported from the package e
|
|
|
122
122
|
| Name | What it checks |
|
|
123
123
|
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
124
124
|
| `deps` | Diffs site's `package.json` against `src/configs/baseline-versions.ts`. Surfaces deps that drift from the canonical version map. |
|
|
125
|
-
| `lighthouse` | Runs `@lhci/cli autorun` using the canonical `lighthouserc.json`.
|
|
125
|
+
| `lighthouse` | Runs `@lhci/cli autorun` using the canonical `lighthouserc.json`. Hits `/dev/a11y-fixtures` by default; sites without that route can set `package.json#reddoor.lighthouseUrl` to override. |
|
|
126
126
|
| `a11y` | Spawns Playwright + `@axe-core/playwright` against a canonical set of a11y routes. |
|
|
127
127
|
| `security` | `pnpm audit --json --prod` with automatic fall-through to `npm audit` when pnpm can't run (missing lockfile, error envelope, etc.). Normalises advisory shapes from both tools into a single `AdvisoryEntry[]`. |
|
|
128
128
|
| `lint` | ESLint + Prettier using the canonical configs (re-exported via `@reddoorla/maintenance/configs/eslint` and `@reddoorla/maintenance/configs/prettier`). |
|
|
@@ -258,7 +258,13 @@ RESEND_WEBHOOK_SECRET=whsec_XXXX # only for the deployed webhook
|
|
|
258
258
|
|
|
259
259
|
### Operator flow
|
|
260
260
|
|
|
261
|
-
0. **Prereq:
|
|
261
|
+
0. **Prereq: refresh Lighthouse scores on each Websites row.** From each site's checkout:
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
reddoor-maint audit lighthouse --write-airtable
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
This runs Lighthouse and writes the 4 scores directly to the matching Websites row (slug auto-derived from `package.json#name`; pass `--write-airtable=<slug>` to override), along with a `Last lighthouse audit at` timestamp. The report orchestrator copies these into the new Reports row — drafting a report for a site missing scores fails with a clear error.
|
|
262
268
|
|
|
263
269
|
1. **Draft overdue reports**
|
|
264
270
|
|