lighthouse 9.5.0-dev.20221204 → 9.5.0-dev.20221205

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/cli/bin.js CHANGED
@@ -27,11 +27,9 @@ import * as commands from './commands/commands.js';
27
27
  import * as Printer from './printer.js';
28
28
  import {getFlags} from './cli-flags.js';
29
29
  import {runLighthouse} from './run.js';
30
- import {generateConfig, generateLegacyConfig} from '../core/index.js';
31
30
  import {askPermission} from './sentry-prompt.js';
32
31
  import {LH_ROOT} from '../root.js';
33
32
  import {Sentry} from '../core/lib/sentry.js';
34
- import {getConfigDisplayString} from '../core/config/config.js';
35
33
 
36
34
  const pkg = JSON.parse(fs.readFileSync(LH_ROOT + '/package.json', 'utf-8'));
37
35
 
@@ -116,17 +114,6 @@ async function begin() {
116
114
  cliFlags.precomputedLanternData = data;
117
115
  }
118
116
 
119
- if (cliFlags.printConfig) {
120
- if (cliFlags.legacyNavigation) {
121
- const config = await generateLegacyConfig(configJson, cliFlags);
122
- process.stdout.write(config.getPrintString());
123
- } else {
124
- const config = await generateConfig(configJson, cliFlags);
125
- process.stdout.write(getConfigDisplayString(config));
126
- }
127
- return;
128
- }
129
-
130
117
  // By default, cliFlags.enableErrorReporting is undefined so the user is
131
118
  // prompted. This can be overriden with an explicit flag or by the cached
132
119
  // answer returned by askPermission().
package/cli/cli-flags.js CHANGED
@@ -113,11 +113,6 @@ function getYargsParser(manualArgv) {
113
113
  default: false,
114
114
  describe: 'Prints a list of all required trace categories and exits',
115
115
  },
116
- 'print-config': {
117
- type: 'boolean',
118
- default: false,
119
- describe: 'Print the normalized config for the given config and options, then exit.',
120
- },
121
116
  'debug-navigation': {
122
117
  type: 'boolean',
123
118
  describe: 'Pause after page load to wait for permission to continue the run, evaluate `continueLighthouseRun` in the console to continue.',
@@ -212,7 +207,7 @@ function getYargsParser(manualArgv) {
212
207
  },
213
208
  })
214
209
  .group([
215
- 'save-assets', 'list-all-audits', 'list-locales', 'list-trace-categories', 'print-config', 'additional-trace-categories',
210
+ 'save-assets', 'list-all-audits', 'list-locales', 'list-trace-categories', 'additional-trace-categories',
216
211
  'config-path', 'preset', 'chrome-flags', 'port', 'hostname', 'form-factor', 'screenEmulation', 'emulatedUserAgent',
217
212
  'max-wait-for-load', 'enable-error-reporting', 'gather-mode', 'audit-mode',
218
213
  'only-audits', 'only-categories', 'skip-audits', 'budget-path',
@@ -317,7 +312,7 @@ Example: --output-path=./lighthouse-results.html`,
317
312
  // - We're just printing the config.
318
313
  // - We're in auditMode (and we have artifacts already)
319
314
  // If one of these don't apply, if no URL, stop the program and ask for one.
320
- const isPrintSomethingMode = argv.listAllAudits || argv.listLocales || argv.listTraceCategories || argv.printConfig;
315
+ const isPrintSomethingMode = argv.listAllAudits || argv.listLocales || argv.listTraceCategories;
321
316
  const isOnlyAuditMode = !!argv.auditMode && !argv.gatherMode;
322
317
  if (isPrintSomethingMode || isOnlyAuditMode) {
323
318
  return true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "9.5.0-dev.20221204",
4
+ "version": "9.5.0-dev.20221205",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {
package/readme.md CHANGED
@@ -85,7 +85,6 @@ Configuration:
85
85
  --save-assets Save the trace contents & devtools logs to disk [boolean] [default: false]
86
86
  --list-all-audits Prints a list of all available audits and exits [boolean] [default: false]
87
87
  --list-trace-categories Prints a list of all required trace categories and exits [boolean] [default: false]
88
- --print-config Print the normalized config for the given config and options, then exit. [boolean] [default: false]
89
88
  --additional-trace-categories Additional categories to capture with the trace (comma-delimited). [string]
90
89
  --config-path The path to the config JSON.
91
90
  An example config file: core/config/lr-desktop-config.js [string]
@@ -335,14 +334,10 @@ This section details services that have integrated Lighthouse data. If you're wo
335
334
 
336
335
  * **[Screpy](https://screpy.com)** - Screpy is a web analysis tool that can analyze all pages of your websites in one dashboard and monitor them with your team. It's powered by Lighthouse and it also includes some different analysis tools (SERP, W3C, Uptime, etc). Screpy has free and paid plans.
337
336
 
338
- * **[Lighthouse Keeper](https://lighthouse-keeper.com/)** - Lighthouse Keeper monitors your pages' Lighthouse scores and notifies you if they drop below your thresholds. Lighthouse Keeper is a free service that monitors up to 3 URLs once per day.
339
-
340
337
  * **[Siteimprove Performance](https://siteimprove.com/en/performance/)** — Siteimprove Performance is a web Performance monitoring solution that enables a marketer, manager or decision maker to understand and optimize website load times. Get easy-to-use insights with a focus on quick and impactful wins. Siteimprove Performance is a paid product with a free 14-day trial.
341
338
 
342
339
  * **[SpeedCurve](https://speedcurve.com)** — SpeedCurve is a tool for continuously monitoring web performance across different browsers, devices, and regions. It can aggregate any metric including Lighthouse scores across multiple pages and sites, and allows you to set performance budgets with Slack or email alerts. SpeedCurve is a paid product with a free 30-day trial.
343
340
 
344
- * **[Speedrank](https://speedrank.app)** - Speedrank monitors the performance of your website in the background. It displays Lighthouse reports over time and delivers recommendations for improvement. Speedrank is a paid product with 14-day-trial.
345
-
346
341
  * **[Foo](https://www.foo.software/lighthouse)** - Lighthouse-as-a-service offering free and premium plans. Provides monitoring and historical reporting of Lighthouse audits with CircleCI, GitHub, and other integrations. Features include Slack notifications, PR comment reporting and more.
347
342
 
348
343
  * **[Apdex](https://apdex.co)** - Apdex is a website performance service. The main features are historical Lighthouse report visualizations, mobile/desktop options, alerts, uptime monitoring, and more. There are flexible paid plans and a 30-day free trial.
@@ -361,18 +356,12 @@ This section details services that have integrated Lighthouse data. If you're wo
361
356
 
362
357
  * **[PageWatch](https://pagewatch.dev/)** — PageWatch is a tool to find problem pages on your website. It provides insights into spelling errors, layout issues, slow pages (powered by Lighthouse) and more. PageWatch is offered via free and paid plans.
363
358
 
364
- * **[SEO Guard](https://www.seo-guard.com)** — SEO Guard is a website monitoring solution. It provides metrics based on Lighthouse scores. The service is offered via free and paid premium plans.
365
-
366
359
  * **[Fluxguard](https://fluxguard.com/)** - Fluxguard provides website DOM change monitoring orchestrated with Google Puppeteer, and audited by Lighthouse. Fluxguard is a freemium product, with monthly monitoring of up to 75 pages for free.
367
360
 
368
361
  * **[Microlink](https://microlink.io)** — Microlink is a cloud browser as API. It offers Lighthouse reports on demand, making it easy to build any service on top. Similar functionality is available via the underlying open-source project named browserless.
369
362
 
370
- * **[Peyk](https://peyk.com)** - Peyk is a website change detection & monitoring service. Peyk can detect changes in cookies, network requests, technologies, local & session storage, lighthouse audits, screenshots and so much more. Peyk is offered via free and paid plans.
371
-
372
363
  * **[Wattspeed](https://wattspeed.com/)** — Wattspeed is a free tool that generates snapshots - historical captures of your web pages that include Lighthouse scores, a list of technologies, W3C HTML validator results, DOM size, mixed content info, and more.
373
364
 
374
- * **[AwesomeTechStack](https://awesometechstack.com)** — AwesomeTechStack is a free to use website tech stack analyzer. AwesomeTechStack provides insights into the security, modernity, and performance of any website's technology stack and guidance to improve performance. Lighthouse insights are a crucial part of a website's tech stack rating.
375
-
376
365
  ## Plugins
377
366
 
378
367
  * **[lighthouse-plugin-field-performance](https://github.com/treosh/lighthouse-plugin-field-performance)** - a plugin that adds real-user performance metrics for the URL using the data from [Chrome UX Report](https://developers.google.com/web/tools/chrome-user-experience-report/).
@@ -387,35 +376,27 @@ Other awesome open source projects that use Lighthouse.
387
376
 
388
377
  * **[auto-lighthouse](https://github.com/TGiles/auto-lighthouse)** - a CLI for crawling a domain and generating mobile and desktop reports for each page.
389
378
  * **[Exthouse](https://github.com/treosh/exthouse)** - Analyze the impact of a browser extension on web performance.
390
- * **[Garie](https://github.com/boyney123/garie)** - An open source tool for monitoring performance using Lighthouse, PageSpeed Insights, [Prometheus](https://prometheus.io/), [Grafana](https://grafana.com/) and [Docker](https://www.docker.com/).
391
379
  * **[Gimbal](https://labs.moduscreate.com/gimbal-web-performance-audit-budgeting)** - An [open source (MIT licensed)](https://github.com/ModusCreateOrg/gimbal) tool used to measure, analyze, and budget aspects of a web application. Gimbal also integrates reports with GitHub pull requests.
392
380
  * **[Gradle Lighthouse Plugin](https://github.com/Cognifide/gradle-lighthouse-plugin)** - An open source Gradle plugin that runs Lighthouse tests on multiple URLs and asserts category score thresholds (useful in continuous integration).
393
- * **[lightcrawler](https://github.com/github/lightcrawler)** - Crawl a website and run each page found through Lighthouse.
394
381
  * **[lighthouse-badges](https://github.com/emazzotta/lighthouse-badges)** - Generate gh-badges (shields.io) based on Lighthouse performance.
395
- * **[lighthouse-batch](https://www.npmjs.com/package/lighthouse-batch)** - Run Lighthouse over a number of sites and generate a summary of their metrics/scores.
396
- * **[lighthouse-batch-parallel](https://www.npmjs.com/package/lighthouse-batch-parallel)** - Run multiple Lighthouse runs in parallel to accelerate the data collecting process, get the result stream (csv, json, js object) in your own process (warning: performance results may be volatile).
382
+ * **[lighthouse-batch](https://github.com/mikestead/lighthouse-batch)** - Run Lighthouse over a number of sites and generate a summary of their metrics/scores.
383
+ * **[lighthouse-batch-parallel](https://github.com/Carr1005/lighthouse-batch-parallel)** - Run multiple Lighthouse runs in parallel to accelerate the data collecting process, get the result stream (csv, json, js object) in your own process (warning: performance results may be volatile).
397
384
  * **[lighthouse-check-action](https://github.com/foo-software/lighthouse-check-action)** - A GitHub Action to run Lighthouse in a workflow, featuring Slack notifications and report upload to S3.
398
385
  * **[lighthouse-check-orb](https://circleci.com/orbs/registry/orb/foo-software/lighthouse-check)** - A CircleCI Orb to run Lighthouse in a workflow, featuring Slack notifications and report upload to S3.
399
386
  * **[andreasonny83/lighthouse-ci](https://github.com/andreasonny83/lighthouse-ci)** - Run Lighthouse and assert scores satisfy your custom thresholds.
400
387
  * **[GoogleChrome/lighthouse-ci](https://github.com/GoogleChrome/lighthouse-ci)** - (**official**) Automate running Lighthouse for every commit, viewing the changes, and preventing regressions.
401
388
  * **[lighthouse-ci-action](https://github.com/treosh/lighthouse-ci-action)** - A GitHub Action that makes it easy to run Lighthouse in CI and keep your pages small using performance budgets.
402
- * **[lighthouse-cron](https://github.com/thearegee/lighthouse-cron)** - Cron multiple batch Lighthouse audits and emit results for sending to remote server.
403
389
  * **[lighthouse-gh-reporter](https://github.com/carlesnunez/lighthouse-gh-reporter)** - Run Lighthouse in CI and report back in a comment on your pull requests
404
- * **[lighthouse-hue](https://github.com/ebidel/lighthouse-hue)** - Set the color of Philips Hue lights based on a Lighthouse score
405
390
  * **[lighthouse-jest-example](https://github.com/justinribeiro/lighthouse-jest-example)** - Gather performance metrics via Lighthouse and assert results with Jest; uses Puppeteer to start Chrome with network emulation settings defined by WebPageTest.
406
- * **[lighthouse-lambda](https://github.com/joytocode/lighthouse-lambda)** - Run Lighthouse on AWS Lambda with prebuilt stable desktop Headless Chrome.
407
- * **[lighthouse-magic-light](https://github.com/manekinekko/lighthouse-magic-light)** - Set the color of the MagicLight Bluetooth Smart Light Bulb based on Lighthouse score
391
+ * **[lighthouse-lambda](https://github.com/Otterseer/lighthouse-lambda)** - Run Lighthouse on AWS Lambda with prebuilt stable desktop Headless Chrome.
408
392
  * **[lighthouse-mocha-example](https://github.com/rishichawda/lighthouse-mocha-example)** - Run Lighthouse performance tests with Mocha and chrome-launcher.
409
393
  * **[lighthouse-monitor](https://github.com/verivox/lighthouse-monitor)** - Run Lighthouse against all your URLs. Send metrics to any backend you want, save all reports with automatic data retention, and compare any two results in a web UI.
410
394
  * **[lighthouse-persist](https://github.com/foo-software/lighthouse-persist)** - Run Lighthouse and upload HTML reports to an AWS S3 bucket.
411
395
  * **[lighthouse-viewer](https://github.com/dvelasquez/lighthouse-viewer/tree/main/packages/lighthouse-viewer)** - Render the Lighthouse JSON into a report, using the Lighthouse Report Renderer repackaged as UMD and ESM. Also available with React, Svelte and Vue wrappers.
412
396
  * **[lighthouse4u](https://github.com/godaddy/lighthouse4u)** - LH4U provides Google Lighthouse as a service, surfaced by both a friendly UI+API, and backed by Elastic Search for easy querying and visualization.
413
- * **[performance-budgets](https://performance-budgets.netlify.com/)** - Easily assert Lighthouse budgets with Docker.
414
- * **[pwmetrics](https://github.com/paulirish/pwmetrics/)** - Gather performance metrics
415
397
  * **[react-lighthouse-viewer](https://www.npmjs.com/package/react-lighthouse-viewer)** - Render a Lighthouse JSON report in a React Component.
416
398
  * **[site-audit-seo](https://github.com/viasite/site-audit-seo)** - CLI tool for SEO site audit, crawl site, lighthouse each page. Output to console and tables in csv, xlsx, json, web or Google Drive.
417
399
  * **[webpack-lighthouse-plugin](https://github.com/addyosmani/webpack-lighthouse-plugin)** - Run Lighthouse from a Webpack build.
418
- * **[is-website-vulnerable](https://github.com/lirantal/is-website-vulnerable)** - An open source Node.js CLI tool that finds publicly known security vulnerabilities in a website's frontend JavaScript libraries.
419
400
  * **[cypress-audit](https://github.com/mfrachet/cypress-audit)** - Run Lighthouse and Pa11y audits directly in your E2E test suites.
420
401
 
421
402
  ## FAQ
@@ -53,8 +53,6 @@ export interface CliFlags extends Flags {
53
53
  verbose: boolean;
54
54
  /** A flag to enable logLevel 'silent'. */
55
55
  quiet: boolean;
56
- /** A flag to print the normalized config for the given config and options, then exit. */
57
- printConfig: boolean;
58
56
  /** Use the legacy navigation runner to gather CLI results. */
59
57
  legacyNavigation: boolean;
60
58
  /** Path to the file where precomputed lantern data should be read from. */