lighthouse 9.5.0-dev.20220728 → 9.5.0-dev.20220729
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/CONTRIBUTING.md +11 -11
- package/{lighthouse-cli → cli}/bin.js +5 -5
- package/{lighthouse-cli → cli}/cli-flags.js +1 -1
- package/{lighthouse-cli → cli}/commands/commands.js +0 -0
- package/{lighthouse-cli → cli}/commands/list-audits.js +1 -1
- package/{lighthouse-cli → cli}/commands/list-locales.js +0 -0
- package/{lighthouse-cli → cli}/commands/list-trace-categories.js +1 -1
- package/{lighthouse-cli → cli}/index.js +0 -0
- package/{lighthouse-cli → cli}/package.json +0 -0
- package/{lighthouse-cli → cli}/printer.js +0 -0
- package/{lighthouse-cli → cli}/run.js +3 -3
- package/{lighthouse-cli → cli}/sentry-prompt.js +0 -0
- package/{lighthouse-cli → cli}/test/smokehouse/__snapshots__/report-assert-test.js.snap +0 -0
- package/{lighthouse-cli → cli}/test/smokehouse/core-tests.js +0 -0
- package/{lighthouse-cli → cli}/test/smokehouse/frontends/back-compat-util.js +0 -0
- package/{lighthouse-cli → cli}/test/smokehouse/frontends/lib.js +0 -0
- package/{lighthouse-cli → cli}/test/smokehouse/frontends/node.js +0 -0
- package/{lighthouse-cli → cli}/test/smokehouse/frontends/smokehouse-bin.js +1 -1
- package/{lighthouse-cli → cli}/test/smokehouse/lib/child-process-error.js +0 -0
- package/{lighthouse-cli → cli}/test/smokehouse/lib/concurrent-mapper.js +0 -0
- package/{lighthouse-cli → cli}/test/smokehouse/lib/local-console.js +0 -0
- package/{lighthouse-cli → cli}/test/smokehouse/lighthouse-runners/bundle.js +4 -4
- package/{lighthouse-cli → cli}/test/smokehouse/lighthouse-runners/cli.js +2 -2
- package/{lighthouse-cli → cli}/test/smokehouse/lighthouse-runners/devtools.js +3 -3
- package/{lighthouse-cli → cli}/test/smokehouse/readme.md +1 -1
- package/{lighthouse-cli → cli}/test/smokehouse/report-assert-test.js +3 -3
- package/{lighthouse-cli → cli}/test/smokehouse/report-assert.js +0 -0
- package/{lighthouse-cli → cli}/test/smokehouse/smokehouse.js +0 -0
- package/{lighthouse-cli → cli}/test/smokehouse/version-check-test.js +0 -0
- package/{lighthouse-cli → cli}/test/smokehouse/version-check.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/accesskeys.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-allowed-attr.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-command-name.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-hidden-body.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-hidden-focus.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-input-field-name.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-meter-name.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-progressbar-name.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-required-attr.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-required-children.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-required-parent.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-roles.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-toggle-field-name.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-tooltip-name.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-treeitem-name.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-valid-attr-value.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/aria-valid-attr.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/axe-audit.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/button-name.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/bypass.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/color-contrast.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/definition-list.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/dlitem.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/document-title.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/duplicate-id-active.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/duplicate-id-aria.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/form-field-multiple-labels.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/frame-title.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/heading-order.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/html-has-lang.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/html-lang-valid.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/image-alt.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/input-image-alt.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/label.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/link-name.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/list.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/listitem.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/manual/custom-controls-labels.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/manual/custom-controls-roles.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/manual/focus-traps.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/manual/focusable-controls.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/manual/interactive-element-affordance.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/manual/logical-tab-order.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/manual/managed-focus.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/manual/offscreen-content-hidden.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/manual/use-landmarks.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/manual/visual-order-follows-dom.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/meta-refresh.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/meta-viewport.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/object-alt.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/tabindex.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/td-headers-attr.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/th-has-data-cells.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/valid-lang.js +0 -0
- package/{lighthouse-core → core}/audits/accessibility/video-caption.js +0 -0
- package/{lighthouse-core → core}/audits/audit.js +0 -0
- package/{lighthouse-core → core}/audits/autocomplete.js +0 -0
- package/{lighthouse-core → core}/audits/bootup-time.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/byte-efficiency-audit.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/duplicated-javascript.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/efficient-animated-content.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/legacy-javascript.js +2 -2
- package/{lighthouse-core → core}/audits/byte-efficiency/modern-image-formats.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/offscreen-images.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/polyfill-graph-data.json +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/render-blocking-resources.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/total-byte-weight.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/unminified-css.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/unminified-javascript.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/unused-css-rules.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/unused-javascript.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/uses-long-cache-ttl.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/uses-optimized-images.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/uses-responsive-images-snapshot.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/uses-responsive-images.js +0 -0
- package/{lighthouse-core → core}/audits/byte-efficiency/uses-text-compression.js +0 -0
- package/{lighthouse-core → core}/audits/content-width.js +0 -0
- package/{lighthouse-core → core}/audits/critical-request-chains.js +0 -0
- package/{lighthouse-core → core}/audits/csp-xss.js +0 -0
- package/{lighthouse-core → core}/audits/deprecations.js +0 -0
- package/{lighthouse-core → core}/audits/diagnostics.js +0 -0
- package/{lighthouse-core → core}/audits/dobetterweb/charset.js +0 -0
- package/{lighthouse-core → core}/audits/dobetterweb/doctype.js +0 -0
- package/{lighthouse-core → core}/audits/dobetterweb/dom-size.js +0 -0
- package/{lighthouse-core → core}/audits/dobetterweb/geolocation-on-start.js +0 -0
- package/{lighthouse-core → core}/audits/dobetterweb/inspector-issues.js +0 -0
- package/{lighthouse-core → core}/audits/dobetterweb/js-libraries.js +0 -0
- package/{lighthouse-core → core}/audits/dobetterweb/no-document-write.js +0 -0
- package/{lighthouse-core → core}/audits/dobetterweb/no-vulnerable-libraries.js +0 -0
- package/{lighthouse-core → core}/audits/dobetterweb/notification-on-start.js +0 -0
- package/{lighthouse-core → core}/audits/dobetterweb/password-inputs-can-be-pasted-into.js +0 -0
- package/{lighthouse-core → core}/audits/dobetterweb/uses-http2.js +0 -0
- package/{lighthouse-core → core}/audits/dobetterweb/uses-passive-event-listeners.js +0 -0
- package/{lighthouse-core → core}/audits/errors-in-console.js +0 -0
- package/{lighthouse-core → core}/audits/final-screenshot.js +0 -0
- package/{lighthouse-core → core}/audits/font-display.js +0 -0
- package/{lighthouse-core → core}/audits/full-page-screenshot.js +0 -0
- package/{lighthouse-core → core}/audits/image-aspect-ratio.js +0 -0
- package/{lighthouse-core → core}/audits/image-size-responsive.js +0 -0
- package/{lighthouse-core → core}/audits/installable-manifest.js +0 -0
- package/{lighthouse-core → core}/audits/is-on-https.js +0 -0
- package/{lighthouse-core → core}/audits/largest-contentful-paint-element.js +0 -0
- package/{lighthouse-core → core}/audits/layout-shift-elements.js +0 -0
- package/{lighthouse-core → core}/audits/lcp-lazy-loaded.js +0 -0
- package/{lighthouse-core → core}/audits/long-tasks.js +0 -0
- package/{lighthouse-core → core}/audits/main-thread-tasks.js +0 -0
- package/{lighthouse-core → core}/audits/mainthread-work-breakdown.js +0 -0
- package/{lighthouse-core → core}/audits/manual/manual-audit.js +0 -0
- package/{lighthouse-core → core}/audits/manual/pwa-cross-browser.js +0 -0
- package/{lighthouse-core → core}/audits/manual/pwa-each-page-has-url.js +0 -0
- package/{lighthouse-core → core}/audits/manual/pwa-page-transitions.js +0 -0
- package/{lighthouse-core → core}/audits/maskable-icon.js +0 -0
- package/{lighthouse-core → core}/audits/metrics/cumulative-layout-shift.js +0 -0
- package/{lighthouse-core → core}/audits/metrics/experimental-interaction-to-next-paint.js +0 -0
- package/{lighthouse-core → core}/audits/metrics/first-contentful-paint-3g.js +0 -0
- package/{lighthouse-core → core}/audits/metrics/first-contentful-paint.js +0 -0
- package/{lighthouse-core → core}/audits/metrics/first-meaningful-paint.js +0 -0
- package/{lighthouse-core → core}/audits/metrics/interactive.js +0 -0
- package/{lighthouse-core → core}/audits/metrics/largest-contentful-paint.js +0 -0
- package/{lighthouse-core → core}/audits/metrics/max-potential-fid.js +0 -0
- package/{lighthouse-core → core}/audits/metrics/speed-index.js +0 -0
- package/{lighthouse-core → core}/audits/metrics/total-blocking-time.js +0 -0
- package/{lighthouse-core → core}/audits/metrics.js +0 -0
- package/{lighthouse-core → core}/audits/multi-check-audit.js +0 -0
- package/{lighthouse-core → core}/audits/network-requests.js +0 -0
- package/{lighthouse-core → core}/audits/network-rtt.js +0 -0
- package/{lighthouse-core → core}/audits/network-server-latency.js +0 -0
- package/{lighthouse-core → core}/audits/no-unload-listeners.js +0 -0
- package/{lighthouse-core → core}/audits/non-composited-animations.js +0 -0
- package/{lighthouse-core → core}/audits/oopif-iframe-test-audit.js +0 -0
- package/{lighthouse-core → core}/audits/performance-budget.js +0 -0
- package/{lighthouse-core → core}/audits/predictive-perf.js +0 -0
- package/{lighthouse-core → core}/audits/preload-fonts.js +0 -0
- package/{lighthouse-core → core}/audits/preload-lcp-image.js +0 -0
- package/{lighthouse-core → core}/audits/redirects.js +0 -0
- package/{lighthouse-core → core}/audits/resource-summary.js +0 -0
- package/{lighthouse-core → core}/audits/screenshot-thumbnails.js +0 -0
- package/{lighthouse-core → core}/audits/script-elements-test-audit.js +0 -0
- package/{lighthouse-core → core}/audits/script-treemap-data.js +0 -0
- package/{lighthouse-core → core}/audits/seo/canonical.js +0 -0
- package/{lighthouse-core → core}/audits/seo/crawlable-anchors.js +0 -0
- package/{lighthouse-core → core}/audits/seo/font-size.js +0 -0
- package/{lighthouse-core → core}/audits/seo/hreflang.js +0 -0
- package/{lighthouse-core → core}/audits/seo/http-status-code.js +0 -0
- package/{lighthouse-core → core}/audits/seo/is-crawlable.js +0 -0
- package/{lighthouse-core → core}/audits/seo/link-text.js +0 -0
- package/{lighthouse-core → core}/audits/seo/manual/structured-data.js +0 -0
- package/{lighthouse-core → core}/audits/seo/meta-description.js +0 -0
- package/{lighthouse-core → core}/audits/seo/plugins.js +0 -0
- package/{lighthouse-core → core}/audits/seo/robots-txt.js +0 -0
- package/{lighthouse-core → core}/audits/seo/tap-targets.js +0 -0
- package/{lighthouse-core → core}/audits/server-response-time.js +0 -0
- package/{lighthouse-core → core}/audits/service-worker.js +0 -0
- package/{lighthouse-core → core}/audits/splash-screen.js +0 -0
- package/{lighthouse-core → core}/audits/themed-omnibox.js +0 -0
- package/{lighthouse-core → core}/audits/third-party-facades.js +0 -0
- package/{lighthouse-core → core}/audits/third-party-summary.js +0 -0
- package/{lighthouse-core → core}/audits/timing-budget.js +0 -0
- package/{lighthouse-core → core}/audits/unsized-images.js +0 -0
- package/{lighthouse-core → core}/audits/user-timings.js +0 -0
- package/{lighthouse-core → core}/audits/uses-rel-preconnect.js +0 -0
- package/{lighthouse-core → core}/audits/uses-rel-preload.js +0 -0
- package/{lighthouse-core → core}/audits/valid-source-maps.js +0 -0
- package/{lighthouse-core → core}/audits/viewport.js +0 -0
- package/{lighthouse-core → core}/audits/violation-audit.js +0 -0
- package/{lighthouse-core → core}/audits/work-during-interaction.js +0 -0
- package/{lighthouse-core → core}/computed/computed-artifact.js +0 -0
- package/{lighthouse-core → core}/computed/critical-request-chains.js +0 -0
- package/{lighthouse-core → core}/computed/image-records.js +0 -0
- package/{lighthouse-core → core}/computed/js-bundles.js +0 -0
- package/{lighthouse-core → core}/computed/load-simulator.js +0 -0
- package/{lighthouse-core → core}/computed/main-resource.js +0 -0
- package/{lighthouse-core → core}/computed/main-thread-tasks.js +0 -0
- package/{lighthouse-core → core}/computed/manifest-values.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/cumulative-layout-shift.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/first-contentful-paint-all-frames.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/first-contentful-paint.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/first-meaningful-paint.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/interactive.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/lantern-first-contentful-paint.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/lantern-first-meaningful-paint.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/lantern-interactive.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/lantern-largest-contentful-paint.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/lantern-max-potential-fid.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/lantern-metric.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/lantern-speed-index.js +1 -1
- package/{lighthouse-core → core}/computed/metrics/lantern-total-blocking-time.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/largest-contentful-paint-all-frames.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/largest-contentful-paint.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/max-potential-fid.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/metric.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/navigation-metric.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/responsiveness.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/speed-index.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/tbt-utils.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/timing-summary.js +0 -0
- package/{lighthouse-core → core}/computed/metrics/total-blocking-time.js +0 -0
- package/{lighthouse-core → core}/computed/module-duplication.js +0 -0
- package/{lighthouse-core → core}/computed/network-analysis.js +0 -0
- package/{lighthouse-core → core}/computed/network-records.js +0 -0
- package/{lighthouse-core → core}/computed/page-dependency-graph.js +0 -0
- package/{lighthouse-core → core}/computed/processed-navigation.js +0 -0
- package/{lighthouse-core → core}/computed/processed-trace.js +0 -0
- package/{lighthouse-core → core}/computed/resource-summary.js +0 -0
- package/{lighthouse-core → core}/computed/screenshots.js +0 -0
- package/{lighthouse-core → core}/computed/speedline.js +0 -0
- package/{lighthouse-core → core}/computed/unused-css.js +0 -0
- package/{lighthouse-core → core}/computed/unused-javascript-summary.js +0 -0
- package/{lighthouse-core → core}/computed/user-timings.js +0 -0
- package/{lighthouse-core → core}/computed/viewport-meta.js +0 -0
- package/{lighthouse-core → core}/config/budget.js +0 -0
- package/{lighthouse-core → core}/config/config-helpers.js +0 -0
- package/{lighthouse-core → core}/config/config-plugin.js +0 -0
- package/{lighthouse-core → core}/config/config.js +0 -0
- package/{lighthouse-core → core}/config/constants.js +0 -0
- package/{lighthouse-core → core}/config/default-config.js +0 -0
- package/{lighthouse-core → core}/config/desktop-config.js +0 -0
- package/{lighthouse-core → core}/config/experimental-config.js +0 -0
- package/{lighthouse-core → core}/config/full-config.js +0 -0
- package/{lighthouse-core → core}/config/legacy-default-config.js +0 -0
- package/{lighthouse-core → core}/config/lr-desktop-config.js +0 -0
- package/{lighthouse-core → core}/config/lr-mobile-config.js +0 -0
- package/{lighthouse-core → core}/config/metrics-to-audits.js +0 -0
- package/{lighthouse-core → core}/config/perf-config.js +0 -0
- package/{lighthouse-core → core}/fraggle-rock/api.js +0 -0
- package/{lighthouse-core → core}/fraggle-rock/config/config.js +0 -0
- package/{lighthouse-core → core}/fraggle-rock/config/filters.js +0 -0
- package/{lighthouse-core → core}/fraggle-rock/config/validation.js +0 -0
- package/{lighthouse-core → core}/fraggle-rock/gather/base-artifacts.js +0 -0
- package/{lighthouse-core → core}/fraggle-rock/gather/base-gatherer.js +1 -1
- package/{lighthouse-core → core}/fraggle-rock/gather/driver.js +0 -0
- package/{lighthouse-core → core}/fraggle-rock/gather/navigation-runner.js +0 -0
- package/{lighthouse-core → core}/fraggle-rock/gather/runner-helpers.js +0 -0
- package/{lighthouse-core → core}/fraggle-rock/gather/session.js +0 -0
- package/{lighthouse-core → core}/fraggle-rock/gather/snapshot-runner.js +0 -0
- package/{lighthouse-core → core}/fraggle-rock/gather/timespan-runner.js +0 -0
- package/{lighthouse-core → core}/fraggle-rock/user-flow.js +0 -0
- package/{lighthouse-core → core}/gather/connections/connection.js +0 -0
- package/{lighthouse-core → core}/gather/connections/cri.js +0 -0
- package/{lighthouse-core → core}/gather/connections/raw.js +0 -0
- package/{lighthouse-core → core}/gather/driver/dom.js +0 -0
- package/{lighthouse-core → core}/gather/driver/environment.js +0 -0
- package/{lighthouse-core → core}/gather/driver/execution-context.js +0 -0
- package/{lighthouse-core → core}/gather/driver/navigation.js +0 -0
- package/{lighthouse-core → core}/gather/driver/network-monitor.js +0 -0
- package/{lighthouse-core → core}/gather/driver/network.js +0 -0
- package/{lighthouse-core → core}/gather/driver/prepare.js +0 -0
- package/{lighthouse-core → core}/gather/driver/service-workers.js +0 -0
- package/{lighthouse-core → core}/gather/driver/storage.js +0 -0
- package/{lighthouse-core → core}/gather/driver/target-manager.js +0 -0
- package/{lighthouse-core → core}/gather/driver/wait-for-condition.js +0 -0
- package/{lighthouse-core → core}/gather/driver.js +0 -0
- package/{lighthouse-core → core}/gather/fetcher.js +0 -0
- package/{lighthouse-core → core}/gather/gather-runner.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/accessibility.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/anchor-elements.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/cache-contents.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/console-messages.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/css-usage.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/devtools-log-compat.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/devtools-log.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/dobetterweb/doctype.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/dobetterweb/domstats.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/dobetterweb/optimized-images.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/dobetterweb/password-inputs-with-prevented-paste.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/dobetterweb/response-compression.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/dobetterweb/tags-blocking-first-paint.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/full-page-screenshot.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/gatherer.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/global-listeners.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/iframe-elements.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/image-elements.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/inputs.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/inspector-issues.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/installability-errors.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/js-usage.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/link-elements.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/main-document-content.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/meta-elements.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/network-user-agent.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/script-elements.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/scripts.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/seo/embedded-content.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/seo/font-size.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/seo/robots-txt.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/seo/tap-targets.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/service-worker.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/source-maps.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/stacks.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/trace-compat.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/trace-elements.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/trace.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/viewport-dimensions.js +0 -0
- package/{lighthouse-core → core}/gather/gatherers/web-app-manifest.js +0 -0
- package/{lighthouse-core → core}/index.cjs +0 -0
- package/{lighthouse-core → core}/index.js +1 -1
- package/{lighthouse-core → core}/lib/arbitrary-equality-map.js +0 -0
- package/{lighthouse-core → core}/lib/asset-saver.js +0 -0
- package/{lighthouse-core → core}/lib/axe.js +0 -0
- package/{lighthouse-core → core}/lib/cdt/Common.js +0 -0
- package/{lighthouse-core → core}/lib/cdt/Platform.js +0 -0
- package/{lighthouse-core → core}/lib/cdt/SDK.js +0 -0
- package/{lighthouse-core → core}/lib/cdt/generated/ParsedURL.js +0 -0
- package/{lighthouse-core → core}/lib/cdt/generated/SourceMap.js +0 -0
- package/{lighthouse-core → core}/lib/cdt/package.json +0 -0
- package/{lighthouse-core → core}/lib/csp-evaluator.js +0 -0
- package/{lighthouse-core → core}/lib/dependency-graph/base-node.js +0 -0
- package/{lighthouse-core → core}/lib/dependency-graph/cpu-node.js +0 -0
- package/{lighthouse-core → core}/lib/dependency-graph/network-node.js +0 -0
- package/{lighthouse-core → core}/lib/dependency-graph/simulator/connection-pool.js +0 -0
- package/{lighthouse-core → core}/lib/dependency-graph/simulator/dns-cache.js +0 -0
- package/{lighthouse-core → core}/lib/dependency-graph/simulator/network-analyzer.js +0 -0
- package/{lighthouse-core → core}/lib/dependency-graph/simulator/simulator-timing-map.js +0 -0
- package/{lighthouse-core → core}/lib/dependency-graph/simulator/simulator.js +0 -0
- package/{lighthouse-core → core}/lib/dependency-graph/simulator/tcp-connection.js +0 -0
- package/{lighthouse-core → core}/lib/deprecations-strings.js +0 -0
- package/{lighthouse-core → core}/lib/emulation.js +0 -0
- package/{lighthouse-core → core}/lib/i18n/README.md +2 -2
- package/{lighthouse-core → core}/lib/i18n/i18n.js +0 -0
- package/{lighthouse-core → core}/lib/icons.js +0 -0
- package/{lighthouse-core → core}/lib/lantern-trace-saver.js +0 -0
- package/{lighthouse-core → core}/lib/lh-env.js +0 -0
- package/{lighthouse-core → core}/lib/lh-error.js +0 -0
- package/{lighthouse-core → core}/lib/lh-trace-processor.js +0 -0
- package/{lighthouse-core → core}/lib/manifest-parser.js +0 -0
- package/{lighthouse-core → core}/lib/median-run.js +0 -0
- package/{lighthouse-core → core}/lib/minification-estimator.js +0 -0
- package/{lighthouse-core → core}/lib/minify-devtoolslog.js +0 -0
- package/{lighthouse-core → core}/lib/minify-trace.js +3 -3
- package/{lighthouse-core → core}/lib/navigation-error.js +0 -0
- package/{lighthouse-core → core}/lib/network-recorder.js +0 -0
- package/{lighthouse-core → core}/lib/network-request.js +0 -0
- package/{lighthouse-core → core}/lib/page-functions.js +0 -0
- package/{lighthouse-core → core}/lib/proto-preprocessor.js +0 -0
- package/{lighthouse-core → core}/lib/rect-helpers.js +0 -0
- package/{lighthouse-core → core}/lib/script-helpers.js +0 -0
- package/{lighthouse-core → core}/lib/sentry.js +0 -0
- package/{lighthouse-core → core}/lib/stack-packs.js +0 -0
- package/{lighthouse-core → core}/lib/statistics.js +0 -0
- package/{lighthouse-core → core}/lib/tappable-rects.js +0 -0
- package/{lighthouse-core → core}/lib/third-party-web.js +0 -0
- package/{lighthouse-core → core}/lib/timing-trace-saver.js +0 -0
- package/{lighthouse-core → core}/lib/tracehouse/cpu-profile-model.js +0 -0
- package/{lighthouse-core → core}/lib/tracehouse/main-thread-tasks.js +0 -0
- package/{lighthouse-core → core}/lib/tracehouse/task-groups.js +0 -0
- package/{lighthouse-core → core}/lib/tracehouse/task-summary.js +0 -0
- package/{lighthouse-core → core}/lib/tracehouse/trace-processor.js +0 -0
- package/{lighthouse-core → core}/lib/traces/pwmetrics-events.js +0 -0
- package/{lighthouse-core → core}/lib/url-shim.js +0 -0
- package/{lighthouse-core → core}/package.json +0 -0
- package/{lighthouse-core → core}/runner.js +0 -0
- package/{lighthouse-core → core}/scoring.js +0 -0
- package/{lighthouse-core → core}/scripts/download-chrome.sh +0 -0
- package/{lighthouse-core → core}/scripts/manual-chrome-launcher.js +1 -1
- package/{lighthouse-core → core}/scripts/package.json +0 -0
- package/{lighthouse-core → core}/util.cjs +1 -1
- package/eslint-local-rules.cjs +1 -1
- package/flow-report/test/common-test.tsx +1 -1
- package/flow-report/test/run-flow-report-tests.sh +1 -1
- package/flow-report/test/sample-flow.ts +1 -1
- package/flow-report/tsconfig.json +1 -1
- package/package.json +36 -36
- package/readme.md +4 -4
- package/report/clients/bundle.js +1 -1
- package/report/test/clients/bundle-test.js +1 -1
- package/report/test/generator/report-generator-test.js +2 -2
- package/report/test/renderer/category-renderer-test.js +2 -2
- package/report/test/renderer/i18n-test.js +1 -1
- package/report/test/renderer/performance-category-renderer-test.js +3 -3
- package/report/test/renderer/pwa-category-renderer-test.js +2 -2
- package/report/test/renderer/report-renderer-axe-test.js +3 -3
- package/report/test/renderer/report-renderer-test.js +3 -3
- package/report/test/renderer/report-ui-features-test.js +2 -2
- package/report/test/renderer/util-test.js +2 -2
- package/shared/localization/locales/ar-XB.json +641 -641
- package/shared/localization/locales/ar.json +641 -641
- package/shared/localization/locales/bg.json +641 -641
- package/shared/localization/locales/ca.json +641 -641
- package/shared/localization/locales/cs.json +641 -641
- package/shared/localization/locales/da.json +641 -641
- package/shared/localization/locales/de.json +641 -641
- package/shared/localization/locales/el.json +641 -641
- package/shared/localization/locales/en-GB.json +641 -641
- package/shared/localization/locales/en-US.json +830 -830
- package/shared/localization/locales/en-XA.json +641 -641
- package/shared/localization/locales/en-XL.json +830 -830
- package/shared/localization/locales/es-419.json +641 -641
- package/shared/localization/locales/es.json +641 -641
- package/shared/localization/locales/fi.json +641 -641
- package/shared/localization/locales/fil.json +641 -641
- package/shared/localization/locales/fr.json +641 -641
- package/shared/localization/locales/he.json +641 -641
- package/shared/localization/locales/hi.json +641 -641
- package/shared/localization/locales/hr.json +641 -641
- package/shared/localization/locales/hu.json +641 -641
- package/shared/localization/locales/id.json +641 -641
- package/shared/localization/locales/it.json +641 -641
- package/shared/localization/locales/ja.json +641 -641
- package/shared/localization/locales/ko.json +641 -641
- package/shared/localization/locales/lt.json +641 -641
- package/shared/localization/locales/lv.json +641 -641
- package/shared/localization/locales/nl.json +641 -641
- package/shared/localization/locales/no.json +641 -641
- package/shared/localization/locales/pl.json +641 -641
- package/shared/localization/locales/pt-PT.json +641 -641
- package/shared/localization/locales/pt.json +641 -641
- package/shared/localization/locales/ro.json +641 -641
- package/shared/localization/locales/ru.json +641 -641
- package/shared/localization/locales/sk.json +641 -641
- package/shared/localization/locales/sl.json +641 -641
- package/shared/localization/locales/sr-Latn.json +641 -641
- package/shared/localization/locales/sr.json +641 -641
- package/shared/localization/locales/sv.json +641 -641
- package/shared/localization/locales/ta.json +641 -641
- package/shared/localization/locales/te.json +641 -641
- package/shared/localization/locales/th.json +641 -641
- package/shared/localization/locales/tr.json +641 -641
- package/shared/localization/locales/uk.json +641 -641
- package/shared/localization/locales/vi.json +641 -641
- package/shared/localization/locales/zh-HK.json +641 -641
- package/shared/localization/locales/zh-TW.json +641 -641
- package/shared/localization/locales/zh.json +641 -641
- package/shared/localization/swap-locale.js +3 -3
- package/shared/test/localization/format-test.js +5 -5
- package/shared/test/localization/swap-locale-test.js +8 -8
- package/third-party/chromium-synchronization/inspector-issueAdded-types-test.js +1 -1
- package/third-party/chromium-synchronization/installability-errors-test.js +1 -1
- package/tsconfig.json +84 -84
- package/types/artifacts.d.ts +7 -7
- package/types/audit.d.ts +1 -1
- package/types/config.d.ts +1 -1
- package/types/gatherer.d.ts +8 -8
- package/types/global-lh.d.ts +2 -2
- package/types/user-flow.d.ts +1 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
/**
|
|
11
11
|
* @fileoverview Minifies a trace by removing unnecessary events, throttling screenshots, etc.
|
|
12
12
|
* See the following files for necessary events:
|
|
13
|
-
* -
|
|
14
|
-
* -
|
|
15
|
-
* -
|
|
13
|
+
* - core/computed/page-dependency-graph.js
|
|
14
|
+
* - core/lib/dependency-graph/cpu-node.js
|
|
15
|
+
* - core/lib/tracehouse/trace-processor.js
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
import {TraceProcessor} from './tracehouse/trace-processor.js';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @fileoverview Script to launch a clean Chrome instance on-demand.
|
|
6
6
|
*
|
|
7
|
-
* node
|
|
7
|
+
* node core/scripts/manual-chrome-launcher.js
|
|
8
8
|
*
|
|
9
9
|
* Assuming Lighthouse is installed globally or `npm link`ed, use via:
|
|
10
10
|
* chrome-debug
|
|
File without changes
|
package/eslint-local-rules.cjs
CHANGED
|
@@ -86,7 +86,7 @@ const requireFileExtension = {
|
|
|
86
86
|
|
|
87
87
|
// Usually `fixedPath.startsWith(requiredPath)` and this will just add
|
|
88
88
|
// a suffix to the existing path, but sometimes humans write confusing
|
|
89
|
-
// paths, e.g. './
|
|
89
|
+
// paths, e.g. './core/lib/../lib/lh-error.js'. To cover both
|
|
90
90
|
// cases, double check that the paths resolve to the same file.
|
|
91
91
|
const resolvedFixedPath = requireResolveOrNull(fixedPath, contextDirname);
|
|
92
92
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import jestMock from 'jest-mock';
|
|
8
8
|
import {act, render} from '@testing-library/preact';
|
|
9
9
|
|
|
10
|
-
import {timers} from '../../
|
|
10
|
+
import {timers} from '../../core/test/test-env/fake-timers.js';
|
|
11
11
|
import {FlowStepThumbnail} from '../src/common';
|
|
12
12
|
|
|
13
13
|
let lhr: LH.Result;
|
|
@@ -11,7 +11,7 @@ import {fileURLToPath} from 'url';
|
|
|
11
11
|
export const flowResult: LH.FlowResult = JSON.parse(
|
|
12
12
|
fs.readFileSync(
|
|
13
13
|
// eslint-disable-next-line max-len
|
|
14
|
-
`${dirname(fileURLToPath(import.meta.url))}/../../
|
|
14
|
+
`${dirname(fileURLToPath(import.meta.url))}/../../core/test/fixtures/fraggle-rock/reports/sample-flow-result.json`,
|
|
15
15
|
'utf-8'
|
|
16
16
|
)
|
|
17
17
|
);
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lighthouse",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "9.5.0-dev.
|
|
4
|
+
"version": "9.5.0-dev.20220729",
|
|
5
5
|
"description": "Automated auditing, performance metrics, and best practices for the web.",
|
|
6
|
-
"main": "./
|
|
6
|
+
"main": "./core/index.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"lighthouse": "./
|
|
9
|
-
"chrome-debug": "./
|
|
10
|
-
"smokehouse": "./
|
|
8
|
+
"lighthouse": "./cli/index.js",
|
|
9
|
+
"chrome-debug": "./core/scripts/manual-chrome-launcher.js",
|
|
10
|
+
"smokehouse": "./cli/test/smokehouse/frontends/smokehouse-bin.js"
|
|
11
11
|
},
|
|
12
12
|
"engines": {
|
|
13
13
|
"node": ">=14.15"
|
|
@@ -25,29 +25,29 @@
|
|
|
25
25
|
"build-smokehouse-bundle": "node ./build/build-smokehouse-bundle.js",
|
|
26
26
|
"build-lr": "yarn reset-link && node ./build/build-lightrider-bundles.js",
|
|
27
27
|
"build-pack": "bash build/build-pack.sh",
|
|
28
|
-
"build-report": "node build/build-report-components.js && bash
|
|
28
|
+
"build-report": "node build/build-report-components.js && bash core/scripts/copy-util-commonjs.sh && node build/build-report.js",
|
|
29
29
|
"build-sample-reports": "yarn build-report && node build/build-sample-reports.js",
|
|
30
30
|
"build-treemap": "node ./build/build-treemap.js",
|
|
31
31
|
"build-viewer": "node ./build/build-viewer.js",
|
|
32
32
|
"reset-link": "(yarn unlink || true) && yarn link && yarn link lighthouse",
|
|
33
|
-
"c8": "bash
|
|
33
|
+
"c8": "bash core/scripts/c8.sh",
|
|
34
34
|
"clean": "rm -r dist proto/scripts/*.json proto/scripts/*_pb2.* proto/scripts/*_pb.* proto/scripts/__pycache__ proto/scripts/*.pyc *.report.html *.report.dom.html *.report.json *.devtoolslog.json *.trace.json shared/localization/locales/*.ctc.json || true",
|
|
35
35
|
"lint": "[ \"$CI\" = true ] && eslint --quiet -f codeframe . || eslint .",
|
|
36
|
-
"smoke": "node
|
|
37
|
-
"debug": "node --inspect-brk ./
|
|
38
|
-
"start": "yarn build-report --standalone && node ./
|
|
39
|
-
"mocha": "node --loader=testdouble
|
|
36
|
+
"smoke": "node cli/test/smokehouse/frontends/smokehouse-bin.js",
|
|
37
|
+
"debug": "node --inspect-brk ./cli/index.js",
|
|
38
|
+
"start": "yarn build-report --standalone && node ./cli/index.js",
|
|
39
|
+
"mocha": "node --loader=testdouble core/test/scripts/run-mocha-tests.js",
|
|
40
40
|
"test": "yarn diff:sample-json && yarn lint --quiet && yarn unit && yarn type-check",
|
|
41
41
|
"test-bundle": "yarn smoke --runner bundle --retries=2",
|
|
42
42
|
"test-clients": "yarn mocha --testMatch clients/**/*-test.js && yarn mocha --testMatch clients/**/*-test-pptr.js",
|
|
43
43
|
"test-viewer": "yarn unit-viewer && yarn mocha --testMatch viewer/**/*-test-pptr.js --timeout 35000",
|
|
44
44
|
"test-treemap": "yarn unit-treemap && yarn mocha --testMatch treemap/**/*-test-pptr.js --timeout 35000",
|
|
45
|
-
"test-lantern": "bash
|
|
46
|
-
"test-legacy-javascript": "bash
|
|
45
|
+
"test-lantern": "bash core/scripts/test-lantern.sh",
|
|
46
|
+
"test-legacy-javascript": "bash core/scripts/test-legacy-javascript.sh",
|
|
47
47
|
"test-docs": "yarn --cwd docs/recipes/ test",
|
|
48
48
|
"test-proto": "yarn compile-proto && yarn build-proto-roundtrip",
|
|
49
|
-
"unit-core": "yarn mocha
|
|
50
|
-
"unit-cli": "yarn mocha --testMatch
|
|
49
|
+
"unit-core": "yarn mocha core",
|
|
50
|
+
"unit-cli": "yarn mocha --testMatch cli/**/*-test.js",
|
|
51
51
|
"unit-report": "yarn mocha --testMatch report/**/*-test.js",
|
|
52
52
|
"unit-treemap": "yarn mocha --testMatch treemap/**/*-test.js",
|
|
53
53
|
"unit-viewer": "yarn mocha --testMatch viewer/**/*-test.js",
|
|
@@ -61,38 +61,38 @@
|
|
|
61
61
|
"unit:cicoverage": "yarn c8 --all yarn unit:ci",
|
|
62
62
|
"coverage": "yarn unit:cicoverage && c8 report --reporter html",
|
|
63
63
|
"coverage:smoke": "yarn c8 yarn smoke -j=1 && c8 report --reporter html",
|
|
64
|
-
"devtools": "bash
|
|
65
|
-
"chrome": "node
|
|
66
|
-
"fast": "node ./
|
|
64
|
+
"devtools": "bash core/scripts/roll-to-devtools.sh",
|
|
65
|
+
"chrome": "node core/scripts/manual-chrome-launcher.js",
|
|
66
|
+
"fast": "node ./cli/index.js --preset=desktop --throttlingMethod=provided",
|
|
67
67
|
"deploy-treemap": "yarn build-treemap --deploy",
|
|
68
68
|
"deploy-viewer": "yarn build-viewer --deploy",
|
|
69
69
|
"vercel-build": "yarn build-sample-reports && yarn build-viewer && yarn build-treemap",
|
|
70
|
-
"dogfood-lhci": "./
|
|
71
|
-
"timing-trace": "node
|
|
70
|
+
"dogfood-lhci": "./core/scripts/dogfood-lhci.sh",
|
|
71
|
+
"timing-trace": "node core/scripts/generate-timing-trace.js",
|
|
72
72
|
"changelog": "conventional-changelog --config ./build/changelog-generator/index.cjs --infile changelog.md --same-file",
|
|
73
73
|
"type-check": "tsc --build ./tsconfig-all.json",
|
|
74
|
-
"i18n:checks": "./
|
|
75
|
-
"i18n:collect-strings": "node
|
|
76
|
-
"update:lantern-baseline": "node
|
|
77
|
-
"update:sample-artifacts": "node
|
|
78
|
-
"update:sample-json": "yarn i18n:collect-strings && node ./
|
|
79
|
-
"update:flow-sample-json": "yarn i18n:collect-strings && node ./
|
|
80
|
-
"test-devtools": "bash
|
|
81
|
-
"open-devtools": "bash
|
|
82
|
-
"run-devtools": "node
|
|
83
|
-
"diff:sample-json": "yarn i18n:checks && bash
|
|
84
|
-
"diff:flow-sample-json": "yarn i18n:collect-strings && bash
|
|
85
|
-
"computeBenchmarkIndex": "./
|
|
86
|
-
"minify-latest-run": "./
|
|
87
|
-
"save-latest-run": "./
|
|
74
|
+
"i18n:checks": "./core/scripts/i18n/assert-strings-collected.sh",
|
|
75
|
+
"i18n:collect-strings": "node core/scripts/i18n/collect-strings.js",
|
|
76
|
+
"update:lantern-baseline": "node core/scripts/lantern/update-baseline-lantern-values.js",
|
|
77
|
+
"update:sample-artifacts": "node core/scripts/update-report-fixtures.js",
|
|
78
|
+
"update:sample-json": "yarn i18n:collect-strings && node ./cli -A=./core/test/results/artifacts --config-path=./core/test/results/sample-config.js --output=json --output-path=./core/test/results/sample_v2.json && node core/scripts/cleanup-LHR-for-diff.js ./core/test/results/sample_v2.json --only-remove-timing && node ./core/scripts/update-flow-fixtures.js",
|
|
79
|
+
"update:flow-sample-json": "yarn i18n:collect-strings && node ./core/scripts/update-flow-fixtures.js",
|
|
80
|
+
"test-devtools": "bash core/test/devtools-tests/test-locally.sh",
|
|
81
|
+
"open-devtools": "bash core/scripts/open-devtools.sh",
|
|
82
|
+
"run-devtools": "node core/scripts/pptr-run-devtools.js",
|
|
83
|
+
"diff:sample-json": "yarn i18n:checks && bash core/scripts/assert-golden-lhr-unchanged.sh",
|
|
84
|
+
"diff:flow-sample-json": "yarn i18n:collect-strings && bash core/scripts/assert-baseline-flow-result-unchanged.sh",
|
|
85
|
+
"computeBenchmarkIndex": "./core/scripts/benchmark.js",
|
|
86
|
+
"minify-latest-run": "./core/scripts/lantern/minify-trace.js ./latest-run/defaultPass.trace.json ./latest-run/defaultPass.trace.min.json && ./core/scripts/lantern/minify-devtoolslog.js ./latest-run/defaultPass.devtoolslog.json ./latest-run/defaultPass.devtoolslog.min.json",
|
|
87
|
+
"save-latest-run": "./core/scripts/save-latest-run.sh",
|
|
88
88
|
"compile-proto": "protoc --python_out=./ ./proto/lighthouse-result.proto && mv ./proto/*_pb2.py ./proto/scripts || (echo \"❌ Install protobuf ≥ 3.7.1 to compile the proto file.\" && false)",
|
|
89
89
|
"build-proto-roundtrip": "mkdir -p .tmp && cross-env PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2 python proto/scripts/json_roundtrip_via_proto.py",
|
|
90
|
-
"static-server": "node
|
|
90
|
+
"static-server": "node cli/test/fixtures/static-server.js",
|
|
91
91
|
"serve-dist": "cd dist && python3 -m http.server",
|
|
92
92
|
"serve-gh-pages": "cd dist/gh-pages && python3 -m http.server",
|
|
93
93
|
"serve-treemap": "yarn serve-gh-pages",
|
|
94
94
|
"serve-viewer": "yarn serve-gh-pages",
|
|
95
|
-
"flow-report": "yarn build-report --flow && node ./
|
|
95
|
+
"flow-report": "yarn build-report --flow && node ./core/scripts/build-test-flow-report.js"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@build-tracker/cli": "^1.0.0-beta.15",
|
package/readme.md
CHANGED
|
@@ -69,7 +69,7 @@ By default, Lighthouse writes the report to an HTML file. You can control the ou
|
|
|
69
69
|
### CLI options
|
|
70
70
|
|
|
71
71
|
<!-- To update the help output:
|
|
72
|
-
node
|
|
72
|
+
node cli --help | pbcopy
|
|
73
73
|
-->
|
|
74
74
|
|
|
75
75
|
```
|
|
@@ -88,7 +88,7 @@ Configuration:
|
|
|
88
88
|
--print-config Print the normalized config for the given config and options, then exit. [boolean] [default: false]
|
|
89
89
|
--additional-trace-categories Additional categories to capture with the trace (comma-delimited). [string]
|
|
90
90
|
--config-path The path to the config JSON.
|
|
91
|
-
An example config file:
|
|
91
|
+
An example config file: core/config/lr-desktop-config.js [string]
|
|
92
92
|
--preset Use a built-in configuration.
|
|
93
93
|
WARNING: If the --config-path flag is provided, this preset will be ignored. [string] [choices: "perf", "experimental", "desktop"]
|
|
94
94
|
--chrome-flags Custom flags to pass to Chrome (space-delimited). For a full list of flags, see https://bit.ly/chrome-flags
|
|
@@ -282,11 +282,11 @@ yarn build-all
|
|
|
282
282
|
### Run
|
|
283
283
|
|
|
284
284
|
```sh
|
|
285
|
-
node
|
|
285
|
+
node cli http://example.com
|
|
286
286
|
# append --chrome-flags="--no-sandbox --headless --disable-gpu" if you run into problems connecting to Chrome
|
|
287
287
|
```
|
|
288
288
|
|
|
289
|
-
> **Getting started tip**: `node --inspect-brk
|
|
289
|
+
> **Getting started tip**: `node --inspect-brk cli http://example.com` to open up Chrome DevTools and step
|
|
290
290
|
through the entire app. See [Debugging Node.js with Chrome
|
|
291
291
|
DevTools](https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27#.59rma3ukm)
|
|
292
292
|
for more info.
|
package/report/clients/bundle.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// until we work out a common rendering interface.
|
|
11
11
|
// See: https://github.com/GoogleChrome/lighthouse/pull/12623
|
|
12
12
|
|
|
13
|
-
// Modify
|
|
13
|
+
// Modify core/scripts/roll-to-devtools.sh if exports change.
|
|
14
14
|
export {DOM} from '../renderer/dom.js';
|
|
15
15
|
export {ReportRenderer} from '../renderer/report-renderer.js';
|
|
16
16
|
export {ReportUIFeatures} from '../renderer/report-ui-features.js';
|
|
@@ -13,7 +13,7 @@ import * as lighthouseRenderer from '../../clients/bundle.js';
|
|
|
13
13
|
import {LH_ROOT} from '../../../root.js';
|
|
14
14
|
|
|
15
15
|
const sampleResultsStr =
|
|
16
|
-
fs.readFileSync(LH_ROOT + '/
|
|
16
|
+
fs.readFileSync(LH_ROOT + '/core/test/results/sample_v2.json', 'utf-8');
|
|
17
17
|
|
|
18
18
|
describe('lighthouseRenderer bundle', () => {
|
|
19
19
|
let document;
|
|
@@ -15,8 +15,8 @@ const csvValidator = require('csv-validator');
|
|
|
15
15
|
const ReportGenerator = require('../../generator/report-generator.js');
|
|
16
16
|
// const {readJson} = require('../../../root.js');
|
|
17
17
|
// TODO(esmodules): remove when this folder is esm
|
|
18
|
-
// const sampleResults = readJson('
|
|
19
|
-
const sampleResults = require('../../../
|
|
18
|
+
// const sampleResults = readJson('core/test/results/sample_v2.json');
|
|
19
|
+
const sampleResults = require('../../../core/test/results/sample_v2.json');
|
|
20
20
|
|
|
21
21
|
describe('ReportGenerator', () => {
|
|
22
22
|
describe('#replaceStrings', () => {
|
|
@@ -13,9 +13,9 @@ import {I18n} from '../../renderer/i18n.js';
|
|
|
13
13
|
import {DOM} from '../../renderer/dom.js';
|
|
14
14
|
import {DetailsRenderer} from '../../renderer/details-renderer.js';
|
|
15
15
|
import {CategoryRenderer} from '../../renderer/category-renderer.js';
|
|
16
|
-
import {readJson} from '../../../
|
|
16
|
+
import {readJson} from '../../../core/test/test-utils.js';
|
|
17
17
|
|
|
18
|
-
const sampleResultsOrig = readJson('../../../
|
|
18
|
+
const sampleResultsOrig = readJson('../../../core/test/results/sample_v2.json', import.meta);
|
|
19
19
|
|
|
20
20
|
describe('CategoryRenderer', () => {
|
|
21
21
|
let renderer;
|
|
@@ -12,7 +12,7 @@ import {I18n} from '../../renderer/i18n.js';
|
|
|
12
12
|
// Require i18n to make sure Intl is polyfilled in Node without full-icu for testing.
|
|
13
13
|
// When Util is run in a browser, Intl will be supplied natively (IE11+).
|
|
14
14
|
// eslint-disable-next-line no-unused-vars
|
|
15
|
-
import '../../../
|
|
15
|
+
import '../../../core/lib/i18n/i18n.js';
|
|
16
16
|
|
|
17
17
|
const NBSP = '\xa0';
|
|
18
18
|
|
|
@@ -10,13 +10,13 @@ import jsdom from 'jsdom';
|
|
|
10
10
|
|
|
11
11
|
import {Util} from '../../renderer/util.js';
|
|
12
12
|
import {I18n} from '../../renderer/i18n.js';
|
|
13
|
-
import URL from '../../../
|
|
13
|
+
import URL from '../../../core/lib/url-shim.js';
|
|
14
14
|
import {DOM} from '../../renderer/dom.js';
|
|
15
15
|
import {DetailsRenderer} from '../../renderer/details-renderer.js';
|
|
16
16
|
import {PerformanceCategoryRenderer} from '../../renderer/performance-category-renderer.js';
|
|
17
|
-
import {readJson} from '../../../
|
|
17
|
+
import {readJson} from '../../../core/test/test-utils.js';
|
|
18
18
|
|
|
19
|
-
const sampleResultsOrig = readJson('../../../
|
|
19
|
+
const sampleResultsOrig = readJson('../../../core/test/results/sample_v2.json', import.meta);
|
|
20
20
|
|
|
21
21
|
describe('PerfCategoryRenderer', () => {
|
|
22
22
|
let category;
|
|
@@ -13,9 +13,9 @@ import {I18n} from '../../renderer/i18n.js';
|
|
|
13
13
|
import {DOM} from '../../renderer/dom.js';
|
|
14
14
|
import {DetailsRenderer} from '../../renderer/details-renderer.js';
|
|
15
15
|
import {PwaCategoryRenderer} from '../../renderer/pwa-category-renderer.js';
|
|
16
|
-
import {readJson} from '../../../
|
|
16
|
+
import {readJson} from '../../../core/test/test-utils.js';
|
|
17
17
|
|
|
18
|
-
const sampleResultsOrig = readJson('../../../
|
|
18
|
+
const sampleResultsOrig = readJson('../../../core/test/results/sample_v2.json', import.meta);
|
|
19
19
|
|
|
20
20
|
describe('PwaCategoryRenderer', () => {
|
|
21
21
|
let category;
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
import puppeteer from 'puppeteer';
|
|
8
8
|
|
|
9
9
|
import reportGenerator from '../../generator/report-generator.js';
|
|
10
|
-
import {axeSource} from '../../../
|
|
11
|
-
import {readJson} from '../../../
|
|
10
|
+
import {axeSource} from '../../../core/lib/axe.js';
|
|
11
|
+
import {readJson} from '../../../core/test/test-utils.js';
|
|
12
12
|
|
|
13
|
-
const sampleResults = readJson('../../../
|
|
13
|
+
const sampleResults = readJson('../../../core/test/results/sample_v2.json', import.meta);
|
|
14
14
|
|
|
15
15
|
describe('ReportRendererAxe', () => {
|
|
16
16
|
describe('with aXe', () => {
|
|
@@ -10,14 +10,14 @@ import jsdom from 'jsdom';
|
|
|
10
10
|
import jestMock from 'jest-mock';
|
|
11
11
|
|
|
12
12
|
import {Util} from '../../renderer/util.js';
|
|
13
|
-
import URL from '../../../
|
|
13
|
+
import URL from '../../../core/lib/url-shim.js';
|
|
14
14
|
import {DOM} from '../../renderer/dom.js';
|
|
15
15
|
import {DetailsRenderer} from '../../renderer/details-renderer.js';
|
|
16
16
|
import {CategoryRenderer} from '../../renderer/category-renderer.js';
|
|
17
17
|
import {ReportRenderer} from '../../renderer/report-renderer.js';
|
|
18
|
-
import {readJson} from '../../../
|
|
18
|
+
import {readJson} from '../../../core/test/test-utils.js';
|
|
19
19
|
|
|
20
|
-
const sampleResultsOrig = readJson('../../../
|
|
20
|
+
const sampleResultsOrig = readJson('../../../core/test/results/sample_v2.json', import.meta);
|
|
21
21
|
|
|
22
22
|
const TIMESTAMP_REGEX = /\d+, \d{4}.*\d+:\d+/;
|
|
23
23
|
|
|
@@ -16,9 +16,9 @@ import {DetailsRenderer} from '../../renderer/details-renderer.js';
|
|
|
16
16
|
import {ReportUIFeatures} from '../../renderer/report-ui-features.js';
|
|
17
17
|
import {CategoryRenderer} from '../../renderer/category-renderer.js';
|
|
18
18
|
import {ReportRenderer} from '../../renderer/report-renderer.js';
|
|
19
|
-
import {readJson} from '../../../
|
|
19
|
+
import {readJson} from '../../../core/test/test-utils.js';
|
|
20
20
|
|
|
21
|
-
const sampleResultsOrig = readJson('../../../
|
|
21
|
+
const sampleResultsOrig = readJson('../../../core/test/results/sample_v2.json', import.meta);
|
|
22
22
|
|
|
23
23
|
describe('ReportUIFeatures', () => {
|
|
24
24
|
let sampleResults;
|
|
@@ -8,9 +8,9 @@ import {strict as assert} from 'assert';
|
|
|
8
8
|
|
|
9
9
|
import {Util} from '../../renderer/util.js';
|
|
10
10
|
import {I18n} from '../../renderer/i18n.js';
|
|
11
|
-
import {readJson} from '../../../
|
|
11
|
+
import {readJson} from '../../../core/test/test-utils.js';
|
|
12
12
|
|
|
13
|
-
const sampleResult = readJson('../../../
|
|
13
|
+
const sampleResult = readJson('../../../core/test/results/sample_v2.json', import.meta);
|
|
14
14
|
|
|
15
15
|
describe('util helpers', () => {
|
|
16
16
|
beforeEach(() => {
|