From 2498184585bec3427dacaee58d7d5b0380165693 Mon Sep 17 00:00:00 2001 From: harlan Date: Sun, 3 Mar 2024 18:22:49 +1100 Subject: [PATCH] chore: release docs / fix deployment --- .../1.guide/guides/generating-static-reports.md | 12 ++++++++++++ package.json | 1 + 2 files changed, 13 insertions(+) diff --git a/docs/content/1.guide/guides/generating-static-reports.md b/docs/content/1.guide/guides/generating-static-reports.md index 2d0e6128..910d4350 100644 --- a/docs/content/1.guide/guides/generating-static-reports.md +++ b/docs/content/1.guide/guides/generating-static-reports.md @@ -227,3 +227,15 @@ This will generate a report like the following (`json` sample): } ] ``` + +## LHCI Reports + +You can upload your reports to a Lighthouse CI server using the `lighthouseServer` reporter. + +You will need to provide the `--lhci-host` and `--lhci-build-token` flags. + +```bash +unlighthouse-ci --site --reporter lighthouseServer --lhci-host --lhci-build-token +``` + +This will upload your reports to the Lighthouse CI server. diff --git a/package.json b/package.json index 04dd1061..b158aafb 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "scripts": { "cli": "JITI_ESM_RESOLVE=1 node packages/cli/dist/cli.mjs", "ci": "node packages/cli/dist/ci.mjs", + "ci:docs": "node packages/cli/dist/ci.mjs --site unlighthouse.dev --build-static --debug", "build": "pnpm run build:pkg", "build:docs": "cd docs && pnpm i && nuxi build", "build:pkg": "pnpm -r --filter=./packages/** run build",