@v-office/site-checks 0.0.1 → 0.2.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 +151 -3
- package/dist/astro.d.mts +37 -0
- package/dist/astro.mjs +56 -0
- package/dist/dist-checks.d.mts +21 -0
- package/dist/dist-checks.mjs +410 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.mjs +2 -0
- package/dist/options-CANJso9Q.d.mts +95 -0
- package/dist/report-xp_FHnYb.mjs +2538 -0
- package/dist/runner-CK4iXk8Z.d.mts +169 -0
- package/instructions/CHANGELOG.md +2 -0
- package/instructions/MIGRATION.md +2 -0
- package/instructions/versions/0.1.0/CHANGELOG.md +79 -0
- package/instructions/versions/0.1.0/MIGRATION.md +61 -0
- package/instructions/versions/0.2.0/CHANGELOG.md +64 -0
- package/instructions/versions/0.2.0/MIGRATION.md +65 -0
- package/package.json +33 -4
- package/index.js +0 -2
package/README.md
CHANGED
|
@@ -1,5 +1,153 @@
|
|
|
1
1
|
# @v-office/site-checks
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Build-time checks for the sites. The `siteChecks()` Astro integration runs at the end of
|
|
4
|
+
`astro build`, checks the project's source and the built `dist/`, writes
|
|
5
|
+
`dist/site-checks.json` and refuses the build when a check with severity `error` finds
|
|
6
|
+
something. The build worker reads the report, merges it with its own dist checks and shows both
|
|
7
|
+
on the admin page; a refused build never goes live.
|
|
8
|
+
|
|
9
|
+
It replaces the site-shipping guards of the sites' git commit gate with a pinned package that
|
|
10
|
+
runs wherever the site is built: locally, in the site's CI and in AI Studio.
|
|
11
|
+
|
|
12
|
+
## Use
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
pnpm add --save-exact --save-dev @v-office/site-checks
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
// astro.config.mjs
|
|
20
|
+
import { siteManifest } from "@v-office/site-manifest/astro";
|
|
21
|
+
import { siteChecks } from "@v-office/site-checks/astro";
|
|
22
|
+
|
|
23
|
+
export default defineConfig({
|
|
24
|
+
integrations: [siteManifest(), siteChecks()],
|
|
25
|
+
});
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
A refused build ends with the failing checks and their first findings:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
[site-checks] build refused: 1 check with errors
|
|
32
|
+
- html-comments (2 findings)
|
|
33
|
+
src/pages/index.astro:41: An HTML comment ships to the built page, readable with View Source. …
|
|
34
|
+
src/components/Nav.astro:12: …
|
|
35
|
+
Report: dist/site-checks.json
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Configuration
|
|
39
|
+
|
|
40
|
+
`site-checks.config.json` at the project root holds the site's data for the checks. The same
|
|
41
|
+
keys are accepted by `siteChecks({ … })`, and an option given there wins over the file's key.
|
|
42
|
+
Severities are fixed by the package: a site configures data, never whether a check blocks.
|
|
43
|
+
|
|
44
|
+
| Key | Used by | What |
|
|
45
|
+
| ------------------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
46
|
+
| `donorTerms` | `donor-terms` | Terms that must not ship: the template site's brand, people, places, phone, email, domain, asset names. Plain strings, matched case-insensitively with whitespace collapsed. |
|
|
47
|
+
| `optimizeDepsIgnore` | `optimize-deps` | Packages imported from `src/` that may stay out of `vite.optimizeDeps.include` (only server-side code uses them). Exact specifier or package name. |
|
|
48
|
+
| `imageIgnore` | `image-formats` | Raster images under `public/` that ship without an AVIF sibling on purpose, as paths relative to the project root (`public/brand/logo.png`). |
|
|
49
|
+
| `feedImagePatterns` | `feed-image-formats` | Regular expressions (case-insensitive) matching a feed photo URL still requested as JPEG or PNG. Defaults to the vOffice image hosts (imgproxy `plain` paths, `dyn.v-office.com`). |
|
|
50
|
+
| `listingPages` | `listing-noindex`, `listing-links` | URL paths of pages that list rentals, in addition to the pages the check recognizes by their markup. |
|
|
51
|
+
| `listingClientOnly` | `listing-links` | Listing pages whose list stays client-only, as `{ "path", "reason" }`: their list is the rentals free in a window, and a build-time list would show booked-out flats. |
|
|
52
|
+
| `consentAllowedHosts` | `consent-gate` | Hosts a `<script src>` or `<iframe src>` may load before consent. The site's own host (`site` in the Astro config) is always allowed. |
|
|
53
|
+
| `wiring` | `wiring` | Markup hooks `{ init, marker, scope: "section" \| "global", file? }` and kept texts `{ file, contains, guard }` (the former `scripts/wiring.json` `hooks`). |
|
|
54
|
+
| `hubFilterOptions` | `v9-hub-filters` | v9: the Website SDK options the Hub filter check needs (`rentalScope`, `customAttributeFilterDefinitions`), as the site passes them to the SDK. |
|
|
55
|
+
| `structureIgnore` | `page-structure` | Rules the site declines: `one-h1`, `heading-skip`, `landmark-main`, `img-alt`, `control-label`, `table-headers`, `heading-ratio`. |
|
|
56
|
+
| `bannedCopy` | `banned-copy` | Wordings recorded customer corrections ban, as `{ "pattern", "why" }` (a regular expression over the page's visible text). |
|
|
57
|
+
| `copyExcludePaths` | the copy checks | URL paths (and below) the copy checks skip, legal pages ported verbatim; `/impressum` also covers `/de/impressum`. |
|
|
58
|
+
| `bannedCopyExcludePaths` | `banned-copy` | URL paths only `banned-copy` skips (an FAQ whose answers port verbatim). |
|
|
59
|
+
| `allowDuplicateSentences` | `duplicate-sentences` | Sentences a page may render twice. |
|
|
60
|
+
| `quoteSources` | `quote-sources` | Files or directories holding the text a `<blockquote>` may quote (content captures, the feed's reviews written by the build). |
|
|
61
|
+
| `factCheckAccepted` | `rental-facts` | Disagreements the customer confirmed, as the finding prints them: `<slug> <kind> prose=<n> feed=<n>`. |
|
|
62
|
+
|
|
63
|
+
## The checks
|
|
64
|
+
|
|
65
|
+
| id | Severity | What it refuses or reports | How to fix |
|
|
66
|
+
| --------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
67
|
+
| `html-comments` | error | An HTML comment (`<!-- … -->`) in `src/**/*.{astro,tsx,jsx,md,mdx,html}`: Astro passes it into the built page, readable with View Source. | `{/* … */}` in `.astro` and JSX markup, `//` in frontmatter, remove it from Markdown. |
|
|
68
|
+
| `view-source` | error | A developer's note a visitor can read with View Source: an HTML comment in a built page (the frameworks' own markers are allowed), a comment in an inline `<script>`, `<style>` or event handler or in shipped CSS, a line comment in shipped JS, a source map or a reference to one. | Remove the comment; turn source maps off in the build. |
|
|
69
|
+
| `donor-terms` | error | A configured term in the visible text, the title, inline scripts and styles (JSON-LD) or an attribute of a built page, in a built file name, or in the shipped JS and CSS. Skipped without configured terms. | Replace the term; list the template site's terms in `donorTerms`. |
|
|
70
|
+
| `optimize-deps` | warning | A runtime package (`dependencies`) imported from `src/` that is not listed, with the exact specifier, in `vite.optimizeDeps.include`. Vite discovers it mid-session instead and re-bundles every dependency. | Add the specifier to `vite.optimizeDeps.include` in `astro.config`, or to `optimizeDepsIgnore` when only server-side code uses it. |
|
|
71
|
+
| `sync-once` | warning | An inline content loader in `src/content.config.ts` that fetches the PMS without the `CONTENT_SYNC_TOKEN` reuse idiom: `astro check` and `astro build` each run it, twice per build. | Keep the token in the store's meta (`meta.get`) and reuse the entries (`store.keys()`) when it matches. |
|
|
72
|
+
| `consent-gate` | error | A third-party `<script src>` or `<iframe src>` outside the consent kit's `ConsentEmbed` frame, loading before consent; a vendor in `ENABLED_VENDOR_IDS` that is not `approved` in `consent-registry.snapshot.json`. Skipped without `src/lib/consent/`. | Frame it with `ConsentEmbed`, or register the vendor so the kit injects it after consent; list a consent-free host in `consentAllowedHosts`. |
|
|
73
|
+
| `image-formats` | error | A raster image under `public/` without an `.avif` sibling. | Encode the AVIF (or list the file in `imageIgnore`). |
|
|
74
|
+
| `feed-image-formats` | warning | A feed photo from the vOffice image hosts requested as JPEG or PNG in `src`, `srcset` or `poster`; a warning because the photos come from the PMS feed. | Pass feed photos through `webpUrl()`. |
|
|
75
|
+
| `listing-noindex` | error | A page that lists rentals (the search page's `data-prerendered-results` container, the `SearchResults` island, or `listingPages`) that is noindex. Waits while every page is noindex. | Take the page out of the noindex routes. |
|
|
76
|
+
| `listing-links` | warning | A page that lists rentals that carries no links to rentals in its HTML, so a crawler without JavaScript sees an empty list. Runs once some listing has links or the build has more than ten pages; a warning because the links come from the PMS feed. | Render the list server-side, or list the page in `listingClientOnly` with the reason. |
|
|
77
|
+
| `sitemap-noindex` | error | A sitemap entry whose page says noindex or is not in the build; an `llms.txt` link to a page that is not there. Skipped without a sitemap and `llms.txt`. | Make the sitemap filter and the noindex routes agree; fix the link. |
|
|
78
|
+
| `page-heads` | warning | On indexable pages: a title over 60 characters, a description empty or over 160, a title or description another page repeats. A missing one is the build worker's `page-metadata`. | Shorten; give each page its own. |
|
|
79
|
+
| `wiring` | error | A component carrying a configured hook's marker whose initializer nothing calls (`section`: the component itself; `global`: anything in `src/`), through leaves marked `@bound-by-parent <init>`; a kept text gone from its file. Comments are stripped first. Skipped without `wiring`. | Call the initializer, mark the leaf `@bound-by-parent`, or put the kept text back. |
|
|
80
|
+
| `unused-initializers` | warning | An `init*` exported from `src/scripts/*.ts` that nothing calls. Skipped without `src/scripts/`. | Wire the feature, or delete the leftover. |
|
|
81
|
+
| `v9-hub-filters` | warning | v9 only (`CMS_BACKEND=v9` in the build's env or `.env` / `.env.production`, else AI Studio's `PMS_BACKEND=v9`): a Hub filter the site's search needs that the be-on! Hub does not serve, asked through the site's own `website-sdk hub-filters check`; a Hub that cannot be asked. A warning: the outcome is the Hub's data. | Add the entry in the Hub (`website-sdk hub-filters request`), or drop it from the SDK options. |
|
|
82
|
+
| `canonical-link` | error | On the launched site (a production `site`, some indexable page): an indexable page without an absolute `<link rel="canonical">`. | Build it from the Astro `site` and the page path. |
|
|
83
|
+
| `open-graph` | warning | On the launched site: an indexable page without an absolute `og:url` and `og:image`. | Add them, absolute. |
|
|
84
|
+
| `trailing-slash` | warning | On the launched site: `trailingSlash` is not `"never"`. | Set `trailingSlash: "never"`; write internal links without a trailing slash. |
|
|
85
|
+
| `v9-production-hub` | error | v9 only, on the launched site: the build's env does not call the production Hub (`CMS_STAGE=production` or the production Hub URLs); a committed `.env.local`; a committed `HUB_API_KEY` equal to `.env.local`'s. Waits for a production `site` and an indexable page. | Set the production stage or URLs and the customer's production key; untrack `.env.local`. |
|
|
86
|
+
| `page-structure` | warning | One `<h1>`, no skipped heading level, no flood of `<h3>` under few `<h2>`, a `<main>`, `alt` on every image, a label on every control, a caption and scoped `<th>` on every table. | Fix the component where a fault repeats; decline a rule in `structureIgnore`. |
|
|
87
|
+
| `load-order` | warning | At start: an on-demand library (map, chart, 3D) in the start-up code, a start-up chunk over 150 KB compressed, photos after the first in card swipe strips with a URL, a first-paint photo from 100 KB up in one size only, a preloaded swap face without a `size-adjust` stand-in. | `import()` on demand; first slide only; width `srcset`; a `local()` stand-in. |
|
|
88
|
+
| `banned-copy` | warning | A `bannedCopy` wording in a page's visible text. Skipped without configured wordings. | Reword. |
|
|
89
|
+
| `duplicate-sentences` | warning | The same sentence rendered twice on one page. Waits while every page is noindex. | Remove one, or list it in `allowDuplicateSentences`. |
|
|
90
|
+
| `quote-sources` | warning | A `<blockquote>` not word for word in `quoteSources`; a configured source that is missing. Skipped without sources. | Quote the source exactly; restore the step that writes the source. |
|
|
91
|
+
| `rental-facts` | warning | On rental pages (the rental blocks' `data-rental-stats` / `data-rental-description` markers): the fact row against the same number in the owner's German description; a perk line of `src/data/perks.ts` a unit's amenities do not back. | The customer corrects the PMS; a confirmed one goes into `factCheckAccepted`. |
|
|
92
|
+
|
|
93
|
+
A check that does not apply to the site reports `skipped`; a check that fails itself reports
|
|
94
|
+
`failed` and never blocks.
|
|
95
|
+
|
|
96
|
+
A check whose outcome depends on PMS data, not on the site's code, is a warning: the integration
|
|
97
|
+
runs in every build, the nightly deploy builds included.
|
|
98
|
+
|
|
99
|
+
## The report
|
|
100
|
+
|
|
101
|
+
`dist/site-checks.json`:
|
|
102
|
+
|
|
103
|
+
```json
|
|
104
|
+
{
|
|
105
|
+
"ranAt": "2026-10-08T14:00:00.000Z",
|
|
106
|
+
"durationMs": 812,
|
|
107
|
+
"results": [
|
|
108
|
+
{ "id": "html-comments", "status": "ok", "findings": [], "omitted": 0 },
|
|
109
|
+
{
|
|
110
|
+
"id": "donor-terms",
|
|
111
|
+
"status": "error",
|
|
112
|
+
"findings": [
|
|
113
|
+
{ "path": "index.html", "message": "donor term \"brisenhof\" in the visible text: \"…\"" }
|
|
114
|
+
],
|
|
115
|
+
"omitted": 0
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
`status` is `ok`, `warning`, `error`, `skipped` or `failed`. At most 25 findings are kept per
|
|
122
|
+
check; `omitted` counts the rest. The build worker merges the file into the report of its own
|
|
123
|
+
checks (below), so the controller stores both families alike. The worker never uploads the file:
|
|
124
|
+
it names source paths and configured terms.
|
|
125
|
+
|
|
126
|
+
## The build worker's checks
|
|
127
|
+
|
|
128
|
+
The package also holds the dist checks AI Studio's build worker runs over `dist/` after every
|
|
129
|
+
build of every website, whether or not the site installed this package: `site-manifest`,
|
|
130
|
+
`key-pages`, `not-found-beacon`, `internal-links`, `legal-pages`, `page-metadata`,
|
|
131
|
+
`placeholder-content`, `insecure-resources` and `sitemap`, all warnings. The integration never runs
|
|
132
|
+
them and a site configures nothing for them; their findings show up next to the site checks'. They
|
|
133
|
+
are exported from `@v-office/site-checks/dist-checks` (`runDistChecks(distDir, { isAstro, siteUrl })`)
|
|
134
|
+
for the worker.
|
|
135
|
+
|
|
136
|
+
## Programmatic use
|
|
137
|
+
|
|
138
|
+
```ts
|
|
139
|
+
import { runSiteChecks } from "@v-office/site-checks";
|
|
140
|
+
|
|
141
|
+
const report = await runSiteChecks({
|
|
142
|
+
root: "/path/to/site",
|
|
143
|
+
distDir: "/path/to/site/dist",
|
|
144
|
+
config: { optimizeDepsInclude: ["react"] },
|
|
145
|
+
});
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Without a `dist/`, the checks that need built pages report `skipped`.
|
|
149
|
+
|
|
150
|
+
## Development
|
|
151
|
+
|
|
152
|
+
`pnpm check` (tsc, oxlint, oxfmt --check) · `pnpm test` (vitest) · `pnpm build` (tsdown).
|
|
153
|
+
See `AGENTS.md` for the rules and the release steps.
|
package/dist/astro.d.mts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { i as SiteChecksOptions } from "./options-CANJso9Q.mjs";
|
|
2
|
+
//#region src/astro.d.ts
|
|
3
|
+
/** The part of Astro's resolved config the checks read. A structural subset, so that astro is a
|
|
4
|
+
* devDependency for the compile-time type test only; `__tests__/types.test.ts` proves Astro's
|
|
5
|
+
* `AstroIntegration` accepts the result. */
|
|
6
|
+
export interface SiteChecksAstroConfig {
|
|
7
|
+
root: URL;
|
|
8
|
+
srcDir: URL;
|
|
9
|
+
publicDir: URL;
|
|
10
|
+
site?: string | undefined;
|
|
11
|
+
trailingSlash?: string | undefined;
|
|
12
|
+
vite: {
|
|
13
|
+
optimizeDeps?: {
|
|
14
|
+
include?: string[] | undefined;
|
|
15
|
+
} | undefined;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface SiteChecksIntegration {
|
|
19
|
+
name: string;
|
|
20
|
+
hooks: {
|
|
21
|
+
"astro:config:done": (ctx: {
|
|
22
|
+
config: SiteChecksAstroConfig;
|
|
23
|
+
}) => void;
|
|
24
|
+
"astro:build:done": (ctx: {
|
|
25
|
+
dir: URL;
|
|
26
|
+
}) => Promise<void>;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The checks as an Astro integration: `integrations: [siteManifest(), siteChecks()]`. After the
|
|
31
|
+
* build it runs every check over the project and `dist/`, writes `dist/site-checks.json`, prints
|
|
32
|
+
* one line per check that found something, and refuses the build (throws, so `astro build` exits
|
|
33
|
+
* non-zero) when a check with severity `error` found something. The file is written before the
|
|
34
|
+
* throw: the build worker reads the report of a refused build.
|
|
35
|
+
*/
|
|
36
|
+
export declare function siteChecks(options?: SiteChecksOptions): SiteChecksIntegration;
|
|
37
|
+
//#endregion
|
package/dist/astro.mjs
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { a as writeSiteChecksReport, d as runSiteChecks, i as summaryLines, l as blockingResults, m as checks, n as refusalMessage, p as loadOptions } from "./report-xp_FHnYb.mjs";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
//#region src/astro.ts
|
|
4
|
+
/**
|
|
5
|
+
* The checks as an Astro integration: `integrations: [siteManifest(), siteChecks()]`. After the
|
|
6
|
+
* build it runs every check over the project and `dist/`, writes `dist/site-checks.json`, prints
|
|
7
|
+
* one line per check that found something, and refuses the build (throws, so `astro build` exits
|
|
8
|
+
* non-zero) when a check with severity `error` found something. The file is written before the
|
|
9
|
+
* throw: the build worker reads the report of a refused build.
|
|
10
|
+
*/
|
|
11
|
+
function siteChecks(options = {}) {
|
|
12
|
+
let paths = {
|
|
13
|
+
root: process.cwd(),
|
|
14
|
+
srcDir: "",
|
|
15
|
+
publicDir: ""
|
|
16
|
+
};
|
|
17
|
+
let config = {
|
|
18
|
+
site: void 0,
|
|
19
|
+
optimizeDepsInclude: [],
|
|
20
|
+
trailingSlash: void 0
|
|
21
|
+
};
|
|
22
|
+
let resolved;
|
|
23
|
+
return {
|
|
24
|
+
name: "@v-office/site-checks",
|
|
25
|
+
hooks: {
|
|
26
|
+
"astro:config:done": ({ config: astro }) => {
|
|
27
|
+
paths = {
|
|
28
|
+
root: fileURLToPath(astro.root),
|
|
29
|
+
srcDir: fileURLToPath(astro.srcDir),
|
|
30
|
+
publicDir: fileURLToPath(astro.publicDir)
|
|
31
|
+
};
|
|
32
|
+
config = {
|
|
33
|
+
site: astro.site,
|
|
34
|
+
optimizeDepsInclude: astro.vite.optimizeDeps?.include ?? [],
|
|
35
|
+
trailingSlash: astro.trailingSlash
|
|
36
|
+
};
|
|
37
|
+
resolved = loadOptions(paths.root, options);
|
|
38
|
+
},
|
|
39
|
+
"astro:build:done": async ({ dir }) => {
|
|
40
|
+
const distDir = fileURLToPath(dir);
|
|
41
|
+
const report = await runSiteChecks({
|
|
42
|
+
...paths,
|
|
43
|
+
distDir,
|
|
44
|
+
config,
|
|
45
|
+
options: resolved ?? loadOptions(paths.root, options)
|
|
46
|
+
}, checks);
|
|
47
|
+
writeSiteChecksReport(distDir, report);
|
|
48
|
+
for (const line of summaryLines(report)) console.warn(line);
|
|
49
|
+
if (blockingResults(report).length > 0) throw new Error(refusalMessage(report));
|
|
50
|
+
console.log(`[site-checks] ${report.results.length} checks, nothing refused`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { siteChecks };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { S as Severity, _ as CheckStatus, a as blockingResults, b as Finding, g as CheckRun, h as CheckResult, l as summarizeBlocking, m as CheckReport, n as MAX_MESSAGE_CHARS, r as MAX_PATH_CHARS, s as SITE_CHECKS_FILE, t as MAX_FINDINGS_PER_CHECK, v as DistCheck, x as Page, y as DistContext } from "./runner-CK4iXk8Z.mjs";
|
|
2
|
+
//#region src/distChecks/index.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The dist checks: the platform's checks over a build's `dist/`, run by the build worker on every
|
|
5
|
+
* build of every website at the worker's pinned version of this package — public sites, the guest
|
|
6
|
+
* and owner apps, and sites that never installed it. The site checks (`checks/`) are the other
|
|
7
|
+
* family: they run inside a site's own `astro build`, at the site's pinned version. What decides
|
|
8
|
+
* the family is who runs a check, not what it reads: several site checks read `dist/` too. A check
|
|
9
|
+
* every website must pass, whether or not it adopted this package, belongs here.
|
|
10
|
+
* `@v-office/site-checks/dist-checks` is this file; the integration never runs these.
|
|
11
|
+
* See docs/website-platform/process/10-dist-checks.md.
|
|
12
|
+
*/
|
|
13
|
+
export declare const distChecks: readonly DistCheck[];
|
|
14
|
+
/** Runs every dist check over `distDir`. Never throws: a check that throws is a `failed` result,
|
|
15
|
+
* an unreadable `distDir` fails every check the same way. */
|
|
16
|
+
export declare const runDistChecks: (distDir: string, opts: {
|
|
17
|
+
isAstro: boolean;
|
|
18
|
+
siteUrl?: string | undefined;
|
|
19
|
+
}, list?: readonly DistCheck[]) => Promise<CheckReport>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { type CheckReport, type CheckResult, type CheckRun, type CheckStatus, type DistCheck, type DistContext, type Finding, MAX_FINDINGS_PER_CHECK, MAX_MESSAGE_CHARS, MAX_PATH_CHARS, type Page, SITE_CHECKS_FILE, type Severity, blockingResults, summarizeBlocking };
|