lighthouse 9.5.0-dev.20220726 → 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.
Files changed (465) hide show
  1. package/CONTRIBUTING.md +11 -11
  2. package/{lighthouse-cli → cli}/bin.js +5 -5
  3. package/{lighthouse-cli → cli}/cli-flags.js +1 -1
  4. package/{lighthouse-cli → cli}/commands/commands.js +0 -0
  5. package/{lighthouse-cli → cli}/commands/list-audits.js +1 -1
  6. package/{lighthouse-cli → cli}/commands/list-locales.js +0 -0
  7. package/{lighthouse-cli → cli}/commands/list-trace-categories.js +1 -1
  8. package/{lighthouse-cli → cli}/index.js +0 -0
  9. package/{lighthouse-cli → cli}/package.json +0 -0
  10. package/{lighthouse-cli → cli}/printer.js +0 -0
  11. package/{lighthouse-cli → cli}/run.js +3 -3
  12. package/{lighthouse-cli → cli}/sentry-prompt.js +0 -0
  13. package/{lighthouse-cli → cli}/test/smokehouse/__snapshots__/report-assert-test.js.snap +0 -0
  14. package/{lighthouse-cli → cli}/test/smokehouse/core-tests.js +0 -0
  15. package/{lighthouse-cli → cli}/test/smokehouse/frontends/back-compat-util.js +0 -0
  16. package/{lighthouse-cli → cli}/test/smokehouse/frontends/lib.js +0 -0
  17. package/{lighthouse-cli → cli}/test/smokehouse/frontends/node.js +0 -0
  18. package/{lighthouse-cli → cli}/test/smokehouse/frontends/smokehouse-bin.js +1 -1
  19. package/{lighthouse-cli → cli}/test/smokehouse/lib/child-process-error.js +0 -0
  20. package/{lighthouse-cli → cli}/test/smokehouse/lib/concurrent-mapper.js +0 -0
  21. package/{lighthouse-cli → cli}/test/smokehouse/lib/local-console.js +0 -0
  22. package/{lighthouse-cli → cli}/test/smokehouse/lighthouse-runners/bundle.js +4 -4
  23. package/{lighthouse-cli → cli}/test/smokehouse/lighthouse-runners/cli.js +2 -2
  24. package/{lighthouse-cli → cli}/test/smokehouse/lighthouse-runners/devtools.js +3 -3
  25. package/{lighthouse-cli → cli}/test/smokehouse/readme.md +1 -1
  26. package/{lighthouse-cli → cli}/test/smokehouse/report-assert-test.js +3 -3
  27. package/{lighthouse-cli → cli}/test/smokehouse/report-assert.js +0 -0
  28. package/{lighthouse-cli → cli}/test/smokehouse/smokehouse.js +0 -0
  29. package/{lighthouse-cli → cli}/test/smokehouse/version-check-test.js +0 -0
  30. package/{lighthouse-cli → cli}/test/smokehouse/version-check.js +0 -0
  31. package/{lighthouse-core → core}/audits/accessibility/accesskeys.js +0 -0
  32. package/{lighthouse-core → core}/audits/accessibility/aria-allowed-attr.js +0 -0
  33. package/{lighthouse-core → core}/audits/accessibility/aria-command-name.js +0 -0
  34. package/{lighthouse-core → core}/audits/accessibility/aria-hidden-body.js +0 -0
  35. package/{lighthouse-core → core}/audits/accessibility/aria-hidden-focus.js +0 -0
  36. package/{lighthouse-core → core}/audits/accessibility/aria-input-field-name.js +0 -0
  37. package/{lighthouse-core → core}/audits/accessibility/aria-meter-name.js +0 -0
  38. package/{lighthouse-core → core}/audits/accessibility/aria-progressbar-name.js +0 -0
  39. package/{lighthouse-core → core}/audits/accessibility/aria-required-attr.js +0 -0
  40. package/{lighthouse-core → core}/audits/accessibility/aria-required-children.js +0 -0
  41. package/{lighthouse-core → core}/audits/accessibility/aria-required-parent.js +0 -0
  42. package/{lighthouse-core → core}/audits/accessibility/aria-roles.js +0 -0
  43. package/{lighthouse-core → core}/audits/accessibility/aria-toggle-field-name.js +0 -0
  44. package/{lighthouse-core → core}/audits/accessibility/aria-tooltip-name.js +0 -0
  45. package/{lighthouse-core → core}/audits/accessibility/aria-treeitem-name.js +0 -0
  46. package/{lighthouse-core → core}/audits/accessibility/aria-valid-attr-value.js +0 -0
  47. package/{lighthouse-core → core}/audits/accessibility/aria-valid-attr.js +0 -0
  48. package/{lighthouse-core → core}/audits/accessibility/axe-audit.js +0 -0
  49. package/{lighthouse-core → core}/audits/accessibility/button-name.js +0 -0
  50. package/{lighthouse-core → core}/audits/accessibility/bypass.js +0 -0
  51. package/{lighthouse-core → core}/audits/accessibility/color-contrast.js +0 -0
  52. package/{lighthouse-core → core}/audits/accessibility/definition-list.js +0 -0
  53. package/{lighthouse-core → core}/audits/accessibility/dlitem.js +0 -0
  54. package/{lighthouse-core → core}/audits/accessibility/document-title.js +0 -0
  55. package/{lighthouse-core → core}/audits/accessibility/duplicate-id-active.js +0 -0
  56. package/{lighthouse-core → core}/audits/accessibility/duplicate-id-aria.js +0 -0
  57. package/{lighthouse-core → core}/audits/accessibility/form-field-multiple-labels.js +0 -0
  58. package/{lighthouse-core → core}/audits/accessibility/frame-title.js +0 -0
  59. package/{lighthouse-core → core}/audits/accessibility/heading-order.js +0 -0
  60. package/{lighthouse-core → core}/audits/accessibility/html-has-lang.js +0 -0
  61. package/{lighthouse-core → core}/audits/accessibility/html-lang-valid.js +0 -0
  62. package/{lighthouse-core → core}/audits/accessibility/image-alt.js +0 -0
  63. package/{lighthouse-core → core}/audits/accessibility/input-image-alt.js +0 -0
  64. package/{lighthouse-core → core}/audits/accessibility/label.js +0 -0
  65. package/{lighthouse-core → core}/audits/accessibility/link-name.js +0 -0
  66. package/{lighthouse-core → core}/audits/accessibility/list.js +0 -0
  67. package/{lighthouse-core → core}/audits/accessibility/listitem.js +0 -0
  68. package/{lighthouse-core → core}/audits/accessibility/manual/custom-controls-labels.js +0 -0
  69. package/{lighthouse-core → core}/audits/accessibility/manual/custom-controls-roles.js +0 -0
  70. package/{lighthouse-core → core}/audits/accessibility/manual/focus-traps.js +0 -0
  71. package/{lighthouse-core → core}/audits/accessibility/manual/focusable-controls.js +0 -0
  72. package/{lighthouse-core → core}/audits/accessibility/manual/interactive-element-affordance.js +0 -0
  73. package/{lighthouse-core → core}/audits/accessibility/manual/logical-tab-order.js +0 -0
  74. package/{lighthouse-core → core}/audits/accessibility/manual/managed-focus.js +0 -0
  75. package/{lighthouse-core → core}/audits/accessibility/manual/offscreen-content-hidden.js +0 -0
  76. package/{lighthouse-core → core}/audits/accessibility/manual/use-landmarks.js +0 -0
  77. package/{lighthouse-core → core}/audits/accessibility/manual/visual-order-follows-dom.js +0 -0
  78. package/{lighthouse-core → core}/audits/accessibility/meta-refresh.js +0 -0
  79. package/{lighthouse-core → core}/audits/accessibility/meta-viewport.js +0 -0
  80. package/{lighthouse-core → core}/audits/accessibility/object-alt.js +0 -0
  81. package/{lighthouse-core → core}/audits/accessibility/tabindex.js +0 -0
  82. package/{lighthouse-core → core}/audits/accessibility/td-headers-attr.js +0 -0
  83. package/{lighthouse-core → core}/audits/accessibility/th-has-data-cells.js +0 -0
  84. package/{lighthouse-core → core}/audits/accessibility/valid-lang.js +0 -0
  85. package/{lighthouse-core → core}/audits/accessibility/video-caption.js +0 -0
  86. package/{lighthouse-core → core}/audits/audit.js +0 -0
  87. package/{lighthouse-core → core}/audits/autocomplete.js +0 -0
  88. package/{lighthouse-core → core}/audits/bootup-time.js +0 -0
  89. package/{lighthouse-core → core}/audits/byte-efficiency/byte-efficiency-audit.js +0 -0
  90. package/{lighthouse-core → core}/audits/byte-efficiency/duplicated-javascript.js +0 -0
  91. package/{lighthouse-core → core}/audits/byte-efficiency/efficient-animated-content.js +0 -0
  92. package/{lighthouse-core → core}/audits/byte-efficiency/legacy-javascript.js +2 -2
  93. package/{lighthouse-core → core}/audits/byte-efficiency/modern-image-formats.js +0 -0
  94. package/{lighthouse-core → core}/audits/byte-efficiency/offscreen-images.js +0 -0
  95. package/{lighthouse-core → core}/audits/byte-efficiency/polyfill-graph-data.json +0 -0
  96. package/{lighthouse-core → core}/audits/byte-efficiency/render-blocking-resources.js +0 -0
  97. package/{lighthouse-core → core}/audits/byte-efficiency/total-byte-weight.js +0 -0
  98. package/{lighthouse-core → core}/audits/byte-efficiency/unminified-css.js +0 -0
  99. package/{lighthouse-core → core}/audits/byte-efficiency/unminified-javascript.js +0 -0
  100. package/{lighthouse-core → core}/audits/byte-efficiency/unused-css-rules.js +0 -0
  101. package/{lighthouse-core → core}/audits/byte-efficiency/unused-javascript.js +0 -0
  102. package/{lighthouse-core → core}/audits/byte-efficiency/uses-long-cache-ttl.js +0 -0
  103. package/{lighthouse-core → core}/audits/byte-efficiency/uses-optimized-images.js +0 -0
  104. package/{lighthouse-core → core}/audits/byte-efficiency/uses-responsive-images-snapshot.js +0 -0
  105. package/{lighthouse-core → core}/audits/byte-efficiency/uses-responsive-images.js +0 -0
  106. package/{lighthouse-core → core}/audits/byte-efficiency/uses-text-compression.js +0 -0
  107. package/{lighthouse-core → core}/audits/content-width.js +0 -0
  108. package/{lighthouse-core → core}/audits/critical-request-chains.js +0 -0
  109. package/{lighthouse-core → core}/audits/csp-xss.js +0 -0
  110. package/{lighthouse-core → core}/audits/deprecations.js +0 -0
  111. package/{lighthouse-core → core}/audits/diagnostics.js +0 -0
  112. package/{lighthouse-core → core}/audits/dobetterweb/charset.js +0 -0
  113. package/{lighthouse-core → core}/audits/dobetterweb/doctype.js +0 -0
  114. package/{lighthouse-core → core}/audits/dobetterweb/dom-size.js +0 -0
  115. package/{lighthouse-core → core}/audits/dobetterweb/geolocation-on-start.js +0 -0
  116. package/{lighthouse-core → core}/audits/dobetterweb/inspector-issues.js +0 -0
  117. package/{lighthouse-core → core}/audits/dobetterweb/js-libraries.js +0 -0
  118. package/{lighthouse-core → core}/audits/dobetterweb/no-document-write.js +0 -0
  119. package/{lighthouse-core → core}/audits/dobetterweb/no-vulnerable-libraries.js +0 -0
  120. package/{lighthouse-core → core}/audits/dobetterweb/notification-on-start.js +0 -0
  121. package/{lighthouse-core → core}/audits/dobetterweb/password-inputs-can-be-pasted-into.js +0 -0
  122. package/{lighthouse-core → core}/audits/dobetterweb/uses-http2.js +0 -0
  123. package/{lighthouse-core → core}/audits/dobetterweb/uses-passive-event-listeners.js +0 -0
  124. package/{lighthouse-core → core}/audits/errors-in-console.js +0 -0
  125. package/{lighthouse-core → core}/audits/final-screenshot.js +0 -0
  126. package/{lighthouse-core → core}/audits/font-display.js +0 -0
  127. package/{lighthouse-core → core}/audits/full-page-screenshot.js +0 -0
  128. package/{lighthouse-core → core}/audits/image-aspect-ratio.js +0 -0
  129. package/{lighthouse-core → core}/audits/image-size-responsive.js +0 -0
  130. package/{lighthouse-core → core}/audits/installable-manifest.js +0 -0
  131. package/{lighthouse-core → core}/audits/is-on-https.js +0 -0
  132. package/{lighthouse-core → core}/audits/largest-contentful-paint-element.js +0 -0
  133. package/{lighthouse-core → core}/audits/layout-shift-elements.js +0 -0
  134. package/{lighthouse-core → core}/audits/lcp-lazy-loaded.js +0 -0
  135. package/{lighthouse-core → core}/audits/long-tasks.js +0 -0
  136. package/{lighthouse-core → core}/audits/main-thread-tasks.js +0 -0
  137. package/{lighthouse-core → core}/audits/mainthread-work-breakdown.js +0 -0
  138. package/{lighthouse-core → core}/audits/manual/manual-audit.js +0 -0
  139. package/{lighthouse-core → core}/audits/manual/pwa-cross-browser.js +0 -0
  140. package/{lighthouse-core → core}/audits/manual/pwa-each-page-has-url.js +0 -0
  141. package/{lighthouse-core → core}/audits/manual/pwa-page-transitions.js +0 -0
  142. package/{lighthouse-core → core}/audits/maskable-icon.js +0 -0
  143. package/{lighthouse-core → core}/audits/metrics/cumulative-layout-shift.js +0 -0
  144. package/{lighthouse-core → core}/audits/metrics/experimental-interaction-to-next-paint.js +0 -0
  145. package/{lighthouse-core → core}/audits/metrics/first-contentful-paint-3g.js +0 -0
  146. package/{lighthouse-core → core}/audits/metrics/first-contentful-paint.js +0 -0
  147. package/{lighthouse-core → core}/audits/metrics/first-meaningful-paint.js +0 -0
  148. package/{lighthouse-core → core}/audits/metrics/interactive.js +0 -0
  149. package/{lighthouse-core → core}/audits/metrics/largest-contentful-paint.js +0 -0
  150. package/{lighthouse-core → core}/audits/metrics/max-potential-fid.js +0 -0
  151. package/{lighthouse-core → core}/audits/metrics/speed-index.js +0 -0
  152. package/{lighthouse-core → core}/audits/metrics/total-blocking-time.js +0 -0
  153. package/{lighthouse-core → core}/audits/metrics.js +0 -0
  154. package/{lighthouse-core → core}/audits/multi-check-audit.js +0 -0
  155. package/{lighthouse-core → core}/audits/network-requests.js +0 -0
  156. package/{lighthouse-core → core}/audits/network-rtt.js +0 -0
  157. package/{lighthouse-core → core}/audits/network-server-latency.js +0 -0
  158. package/{lighthouse-core → core}/audits/no-unload-listeners.js +0 -0
  159. package/{lighthouse-core → core}/audits/non-composited-animations.js +0 -0
  160. package/{lighthouse-core → core}/audits/oopif-iframe-test-audit.js +0 -0
  161. package/{lighthouse-core → core}/audits/performance-budget.js +0 -0
  162. package/{lighthouse-core → core}/audits/predictive-perf.js +0 -0
  163. package/{lighthouse-core → core}/audits/preload-fonts.js +0 -0
  164. package/{lighthouse-core → core}/audits/preload-lcp-image.js +0 -0
  165. package/{lighthouse-core → core}/audits/redirects.js +0 -0
  166. package/{lighthouse-core → core}/audits/resource-summary.js +0 -0
  167. package/{lighthouse-core → core}/audits/screenshot-thumbnails.js +0 -0
  168. package/{lighthouse-core → core}/audits/script-elements-test-audit.js +0 -0
  169. package/{lighthouse-core → core}/audits/script-treemap-data.js +0 -0
  170. package/{lighthouse-core → core}/audits/seo/canonical.js +0 -0
  171. package/{lighthouse-core → core}/audits/seo/crawlable-anchors.js +0 -0
  172. package/{lighthouse-core → core}/audits/seo/font-size.js +0 -0
  173. package/{lighthouse-core → core}/audits/seo/hreflang.js +0 -0
  174. package/{lighthouse-core → core}/audits/seo/http-status-code.js +0 -0
  175. package/{lighthouse-core → core}/audits/seo/is-crawlable.js +0 -0
  176. package/{lighthouse-core → core}/audits/seo/link-text.js +0 -0
  177. package/{lighthouse-core → core}/audits/seo/manual/structured-data.js +0 -0
  178. package/{lighthouse-core → core}/audits/seo/meta-description.js +0 -0
  179. package/{lighthouse-core → core}/audits/seo/plugins.js +0 -0
  180. package/{lighthouse-core → core}/audits/seo/robots-txt.js +0 -0
  181. package/{lighthouse-core → core}/audits/seo/tap-targets.js +0 -0
  182. package/{lighthouse-core → core}/audits/server-response-time.js +0 -0
  183. package/{lighthouse-core → core}/audits/service-worker.js +0 -0
  184. package/{lighthouse-core → core}/audits/splash-screen.js +0 -0
  185. package/{lighthouse-core → core}/audits/themed-omnibox.js +0 -0
  186. package/{lighthouse-core → core}/audits/third-party-facades.js +0 -0
  187. package/{lighthouse-core → core}/audits/third-party-summary.js +0 -0
  188. package/{lighthouse-core → core}/audits/timing-budget.js +0 -0
  189. package/{lighthouse-core → core}/audits/unsized-images.js +0 -0
  190. package/{lighthouse-core → core}/audits/user-timings.js +0 -0
  191. package/{lighthouse-core → core}/audits/uses-rel-preconnect.js +0 -0
  192. package/{lighthouse-core → core}/audits/uses-rel-preload.js +0 -0
  193. package/{lighthouse-core → core}/audits/valid-source-maps.js +0 -0
  194. package/{lighthouse-core → core}/audits/viewport.js +0 -0
  195. package/{lighthouse-core → core}/audits/violation-audit.js +0 -0
  196. package/{lighthouse-core → core}/audits/work-during-interaction.js +0 -0
  197. package/{lighthouse-core → core}/computed/computed-artifact.js +0 -0
  198. package/{lighthouse-core → core}/computed/critical-request-chains.js +0 -0
  199. package/{lighthouse-core → core}/computed/image-records.js +0 -0
  200. package/{lighthouse-core → core}/computed/js-bundles.js +0 -0
  201. package/{lighthouse-core → core}/computed/load-simulator.js +0 -0
  202. package/{lighthouse-core → core}/computed/main-resource.js +0 -0
  203. package/{lighthouse-core → core}/computed/main-thread-tasks.js +0 -0
  204. package/{lighthouse-core → core}/computed/manifest-values.js +0 -0
  205. package/{lighthouse-core → core}/computed/metrics/cumulative-layout-shift.js +0 -0
  206. package/{lighthouse-core → core}/computed/metrics/first-contentful-paint-all-frames.js +0 -0
  207. package/{lighthouse-core → core}/computed/metrics/first-contentful-paint.js +0 -0
  208. package/{lighthouse-core → core}/computed/metrics/first-meaningful-paint.js +0 -0
  209. package/{lighthouse-core → core}/computed/metrics/interactive.js +0 -0
  210. package/{lighthouse-core → core}/computed/metrics/lantern-first-contentful-paint.js +0 -0
  211. package/{lighthouse-core → core}/computed/metrics/lantern-first-meaningful-paint.js +0 -0
  212. package/{lighthouse-core → core}/computed/metrics/lantern-interactive.js +0 -0
  213. package/{lighthouse-core → core}/computed/metrics/lantern-largest-contentful-paint.js +0 -0
  214. package/{lighthouse-core → core}/computed/metrics/lantern-max-potential-fid.js +0 -0
  215. package/{lighthouse-core → core}/computed/metrics/lantern-metric.js +0 -0
  216. package/{lighthouse-core → core}/computed/metrics/lantern-speed-index.js +1 -1
  217. package/{lighthouse-core → core}/computed/metrics/lantern-total-blocking-time.js +0 -0
  218. package/{lighthouse-core → core}/computed/metrics/largest-contentful-paint-all-frames.js +0 -0
  219. package/{lighthouse-core → core}/computed/metrics/largest-contentful-paint.js +0 -0
  220. package/{lighthouse-core → core}/computed/metrics/max-potential-fid.js +0 -0
  221. package/{lighthouse-core → core}/computed/metrics/metric.js +0 -0
  222. package/{lighthouse-core → core}/computed/metrics/navigation-metric.js +0 -0
  223. package/{lighthouse-core → core}/computed/metrics/responsiveness.js +0 -0
  224. package/{lighthouse-core → core}/computed/metrics/speed-index.js +0 -0
  225. package/{lighthouse-core → core}/computed/metrics/tbt-utils.js +0 -0
  226. package/{lighthouse-core → core}/computed/metrics/timing-summary.js +0 -0
  227. package/{lighthouse-core → core}/computed/metrics/total-blocking-time.js +0 -0
  228. package/{lighthouse-core → core}/computed/module-duplication.js +0 -0
  229. package/{lighthouse-core → core}/computed/network-analysis.js +0 -0
  230. package/{lighthouse-core → core}/computed/network-records.js +0 -0
  231. package/{lighthouse-core → core}/computed/page-dependency-graph.js +0 -0
  232. package/{lighthouse-core → core}/computed/processed-navigation.js +0 -0
  233. package/{lighthouse-core → core}/computed/processed-trace.js +0 -0
  234. package/{lighthouse-core → core}/computed/resource-summary.js +0 -0
  235. package/{lighthouse-core → core}/computed/screenshots.js +0 -0
  236. package/{lighthouse-core → core}/computed/speedline.js +0 -0
  237. package/{lighthouse-core → core}/computed/unused-css.js +0 -0
  238. package/{lighthouse-core → core}/computed/unused-javascript-summary.js +0 -0
  239. package/{lighthouse-core → core}/computed/user-timings.js +0 -0
  240. package/{lighthouse-core → core}/computed/viewport-meta.js +0 -0
  241. package/{lighthouse-core → core}/config/budget.js +0 -0
  242. package/{lighthouse-core → core}/config/config-helpers.js +0 -0
  243. package/{lighthouse-core → core}/config/config-plugin.js +0 -0
  244. package/{lighthouse-core → core}/config/config.js +0 -0
  245. package/{lighthouse-core → core}/config/constants.js +0 -0
  246. package/{lighthouse-core → core}/config/default-config.js +0 -2
  247. package/{lighthouse-core → core}/config/desktop-config.js +0 -0
  248. package/{lighthouse-core → core}/config/experimental-config.js +0 -0
  249. package/{lighthouse-core → core}/config/full-config.js +0 -0
  250. package/{lighthouse-core → core}/config/legacy-default-config.js +0 -0
  251. package/{lighthouse-core → core}/config/lr-desktop-config.js +0 -0
  252. package/{lighthouse-core → core}/config/lr-mobile-config.js +0 -0
  253. package/{lighthouse-core → core}/config/metrics-to-audits.js +0 -0
  254. package/{lighthouse-core → core}/config/perf-config.js +0 -0
  255. package/{lighthouse-core → core}/fraggle-rock/api.js +0 -0
  256. package/{lighthouse-core → core}/fraggle-rock/config/config.js +0 -0
  257. package/{lighthouse-core → core}/fraggle-rock/config/filters.js +0 -0
  258. package/{lighthouse-core → core}/fraggle-rock/config/validation.js +0 -0
  259. package/{lighthouse-core → core}/fraggle-rock/gather/base-artifacts.js +0 -0
  260. package/{lighthouse-core → core}/fraggle-rock/gather/base-gatherer.js +1 -1
  261. package/{lighthouse-core → core}/fraggle-rock/gather/driver.js +0 -0
  262. package/{lighthouse-core → core}/fraggle-rock/gather/navigation-runner.js +0 -0
  263. package/{lighthouse-core → core}/fraggle-rock/gather/runner-helpers.js +0 -0
  264. package/{lighthouse-core → core}/fraggle-rock/gather/session.js +0 -0
  265. package/{lighthouse-core → core}/fraggle-rock/gather/snapshot-runner.js +0 -0
  266. package/{lighthouse-core → core}/fraggle-rock/gather/timespan-runner.js +0 -0
  267. package/{lighthouse-core → core}/fraggle-rock/user-flow.js +0 -0
  268. package/{lighthouse-core → core}/gather/connections/connection.js +0 -0
  269. package/{lighthouse-core → core}/gather/connections/cri.js +0 -0
  270. package/{lighthouse-core → core}/gather/connections/raw.js +0 -0
  271. package/{lighthouse-core → core}/gather/driver/dom.js +0 -0
  272. package/{lighthouse-core → core}/gather/driver/environment.js +0 -0
  273. package/{lighthouse-core → core}/gather/driver/execution-context.js +0 -0
  274. package/{lighthouse-core → core}/gather/driver/navigation.js +0 -0
  275. package/{lighthouse-core → core}/gather/driver/network-monitor.js +0 -0
  276. package/{lighthouse-core → core}/gather/driver/network.js +0 -0
  277. package/{lighthouse-core → core}/gather/driver/prepare.js +0 -0
  278. package/{lighthouse-core → core}/gather/driver/service-workers.js +0 -0
  279. package/{lighthouse-core → core}/gather/driver/storage.js +0 -0
  280. package/{lighthouse-core → core}/gather/driver/target-manager.js +0 -0
  281. package/{lighthouse-core → core}/gather/driver/wait-for-condition.js +0 -0
  282. package/{lighthouse-core → core}/gather/driver.js +0 -0
  283. package/{lighthouse-core → core}/gather/fetcher.js +0 -0
  284. package/{lighthouse-core → core}/gather/gather-runner.js +0 -0
  285. package/{lighthouse-core → core}/gather/gatherers/accessibility.js +0 -0
  286. package/{lighthouse-core → core}/gather/gatherers/anchor-elements.js +0 -0
  287. package/{lighthouse-core → core}/gather/gatherers/cache-contents.js +0 -0
  288. package/{lighthouse-core → core}/gather/gatherers/console-messages.js +0 -0
  289. package/{lighthouse-core → core}/gather/gatherers/css-usage.js +0 -0
  290. package/{lighthouse-core → core}/gather/gatherers/devtools-log-compat.js +0 -0
  291. package/{lighthouse-core → core}/gather/gatherers/devtools-log.js +0 -0
  292. package/{lighthouse-core → core}/gather/gatherers/dobetterweb/doctype.js +0 -0
  293. package/{lighthouse-core → core}/gather/gatherers/dobetterweb/domstats.js +0 -0
  294. package/{lighthouse-core → core}/gather/gatherers/dobetterweb/optimized-images.js +0 -0
  295. package/{lighthouse-core → core}/gather/gatherers/dobetterweb/password-inputs-with-prevented-paste.js +0 -0
  296. package/{lighthouse-core → core}/gather/gatherers/dobetterweb/response-compression.js +0 -0
  297. package/{lighthouse-core → core}/gather/gatherers/dobetterweb/tags-blocking-first-paint.js +0 -0
  298. package/{lighthouse-core → core}/gather/gatherers/full-page-screenshot.js +0 -0
  299. package/{lighthouse-core → core}/gather/gatherers/gatherer.js +0 -0
  300. package/{lighthouse-core → core}/gather/gatherers/global-listeners.js +0 -0
  301. package/{lighthouse-core → core}/gather/gatherers/iframe-elements.js +0 -0
  302. package/{lighthouse-core → core}/gather/gatherers/image-elements.js +0 -0
  303. package/{lighthouse-core → core}/gather/gatherers/inputs.js +0 -0
  304. package/{lighthouse-core → core}/gather/gatherers/inspector-issues.js +0 -0
  305. package/{lighthouse-core → core}/gather/gatherers/installability-errors.js +0 -0
  306. package/{lighthouse-core → core}/gather/gatherers/js-usage.js +0 -0
  307. package/{lighthouse-core → core}/gather/gatherers/link-elements.js +0 -0
  308. package/{lighthouse-core → core}/gather/gatherers/main-document-content.js +0 -0
  309. package/{lighthouse-core → core}/gather/gatherers/meta-elements.js +0 -0
  310. package/{lighthouse-core → core}/gather/gatherers/network-user-agent.js +0 -0
  311. package/{lighthouse-core → core}/gather/gatherers/script-elements.js +0 -0
  312. package/{lighthouse-core → core}/gather/gatherers/scripts.js +0 -0
  313. package/{lighthouse-core → core}/gather/gatherers/seo/embedded-content.js +0 -0
  314. package/{lighthouse-core → core}/gather/gatherers/seo/font-size.js +0 -0
  315. package/{lighthouse-core → core}/gather/gatherers/seo/robots-txt.js +0 -0
  316. package/{lighthouse-core → core}/gather/gatherers/seo/tap-targets.js +0 -0
  317. package/{lighthouse-core → core}/gather/gatherers/service-worker.js +0 -0
  318. package/{lighthouse-core → core}/gather/gatherers/source-maps.js +0 -0
  319. package/{lighthouse-core → core}/gather/gatherers/stacks.js +0 -0
  320. package/{lighthouse-core → core}/gather/gatherers/trace-compat.js +0 -0
  321. package/{lighthouse-core → core}/gather/gatherers/trace-elements.js +0 -0
  322. package/{lighthouse-core → core}/gather/gatherers/trace.js +0 -0
  323. package/{lighthouse-core → core}/gather/gatherers/viewport-dimensions.js +0 -0
  324. package/{lighthouse-core → core}/gather/gatherers/web-app-manifest.js +0 -0
  325. package/{lighthouse-core → core}/index.cjs +0 -0
  326. package/{lighthouse-core → core}/index.js +1 -1
  327. package/{lighthouse-core → core}/lib/arbitrary-equality-map.js +0 -0
  328. package/{lighthouse-core → core}/lib/asset-saver.js +0 -0
  329. package/{lighthouse-core → core}/lib/axe.js +0 -0
  330. package/{lighthouse-core → core}/lib/cdt/Common.js +0 -0
  331. package/{lighthouse-core → core}/lib/cdt/Platform.js +0 -0
  332. package/{lighthouse-core → core}/lib/cdt/SDK.js +0 -0
  333. package/{lighthouse-core → core}/lib/cdt/generated/ParsedURL.js +0 -0
  334. package/{lighthouse-core → core}/lib/cdt/generated/SourceMap.js +0 -0
  335. package/{lighthouse-core → core}/lib/cdt/package.json +0 -0
  336. package/{lighthouse-core → core}/lib/csp-evaluator.js +0 -0
  337. package/{lighthouse-core → core}/lib/dependency-graph/base-node.js +0 -0
  338. package/{lighthouse-core → core}/lib/dependency-graph/cpu-node.js +0 -0
  339. package/{lighthouse-core → core}/lib/dependency-graph/network-node.js +0 -0
  340. package/{lighthouse-core → core}/lib/dependency-graph/simulator/connection-pool.js +0 -0
  341. package/{lighthouse-core → core}/lib/dependency-graph/simulator/dns-cache.js +0 -0
  342. package/{lighthouse-core → core}/lib/dependency-graph/simulator/network-analyzer.js +0 -0
  343. package/{lighthouse-core → core}/lib/dependency-graph/simulator/simulator-timing-map.js +0 -0
  344. package/{lighthouse-core → core}/lib/dependency-graph/simulator/simulator.js +0 -0
  345. package/{lighthouse-core → core}/lib/dependency-graph/simulator/tcp-connection.js +0 -0
  346. package/{lighthouse-core → core}/lib/deprecations-strings.js +0 -0
  347. package/{lighthouse-core → core}/lib/emulation.js +0 -0
  348. package/{lighthouse-core → core}/lib/i18n/README.md +2 -2
  349. package/{lighthouse-core → core}/lib/i18n/i18n.js +0 -0
  350. package/{lighthouse-core → core}/lib/icons.js +0 -0
  351. package/{lighthouse-core → core}/lib/lantern-trace-saver.js +0 -0
  352. package/{lighthouse-core → core}/lib/lh-env.js +0 -0
  353. package/{lighthouse-core → core}/lib/lh-error.js +0 -0
  354. package/{lighthouse-core → core}/lib/lh-trace-processor.js +0 -0
  355. package/{lighthouse-core → core}/lib/manifest-parser.js +0 -0
  356. package/{lighthouse-core → core}/lib/median-run.js +0 -0
  357. package/{lighthouse-core → core}/lib/minification-estimator.js +0 -0
  358. package/{lighthouse-core → core}/lib/minify-devtoolslog.js +0 -0
  359. package/{lighthouse-core → core}/lib/minify-trace.js +3 -3
  360. package/{lighthouse-core → core}/lib/navigation-error.js +0 -0
  361. package/{lighthouse-core → core}/lib/network-recorder.js +0 -0
  362. package/{lighthouse-core → core}/lib/network-request.js +0 -0
  363. package/{lighthouse-core → core}/lib/page-functions.js +0 -0
  364. package/{lighthouse-core → core}/lib/proto-preprocessor.js +0 -0
  365. package/{lighthouse-core → core}/lib/rect-helpers.js +0 -0
  366. package/{lighthouse-core → core}/lib/script-helpers.js +0 -0
  367. package/{lighthouse-core → core}/lib/sentry.js +0 -0
  368. package/{lighthouse-core → core}/lib/stack-packs.js +0 -0
  369. package/{lighthouse-core → core}/lib/statistics.js +0 -0
  370. package/{lighthouse-core → core}/lib/tappable-rects.js +0 -0
  371. package/{lighthouse-core → core}/lib/third-party-web.js +0 -0
  372. package/{lighthouse-core → core}/lib/timing-trace-saver.js +0 -0
  373. package/{lighthouse-core → core}/lib/tracehouse/cpu-profile-model.js +0 -0
  374. package/{lighthouse-core → core}/lib/tracehouse/main-thread-tasks.js +0 -0
  375. package/{lighthouse-core → core}/lib/tracehouse/task-groups.js +0 -0
  376. package/{lighthouse-core → core}/lib/tracehouse/task-summary.js +0 -0
  377. package/{lighthouse-core → core}/lib/tracehouse/trace-processor.js +0 -0
  378. package/{lighthouse-core → core}/lib/traces/pwmetrics-events.js +0 -0
  379. package/{lighthouse-core → core}/lib/url-shim.js +0 -0
  380. package/{lighthouse-core → core}/package.json +0 -0
  381. package/{lighthouse-core → core}/runner.js +0 -0
  382. package/{lighthouse-core → core}/scoring.js +0 -0
  383. package/{lighthouse-core → core}/scripts/download-chrome.sh +0 -0
  384. package/{lighthouse-core → core}/scripts/manual-chrome-launcher.js +1 -1
  385. package/{lighthouse-core → core}/scripts/package.json +0 -0
  386. package/{lighthouse-core → core}/util.cjs +1 -1
  387. package/eslint-local-rules.cjs +1 -1
  388. package/flow-report/test/common-test.tsx +1 -1
  389. package/flow-report/test/run-flow-report-tests.sh +1 -1
  390. package/flow-report/test/sample-flow.ts +1 -1
  391. package/flow-report/tsconfig.json +1 -1
  392. package/package.json +36 -36
  393. package/readme.md +4 -4
  394. package/report/clients/bundle.js +1 -1
  395. package/report/test/clients/bundle-test.js +1 -1
  396. package/report/test/generator/report-generator-test.js +3 -3
  397. package/report/test/renderer/category-renderer-test.js +4 -4
  398. package/report/test/renderer/i18n-test.js +1 -1
  399. package/report/test/renderer/performance-category-renderer-test.js +3 -3
  400. package/report/test/renderer/pwa-category-renderer-test.js +2 -2
  401. package/report/test/renderer/report-renderer-axe-test.js +3 -3
  402. package/report/test/renderer/report-renderer-test.js +3 -3
  403. package/report/test/renderer/report-ui-features-test.js +2 -2
  404. package/report/test/renderer/util-test.js +2 -2
  405. package/shared/localization/locales/ar-XB.json +641 -653
  406. package/shared/localization/locales/ar.json +641 -653
  407. package/shared/localization/locales/bg.json +641 -653
  408. package/shared/localization/locales/ca.json +641 -653
  409. package/shared/localization/locales/cs.json +641 -653
  410. package/shared/localization/locales/da.json +641 -653
  411. package/shared/localization/locales/de.json +641 -653
  412. package/shared/localization/locales/el.json +641 -653
  413. package/shared/localization/locales/en-GB.json +641 -653
  414. package/shared/localization/locales/en-US.json +830 -842
  415. package/shared/localization/locales/en-XA.json +641 -653
  416. package/shared/localization/locales/en-XL.json +830 -842
  417. package/shared/localization/locales/es-419.json +641 -653
  418. package/shared/localization/locales/es.json +641 -653
  419. package/shared/localization/locales/fi.json +641 -653
  420. package/shared/localization/locales/fil.json +641 -653
  421. package/shared/localization/locales/fr.json +641 -653
  422. package/shared/localization/locales/he.json +641 -653
  423. package/shared/localization/locales/hi.json +641 -653
  424. package/shared/localization/locales/hr.json +641 -653
  425. package/shared/localization/locales/hu.json +641 -653
  426. package/shared/localization/locales/id.json +641 -653
  427. package/shared/localization/locales/it.json +641 -653
  428. package/shared/localization/locales/ja.json +641 -653
  429. package/shared/localization/locales/ko.json +641 -653
  430. package/shared/localization/locales/lt.json +641 -653
  431. package/shared/localization/locales/lv.json +641 -653
  432. package/shared/localization/locales/nl.json +641 -653
  433. package/shared/localization/locales/no.json +641 -653
  434. package/shared/localization/locales/pl.json +641 -653
  435. package/shared/localization/locales/pt-PT.json +641 -653
  436. package/shared/localization/locales/pt.json +641 -653
  437. package/shared/localization/locales/ro.json +641 -653
  438. package/shared/localization/locales/ru.json +641 -653
  439. package/shared/localization/locales/sk.json +641 -653
  440. package/shared/localization/locales/sl.json +641 -653
  441. package/shared/localization/locales/sr-Latn.json +641 -653
  442. package/shared/localization/locales/sr.json +641 -653
  443. package/shared/localization/locales/sv.json +641 -653
  444. package/shared/localization/locales/ta.json +641 -653
  445. package/shared/localization/locales/te.json +641 -653
  446. package/shared/localization/locales/th.json +641 -653
  447. package/shared/localization/locales/tr.json +641 -653
  448. package/shared/localization/locales/uk.json +641 -653
  449. package/shared/localization/locales/vi.json +641 -653
  450. package/shared/localization/locales/zh-HK.json +641 -653
  451. package/shared/localization/locales/zh-TW.json +641 -653
  452. package/shared/localization/locales/zh.json +641 -653
  453. package/shared/localization/swap-locale.js +3 -3
  454. package/shared/test/localization/format-test.js +5 -5
  455. package/shared/test/localization/swap-locale-test.js +8 -8
  456. package/third-party/chromium-synchronization/inspector-issueAdded-types-test.js +1 -1
  457. package/third-party/chromium-synchronization/installability-errors-test.js +1 -1
  458. package/tsconfig.json +84 -84
  459. package/types/artifacts.d.ts +7 -7
  460. package/types/audit.d.ts +1 -1
  461. package/types/config.d.ts +1 -1
  462. package/types/gatherer.d.ts +8 -8
  463. package/types/global-lh.d.ts +2 -2
  464. package/types/user-flow.d.ts +1 -1
  465. package/lighthouse-core/audits/apple-touch-icon.js +0 -72
package/CONTRIBUTING.md CHANGED
@@ -33,13 +33,13 @@ If proposing a new audit for Lighthouse, see the [new audit proposal guide](./do
33
33
 
34
34
  A PR for a new audit or changing an existing audit almost always needs the following:
35
35
 
36
- 1. If new, add the audit to the [default config file](lighthouse-core/config/default-config.js) (or, rarely, one of the other config files) so Lighthouse will run it.
36
+ 1. If new, add the audit to the [default config file](core/config/default-config.js) (or, rarely, one of the other config files) so Lighthouse will run it.
37
37
 
38
- 1. **Unit tests**: in the matching test file (e.g. tests for `lighthouse-core/audits/my-swell-audit.js` go in `lighthouse-core/test/audits/my-swell-audit-test.js`).
38
+ 1. **Unit tests**: in the matching test file (e.g. tests for `core/audits/my-swell-audit.js` go in `core/test/audits/my-swell-audit-test.js`).
39
39
 
40
- 1. **Smoke (end-to-end) tests**: search through the [existing test expectations](lighthouse-cli/test/smokehouse/test-definitions/) to see if there's a logical place to add a check for your change, or (as a last resort) add a new smoke test.
40
+ 1. **Smoke (end-to-end) tests**: search through the [existing test expectations](cli/test/smokehouse/test-definitions/) to see if there's a logical place to add a check for your change, or (as a last resort) add a new smoke test.
41
41
 
42
- 1. Run `yarn update:sample-json` to update the [sample Lighthouse result JSON](lighthouse-core/test/results/sample_v2.json) kept in the repo for testing. This will also pull any strings needed for localization into the correct files.
42
+ 1. Run `yarn update:sample-json` to update the [sample Lighthouse result JSON](core/test/results/sample_v2.json) kept in the repo for testing. This will also pull any strings needed for localization into the correct files.
43
43
 
44
44
  ### Audit `description` Guidelines
45
45
 
@@ -68,13 +68,13 @@ It can be tempting to serialize the entire state of the world into the artifact
68
68
 
69
69
  A PR adding or changing a gatherer almost always needs to include the following:
70
70
 
71
- 1. If new, add the gatherer to the [default config file](lighthouse-core/config/default-config.js) (or, rarely, one of the other config files) so Lighthouse will run it.
71
+ 1. If new, add the gatherer to the [default config file](core/config/default-config.js) (or, rarely, one of the other config files) so Lighthouse will run it.
72
72
 
73
73
  1. **Unit tests**: gatherer execution often takes place mostly on the browser side, either through protocol functionality or executing javascript in the test page. This makes gatherers difficult to unit test without extensive mocking, ending up mostly exercising the mocks instead of the actual gatherer.
74
74
 
75
- As a result, we mostly rely on smoke testing for gatherers. However, if there are parts of a gatherer that naturally lend themselves to unit testing, the new tests would go in the matching test file (e.g. tests for `lighthouse-core/gather/gatherers/reap.js` go in `lighthouse-core/test/gather/gatherers/reap-test.js`).
75
+ As a result, we mostly rely on smoke testing for gatherers. However, if there are parts of a gatherer that naturally lend themselves to unit testing, the new tests would go in the matching test file (e.g. tests for `core/gather/gatherers/reap.js` go in `core/test/gather/gatherers/reap-test.js`).
76
76
 
77
- 1. **Smoke (end-to-end) tests**: search through the [existing test expectations](lighthouse-cli/test/smokehouse/test-definitions/) to see if there's a logical place to add a check for your change, or (as a last resort) add a new smoke test if one is required.
77
+ 1. **Smoke (end-to-end) tests**: search through the [existing test expectations](cli/test/smokehouse/test-definitions/) to see if there's a logical place to add a check for your change, or (as a last resort) add a new smoke test if one is required.
78
78
 
79
79
  It's most important to get true end-to-end coverage, so be sure that audits that consume the new gatherer output are in the expectations. Artifacts can also have expectations for those intermediate results.
80
80
 
@@ -87,7 +87,7 @@ A PR adding or changing a gatherer almost always needs to include the following:
87
87
 
88
88
  This command works for updating `yarn update:sample-artifacts devtoolsLogs` or `traces` as well, but the resulting `sample_v2.json` churn may be extensive and you might be better off editing manually.
89
89
 
90
- 1. Run `yarn update:sample-json` to update the [sample Lighthouse result JSON](lighthouse-core/test/results/sample_v2.json) kept in the repo for testing. This will also pull any strings needed for localization into the correct files.
90
+ 1. Run `yarn update:sample-json` to update the [sample Lighthouse result JSON](core/test/results/sample_v2.json) kept in the repo for testing. This will also pull any strings needed for localization into the correct files.
91
91
 
92
92
  ## Protobuf errors
93
93
 
@@ -128,13 +128,13 @@ accept your pull requests.
128
128
 
129
129
  ## Tracking Errors
130
130
 
131
- We track our errors in the wild with Sentry. In general, do not worry about wrapping your audits or gatherers in try/catch blocks and reporting every error that could possibly occur; `lighthouse-core/runner.js` and `lighthouse-core/gather/gather-runner.js` already catch and report any errors that occur while running a gatherer or audit, including errors fatal to the entire run. However, there are some situations when you might want to explicitly handle an error and report it to Sentry or wrap it to avoid reporting. Generally, you can interact with Sentry simply by requiring the `lighthouse-core/lib/sentry.js` file and call its methods. The module exports a delegate that will correctly handle the error reporting based on the user's opt-in preference and will simply no-op if they haven't so you don't need to check.
131
+ We track our errors in the wild with Sentry. In general, do not worry about wrapping your audits or gatherers in try/catch blocks and reporting every error that could possibly occur; `core/runner.js` and `core/gather/gather-runner.js` already catch and report any errors that occur while running a gatherer or audit, including errors fatal to the entire run. However, there are some situations when you might want to explicitly handle an error and report it to Sentry or wrap it to avoid reporting. Generally, you can interact with Sentry simply by requiring the `core/lib/sentry.js` file and call its methods. The module exports a delegate that will correctly handle the error reporting based on the user's opt-in preference and will simply no-op if they haven't so you don't need to check.
132
132
 
133
133
 
134
134
  #### If you have an expected error that is recoverable but want to track how frequently it happens, *use Sentry.captureException*.
135
135
 
136
136
  ```js
137
- const Sentry = require('./lighthouse-core/lib/sentry');
137
+ const Sentry = require('./core/lib/sentry');
138
138
 
139
139
  try {
140
140
  doRiskyThing();
@@ -152,7 +152,7 @@ try {
152
152
  NOTE: If the message you're capturing is dynamic/based on user data or you need a stack trace, then create a fake error instead and use `Sentry.captureException` so that the instances will be grouped together in Sentry.
153
153
 
154
154
  ```js
155
- const Sentry = require('./lighthouse-core/lib/sentry');
155
+ const Sentry = require('./core/lib/sentry');
156
156
 
157
157
  if (networkRecords.length === 1) {
158
158
  Sentry.captureMessage('Site only had 1 network request', {level: 'info'});
@@ -10,7 +10,7 @@
10
10
  * index.js : only calls bin.js's begin()
11
11
  * cli-flags.js : leverages yargs to read argv, outputs LH.CliFlags
12
12
  * bin.js : CLI args processing. cwd, list/print commands
13
- * run.js : chrome-launcher bits, calling lighthouse-core, output to Printer
13
+ * run.js : chrome-launcher bits, calling core, output to Printer
14
14
  *
15
15
  * index ----> bin ----> run ----> printer
16
16
  * ⭏ ⭎ ⭏ ⭎
@@ -27,11 +27,11 @@ 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 '../lighthouse-core/index.js';
30
+ import {generateConfig, generateLegacyConfig} from '../core/index.js';
31
31
  import {askPermission} from './sentry-prompt.js';
32
32
  import {LH_ROOT} from '../root.js';
33
- import {Sentry} from '../lighthouse-core/lib/sentry.js';
34
- import {getConfigDisplayString} from '../lighthouse-core/fraggle-rock/config/config.js';
33
+ import {Sentry} from '../core/lib/sentry.js';
34
+ import {getConfigDisplayString} from '../core/fraggle-rock/config/config.js';
35
35
 
36
36
  const pkg = JSON.parse(fs.readFileSync(LH_ROOT + '/package.json', 'utf-8'));
37
37
 
@@ -78,7 +78,7 @@ async function begin() {
78
78
  configJson = (await import(configModuleUrl)).default;
79
79
  }
80
80
  } else if (cliFlags.preset) {
81
- configJson = (await import(`../lighthouse-core/config/${cliFlags.preset}-config.js`)).default;
81
+ configJson = (await import(`../core/config/${cliFlags.preset}-config.js`)).default;
82
82
  }
83
83
 
84
84
  if (cliFlags.budgetPath) {
@@ -133,7 +133,7 @@ function getYargsParser(manualArgv) {
133
133
  'config-path': {
134
134
  type: 'string',
135
135
  describe: `The path to the config JSON.
136
- An example config file: lighthouse-core/config/lr-desktop-config.js`,
136
+ An example config file: core/config/lr-desktop-config.js`,
137
137
  },
138
138
  'preset': {
139
139
  type: 'string',
File without changes
@@ -4,7 +4,7 @@
4
4
  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
5
5
  */
6
6
 
7
- import {getAuditList} from '../../lighthouse-core/index.js';
7
+ import {getAuditList} from '../../core/index.js';
8
8
 
9
9
  function listAudits() {
10
10
  const audits = getAuditList().map((i) => i.replace(/\.js$/, ''));
File without changes
@@ -4,7 +4,7 @@
4
4
  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
5
5
  */
6
6
 
7
- import {traceCategories} from '../../lighthouse-core/index.js';
7
+ import {traceCategories} from '../../core/index.js';
8
8
 
9
9
  function listTraceCategories() {
10
10
  process.stdout.write(JSON.stringify({traceCategories}));
File without changes
File without changes
File without changes
@@ -15,10 +15,10 @@ import log from 'lighthouse-logger';
15
15
  import open from 'open';
16
16
 
17
17
  import * as Printer from './printer.js';
18
- import lighthouse, {legacyNavigation} from '../lighthouse-core/index.js';
18
+ import lighthouse, {legacyNavigation} from '../core/index.js';
19
19
  import {getLhrFilenamePrefix} from '../report/generator/file-namer.js';
20
- import * as assetSaver from '../lighthouse-core/lib/asset-saver.js';
21
- import URL from '../lighthouse-core/lib/url-shim.js';
20
+ import * as assetSaver from '../core/lib/asset-saver.js';
21
+ import URL from '../core/lib/url-shim.js';
22
22
 
23
23
  /** @typedef {Error & {code: string, friendlyMessage?: string}} ExitError */
24
24
 
File without changes
@@ -26,7 +26,7 @@ import {updateTestDefnFormat} from './back-compat-util.js';
26
26
  import {LH_ROOT} from '../../../../root.js';
27
27
 
28
28
  const coreTestDefnsPath =
29
- path.join(LH_ROOT, 'lighthouse-cli/test/smokehouse/core-tests.js');
29
+ path.join(LH_ROOT, 'cli/test/smokehouse/core-tests.js');
30
30
 
31
31
  /**
32
32
  * Possible Lighthouse runners. Loaded dynamically so e.g. a CLI run isn't
@@ -19,9 +19,9 @@ import {once} from 'events';
19
19
  import puppeteer from 'puppeteer-core';
20
20
  import ChromeLauncher from 'chrome-launcher';
21
21
 
22
- import {CriConnection} from '../../../../lighthouse-core/gather/connections/cri.js';
22
+ import {CriConnection} from '../../../../core/gather/connections/cri.js';
23
23
  import {LH_ROOT} from '../../../../root.js';
24
- import {loadArtifacts, saveArtifacts} from '../../../../lighthouse-core/lib/asset-saver.js';
24
+ import {loadArtifacts, saveArtifacts} from '../../../../core/lib/asset-saver.js';
25
25
 
26
26
  // This runs only in the worker. The rest runs on the main thread.
27
27
  if (!isMainThread && parentPort) {
@@ -68,11 +68,11 @@ async function runBundledLighthouse(url, configJson, testRunnerOptions) {
68
68
  global.require = originalRequire;
69
69
  global.Buffer = originalBuffer;
70
70
 
71
- /** @type {import('../../../../lighthouse-core/index.js')['default']} */
71
+ /** @type {import('../../../../core/index.js')['default']} */
72
72
  // @ts-expect-error - not worth giving test global an actual type.
73
73
  const lighthouse = global.runBundledLighthouse;
74
74
 
75
- /** @type {import('../../../../lighthouse-core/index.js')['legacyNavigation']} */
75
+ /** @type {import('../../../../core/index.js')['legacyNavigation']} */
76
76
  // @ts-expect-error - not worth giving test global an actual type.
77
77
  const legacyNavigation = global.runBundledLighthouseLegacyNavigation;
78
78
 
@@ -17,7 +17,7 @@ import {execFile} from 'child_process';
17
17
 
18
18
  import log from 'lighthouse-logger';
19
19
 
20
- import * as assetSaver from '../../../../lighthouse-core/lib/asset-saver.js';
20
+ import * as assetSaver from '../../../../core/lib/asset-saver.js';
21
21
  import {LocalConsole} from '../lib/local-console.js';
22
22
  import {ChildProcessError} from '../lib/child-process-error.js';
23
23
  import {LH_ROOT} from '../../../../root.js';
@@ -57,7 +57,7 @@ async function internalRun(url, tmpPath, configJson, options) {
57
57
  const artifactsDirectory = `${tmpPath}/artifacts/`;
58
58
 
59
59
  const args = [
60
- `${LH_ROOT}/lighthouse-cli/index.js`,
60
+ `${LH_ROOT}/cli/index.js`,
61
61
  `${url}`,
62
62
  `--output-path=${outputPath}`,
63
63
  '--output=json',
@@ -13,7 +13,7 @@ import os from 'os';
13
13
  import {execFileSync} from 'child_process';
14
14
 
15
15
  import {LH_ROOT} from '../../../../root.js';
16
- import {testUrlFromDevtools} from '../../../../lighthouse-core/scripts/pptr-run-devtools.js';
16
+ import {testUrlFromDevtools} from '../../../../core/scripts/pptr-run-devtools.js';
17
17
 
18
18
  const devtoolsDir =
19
19
  process.env.DEVTOOLS_PATH || `${LH_ROOT}/.tmp/chromium-web-tests/devtools/devtools-frontend`;
@@ -26,11 +26,11 @@ async function setup() {
26
26
 
27
27
  process.env.DEVTOOLS_PATH = devtoolsDir;
28
28
  execFileSync('bash',
29
- ['lighthouse-core/test/devtools-tests/download-devtools.sh'],
29
+ ['core/test/devtools-tests/download-devtools.sh'],
30
30
  {stdio: 'inherit'}
31
31
  );
32
32
  execFileSync('bash',
33
- ['lighthouse-core/test/devtools-tests/roll-devtools.sh'],
33
+ ['core/test/devtools-tests/roll-devtools.sh'],
34
34
  {stdio: 'inherit'}
35
35
  );
36
36
  }
@@ -6,7 +6,7 @@ By default this is done using the Lighthouse CLI (to exercise the full pipeline)
6
6
 
7
7
  ## Options
8
8
 
9
- See [`SmokehouseOptions`](https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-cli/test/smokehouse/smokehouse.js#L23).
9
+ See [`SmokehouseOptions`](https://github.com/GoogleChrome/lighthouse/blob/master/cli/test/smokehouse/smokehouse.js#L23).
10
10
 
11
11
  ## Test definitions
12
12
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  /* eslint-disable no-control-regex */
8
8
 
9
- import {readJson} from '../../../lighthouse-core/test/test-utils.js';
9
+ import {readJson} from '../../../core/test/test-utils.js';
10
10
  import {findDifferences, getAssertionReport} from './report-assert.js';
11
11
 
12
12
  describe('findDiffersences', () => {
@@ -193,8 +193,8 @@ function clean(text) {
193
193
  }
194
194
 
195
195
  describe('getAssertionReport', () => {
196
- const lhr = readJson('lighthouse-core/test/results/sample_v2.json');
197
- const artifacts = readJson('lighthouse-core/test/results/artifacts/artifacts.json');
196
+ const lhr = readJson('core/test/results/sample_v2.json');
197
+ const artifacts = readJson('core/test/results/artifacts/artifacts.json');
198
198
 
199
199
  it('works (trivial passing)', () => {
200
200
  const report = getAssertionReport({lhr, artifacts}, {
File without changes
File without changes
File without changes
@@ -9,7 +9,7 @@
9
9
  * @fileoverview Identifies polyfills and transforms that should not be present if using module/nomodule pattern.
10
10
  * @see https://docs.google.com/document/d/1ItjJwAd6e0Ts6yMbvh8TN3BBh_sAd58rYE1whnpuxaA/edit Design document
11
11
  * @see https://docs.google.com/spreadsheets/d/1z28Au8wo8-c2UsM2lDVEOJcI3jOkb2c951xEBqzBKCc/edit?usp=sharing Legacy babel transforms / polyfills
12
- * ./lighthouse-core/scripts/legacy-javascript - verification tool.
12
+ * ./core/scripts/legacy-javascript - verification tool.
13
13
  */
14
14
 
15
15
  /** @typedef {{name: string, expression: string, estimateBytes?: (result: PatternMatchResult) => number}} Pattern */
@@ -29,7 +29,7 @@ import {getRequestForScript} from '../../lib/script-helpers.js';
29
29
  import {LH_ROOT} from '../../../root.js';
30
30
 
31
31
  const graphJson = fs.readFileSync(
32
- `${LH_ROOT}/lighthouse-core/audits/byte-efficiency/polyfill-graph-data.json`, 'utf-8');
32
+ `${LH_ROOT}/core/audits/byte-efficiency/polyfill-graph-data.json`, 'utf-8');
33
33
 
34
34
  /** @type {import('../../scripts/legacy-javascript/create-polyfill-size-estimation.js').PolyfillSizeEstimator} */
35
35
  const graph = JSON.parse(graphJson);
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes