beam-cli
Version:
A beautifully simple CLI for running Lighthouse audits on a statically generated (SSG) website
22 lines (21 loc) • 899 B
TypeScript
import { RunnerResultWrapper } from '../lighthouse/runner-results.js';
import type { LighthouseCategories } from '../options/types.js';
declare type LighthouseCategoryScores = Record<LighthouseCategories, number>;
export declare type LighthouseResultSummaryScores = Partial<LighthouseCategoryScores>;
export interface LighthouseResultSummary {
name: string;
url: string;
htmlPath?: string;
sizeDisplay: string;
size: number;
scores: LighthouseResultSummaryScores;
mobile: boolean;
}
export interface LighthouseResultsSummary {
data: Record<string, LighthouseResultSummary>;
date: number;
}
/** Extracts the data that we are interested in
* from the lighthouse audit results */
export declare const analyseLighthouseResults: (runnerResults: Record<string, RunnerResultWrapper>, generatedHTMLFiles: Record<string, string>) => LighthouseResultsSummary;
export {};