[]previous and next page

BuildReport

What the last production build did, for the command line's summary.

What the last production build did, for the command line's summary. Written when the build finishes; a failed build leaves none.

Import#

ts
import type { BuildReport } from "@shadow-js/dusk/vite";

Signature#

ts
interface BuildReport {
  readonly steps: readonly BuildStep[];
  /** How many pages were prerendered. */
  readonly prerendered: number;
  /** Whether the secret scan ran, and how many text files it read. */
  readonly secretScan: { readonly enabled: boolean; readonly scanned: number };
  /** The adapter the build ran, with its output folder; undefined without one. */
  readonly adapter: { readonly name: string; readonly outDir: string } | undefined;
  /** What the adapter logged (`context.log`), in order. */
  readonly adapterLog: readonly string[];
}

Members#

Name Type Description
steps readonly steps: readonly BuildStep[]
prerendered readonly prerendered: number How many pages were prerendered.
secretScan readonly secretScan: { readonly enabled: boolean; readonly scanned: number } Whether the secret scan ran, and how many text files it read.
adapter readonly adapter: { readonly name: string; readonly outDir: string } | undefined The adapter the build ran, with its output folder; undefined without one.
adapterLog readonly adapterLog: readonly string[] What the adapter logged (context.log), in order.