Граф коммитов

324 Коммитов

Автор SHA1 Сообщение Дата
Paul Irish 1b96506992 misc(package): scripts don't require "--" for options to be forwarded (#4437) 2018-02-06 14:04:09 -08:00
Paul Irish d6b027e957
tests(coverage): minimize impact of timeout due to istanbul's instrumentation (#4396) 2018-01-31 10:43:52 -08:00
Paul Irish fe17df0539
deps: bump metaviewport-parser to 0.2.0 (#4382) 2018-01-29 15:53:19 -08:00
Chris Thompson c225d0189f misc(package): Add mixed-content yarn script (#4344) 2018-01-26 13:01:19 +11:00
Paul Irish 5c197c5549
2.8.0 (#4245) 2018-01-12 14:46:20 -08:00
Ward Peeters 6c5e7a4fce deps(chrome-launcher): Upgrade chrome-launcher to 0.10.2 (#4192) 2018-01-09 11:49:46 -08:00
Rob Dodson 8c088a682e report(a11y): Don't count non-applicable a11y audits toward score (#4052) 2018-01-05 12:36:53 -08:00
Paul Irish a2bcf82c13
core(lifecycle): allow gathering & auditing to run separately (#3743)
New features:
* Gather mode launches the browser, collects artifacts, saves them to disk, and quits.
* Audit mode skips browser interaction, loads artifacts from disk, runs audits on them, generates report
* --gather-mode and --audit-mode are the long versions of -G and -A.
* -GA is also supported. Normal run, but saves artifacts to disk for subsequent -A runs.

Other changes:
* config.auditResults is removed
* assetSaver got a new impl of saveArtifacts, and added loadArtifacts
* --save-artifacts CLI flag was removed
2018-01-05 12:17:11 -08:00
Patrick Hulce d7a9f3bc37
core(network-recorder): use findNetworkQuietPeriods for networkIdle (#4102)
core(network-recorder): use findNetworkQuietPeriods for networkIdle calculations
2018-01-02 13:58:44 -08:00
Patrick Hulce 017c9c1e31 new-audit(unminified-javascript): detect savings from minifcation (#3950) 2017-12-19 18:31:33 -08:00
Patrick Hulce 9fa36ceaf2
deps: bump js-library-detector (#4086) 2017-12-18 16:32:06 -08:00
Patrick Hulce 5e23dbba1a
v2.7.0 (#4060) 2017-12-14 16:14:41 -08:00
Paul Irish cf92030c05 tests(smokehouse): adopt URLSearchParams for querystring manipulation (#3941)
* bump whatwg-url to latest to get their URLSearchParams

* use real URLSearchParams for header parsing.

* fix looping over urlsearchparams

* latest whatwg-url adds a trailing slash to chrome://version

* remove trailing slashes on chrome:// urls, as per spec
2017-12-08 09:42:49 -08:00
Robert Medeiros 3bdb56e80a deps: Bump ws to 3.3.2 (#3949) 2017-11-29 16:57:53 -08:00
Konrad Dzwinel 6910f5d2f6 new_audit(hreflang): document has a valid hreflang code (#3815) 2017-11-28 18:18:28 -08:00
Brendan Kenny 407b1af5eb
cli: compile out remaining typescript; add tsc type checking via jsdocs (#3747) 2017-11-20 18:10:03 -08:00
Paul Irish 1fe2a95266 misc(changelog): minor changelog generation usability bumps (#3847) 2017-11-17 18:08:52 -08:00
Brendan Kenny 70574e872c
2.6.0 (#3848) 2017-11-17 17:48:16 -08:00
Patrick Hulce 32ed80c048 new_audit(cache-headers): detects savings from leveraging caching (#3531) 2017-11-17 15:42:14 -08:00
Patrick Hulce a9780d6690 core(speed-index): only compute perceptual speed index (#3845) 2017-11-17 22:36:57 +01:00
Ward Peeters 5b96072da7
misc(changelog-generator): Generate changelogs (#3632) 2017-11-11 14:33:12 +01:00
Patrick Hulce de5785042d core(lib): add error reporting (#2420)
* refactor(StartUrl): switch from error to debugString object

* feat: add error reporting

* cave to peer pressure

* lint

* merge fixes

* reduce yarn churn

* limit impact to run.ts

* clang format

* avoid duplicate errors

* lint

* disable error reporting on test

* feedback

* remove enableErrorReporting default

* update readme

* fix yarn.lock

* add error reporting doc

* doc feedback

* move sentry call

* more cleanup

* remove unused environmentData
2017-10-26 17:01:03 -07:00
Patrick Hulce 04b685fa9f core(driver): use execution context isolation when necessary (#3500)
* fix(driver): use execution context isolation when necessary

* feedback

* add unit test

* feedback

* add jsdoc comment
2017-10-13 15:57:00 -07:00
Brendan Kenny a86c4b4711 tests(eslint): update eslint (and goog config) to latest (#3396)
* tests(eslint): update eslint (and goog config) to latest

* update deps
2017-10-11 16:26:40 -07:00
Paul Irish 7711705262 core: add cz-customizable to establish a commit message convention (#3499)
* misc: add cz-customizable to establish a commit message convention

* add cz config

* nits
2017-10-11 10:32:34 -07:00
Paul Irish 320eb1f78f tests(eslint): use --quiet flag rather than --silent (#3491) 2017-10-06 18:31:53 -07:00
Paul Irish f7a3a273a4 web-inspector: fall back to page's Runtime and queryParam() (#3497) 2017-10-06 15:19:36 -07:00
Ward Peeters b074ac7dca feat(redirects-audit): Adding Redirect audit (PSI Compat) (#3308) 2017-10-05 16:43:55 -07:00
Paul Irish 05030ade96 Bump launcher to 0.8.1 (#3479) 2017-10-05 08:26:33 -07:00
Brendan Kenny db9e375519 2.5.0 2017-10-04 15:27:08 -07:00
Brendan Kenny 474f3069f2 fix(deps): add yargs-parser at 7.0.0 (#3478)
reverts previous addition to put package in root deps
2017-10-04 15:14:57 -07:00
Paul Irish 2d2206b874 ws to 1.1.2. fix insecure randomness vuln. 2017-09-29 18:22:30 -07:00
tkadlec 6b4b8b97fb feat(audit): No vulnerable JS libraries audit (#2372) 2017-09-29 15:53:49 -07:00
Brendan Kenny 80f185f954 Switch to using standalone chrome-launcher package (#3410) 2017-09-26 07:14:08 +09:00
Paul Irish 7352c68206 fix(bundlesize): re-enable bundlesize reporting (#3392) 2017-09-22 13:39:39 -07:00
Laurence Cartwright d42075501e fix: Bump axe-core to 2.4.1 (#3320)
* Bump axe-core to 2.4.1 Fixes #3318

* Bump yarn.lock for axe-core
2017-09-13 13:39:33 -07:00
Brendan Kenny 850dbb3377 test(smokehouse): add basic smoke test for SEO audits (#3267) 2017-09-12 14:35:33 -07:00
Rob Dodson bc09205675 Bump axe to 2.4.0 (#3284) 2017-09-08 14:42:36 -07:00
Siddharth Kshetrapal 0e07b7deea Upgrade bundlesize to 0.13.2 (#3122) 2017-08-29 10:49:14 -07:00
Paul Irish c05198f37b 2.4.0 2017-08-14 16:42:51 -07:00
Mykyta Khmel e1a04dd94d "shrink-to-fit" property in "viewport" meta is no longer invalid (#2863) 2017-08-07 12:39:58 -07:00
Paul Irish 232c99bd6a v2.3.0 2017-07-19 19:09:48 -07:00
Paul Irish 5172ff7f0a add bundlesize to track our build size (#2676)
* add bundlesize to check lh-bg.js.
* check viewer size as well.
* run bundlesize on travis.
2017-07-11 14:23:18 -07:00
Paul Irish ef08106357 upgrade rimraf to latest (#2641) 2017-07-05 10:18:21 -07:00
Paul Irish 187c6d5096 v2.2.1 2017-06-30 15:14:45 -07:00
Paul Irish 5501779b51 v2.2.0 2017-06-30 14:33:03 -07:00
Brendan Kenny fadaef9513 remove report v1 and dependencies (#2596)
removes removes report as well as formatters, handlebars, handlebar build files, etc
2017-06-28 14:07:42 -07:00
Patrick Hulce 56eaa50f84 fix(driver): wait for CPU idle via clientside perfObserver (#2473) 2017-06-28 13:42:23 -07:00
Brendan Kenny 2b31a44e34 Viewer: Lighthouse 2.0 support (#2521)
* basic viewer working

* most features working

* reenable remaining features

* cleanup

* fix filename

* logger, ga, and version check

* make closure happy

* pull report-ui-features out of report-renderer

disable save-as-gist based on providing a callback for saving

* gulp watch

* add back drag-and-drop unit test

* actually make closure happy

* review fixes

* review feedback
2017-06-22 15:55:19 -07:00
Paul Irish ad4c3db40e Report coverage to codecov.io (#2519) 2017-06-19 21:20:26 -07:00
Sam Saccone cc5485fead Enable typescript coverage metrics for coveralls.
use nyc + lcov merge to generate a combined coverage report.

Fixes #2374
2017-06-19 20:49:14 -07:00
Sam Saccone c787b75420 extract logger from lighthouse (#2528) 2017-06-19 18:30:12 -07:00
Will Chen 1c5c57fe1c plots: smoke test for happy case (#2411) 2017-06-13 15:11:19 -04:00
Paul Irish 65db419b15 Tag lighthouse 2.1.0 (#2450)
* bump extension to 2.1.0

* v2.1.0
2017-06-06 17:22:07 -07:00
Paul Irish 387731a80c Run npm install/build tasks in parallel (#2381) 2017-06-05 11:23:58 -07:00
Even Stensberg 5107ab25ee revise package.json script to the correct folder (#2373) 2017-05-26 10:31:34 -07:00
Paul Irish 57b8fc7309 v2.0.1-alpha.0 2017-05-23 15:34:59 -07:00
Rob Dodson 3716658be4 Rev axe to address #2206 (#2335) 2017-05-22 16:07:23 -07:00
Paul Irish 31cb266de2 Tag and ship Lighthouse 2.0 (#2315)
* bump to 2.0, during eric & brendan's Google IO presentation
* v2.0.0
2017-05-19 12:54:50 -07:00
Brendan Kenny 10741b1038 yarn install-all should really install all (#2308) 2017-05-18 18:27:06 -07:00
Patrick Hulce c4c858affc chore: bump canary to 2.0.0-alpha.7 (#2288) 2017-05-16 22:31:00 -07:00
Paul Irish 817034440c Ship new canary v2.0.0-alpha.6 (#2262) 2017-05-15 23:42:19 -07:00
Patrick Hulce 73fc72000d feat: add filmstrip to report (#2239)
* feat: add filmstrip to report

* add doc to scale down thumbnail method

* closure

* update test year

* never show 0ms screenshot

* feedback

* feedback

* feedback

* better version of feedback

* nuke bold
2017-05-15 14:03:24 -07:00
Paul Irish fc05324d5b release: Tagging 2.0.0-alpha.5 (#2253) 2017-05-15 12:41:15 -07:00
Sam Saccone 2e2deb289f Update chrome-debug path 2017-05-15 12:35:12 -04:00
Sam Saccone 9c06fc188c Extract chrome-launcher to a standalone thing. (#2245)
* Also extract default flags to standalone entity.
2017-05-13 15:40:33 -07:00
Patrick Hulce 7d7bac668a perf: enable speedline fastMode (#2230) 2017-05-11 12:10:37 -07:00
Paul Irish 978ef5bbf2 bump to 2.0.0-alpha.4 (#2207) 2017-05-09 23:46:40 -07:00
Paul Irish efaeb135fd Report-> domhtml renderer. Add Lighthouse Canary assets (#2184) 2017-05-09 14:08:32 -07:00
Sam Saccone b21c40b571 Add automatic formatting tests 2017-05-08 18:21:45 -07:00
Paul Irish 4efdd20f5e version to 2.0.0-alpha.2 2017-05-08 13:56:15 -07:00
Paul Irish 9a8f7b732c Rename *-unit scripts to unit-* (#2119) 2017-05-01 18:03:30 -07:00
Paul Irish ff4d66714b Add script to compile renderer against TOT devtools frontend (#2099) 2017-05-01 16:46:13 -07:00
Brendan Kenny 11957a01d1 followup for issues in #2000 (#2100)
also update closure for mid-month release
2017-04-28 17:14:10 -07:00
Rob Dodson e46244d640 Bump axe-core (#2090) 2017-04-27 16:17:14 -07:00
Paul Irish 638760eec8 Migrate all dev scripts + docs from npm to yarn. (#2072)
Users can install install with npm, though
2017-04-26 12:41:01 -07:00
Paul Irish 948b80b185 package.json: Lighthouse version => 2.0.0-alpha.1 2017-04-22 12:07:26 -07:00
Paul Irish a549461217 package.json: only use yarn to install 2017-04-22 10:51:06 -07:00
Brendan Kenny 2faa6867d0 add Closure type checking for report v2 (#2043)
* initial closure type checking for report v2
* introduce DOM.find(selector,context); 
* enable closure checking (for report) in tests
2017-04-21 14:55:38 -07:00
Patrick Hulce d90bce3b84 fix: bump speedline to fix perceptual speed index (#2046)
* fix: bump speedline to fix perceptual speed index

* test: update tests for speedline bump
2017-04-20 23:52:33 -07:00
Paul Irish 1563f927d1 bump master to v1.7.0-alpha (#2017)
[skip ci]
2017-04-14 18:07:08 -07:00
Paul Irish eed06ad086 add script to roll LH to devtools. (#2009) 2017-04-13 18:52:25 -07:00
Paul Irish c1f54d7919 Remove babel transpile of traceviewerjs (#1998)
* remove destructuring rewrite from traceviewerjs
* regenerate traceviewer-js
* eslintignore: add plots/out
* Update build-traceviewer-module.js
2017-04-12 11:17:42 -04:00
Eric Bidelman 0b9f960216 Report v2: generate DOM from `<template>`; improve scoring and details (#1963) 2017-04-07 16:54:57 -07:00
Patrick Hulce 4849d515e0 feat: add npm run clean (#1974) 2017-04-07 16:06:18 -07:00
Paul Irish 71b86c51fa Add a smoke test for perf config. (#1957) 2017-04-03 14:17:46 -07:00
Eric Bidelman 0386598fe8 CLI: remove npm prepublish (#1889) 2017-03-27 18:24:09 -07:00
Eric Bidelman bd06f760c0 Fixes #1907 - move update-notifier to root (#1908) 2017-03-24 18:11:53 -07:00
Brendan Kenny b5afd60e3b remove formatters 2017-03-09 20:33:33 -08:00
Sendil Kumar N 3649322203 Adopt handlebars precompiled templates (#1752)
* Adopt handlebars precompiled templates
* Included gulp-concat / declare in dev dependencies
* replace empty to null formatter
* Added gulp to run before executing unit tests
* travis build changes
* changes to appveyor build
2017-03-03 16:57:03 -08:00
Paul Irish 1b8af1f69c bump to 1.6.0 (#1814) 2017-03-03 16:22:26 -08:00
Patrick Hulce 59bc945ef7 feat: configurable page timeout (#1672)
* feat: configurable page timeout
* update max-wait-for-load description
* update readme text
* bump yargs
2017-02-15 16:07:25 -08:00
Patrick Hulce d1b91101a8 refactor: DRY byte efficiency audits (#1635)
* refactor: DRY byte efficiency tests

* loosen responsive images conditions

* reduce optimized images aggressiveness

* consistency with optimized images threshold

* more updates

* add class overview

* update unused css description

* more feedback

* added smoke tests

* adjust perf.json

* pauls feedback
2017-02-14 16:43:16 -08:00
Brendan Kenny 3043cc3732 1.5.1 (#1688) 2017-02-10 12:23:18 -08:00
XhmikosR a00eee2e19 Use uppercase repository name in github URLs. (#1682) 2017-02-10 08:46:20 -08:00
Brendan Kenny 49ed379a36 1.5.0 (#1680) 2017-02-09 21:10:23 -08:00
XhmikosR c32c37615a Update mocha to v3.2.0.
Fixes various `npm i` warnings.
2017-02-02 02:09:50 +02:00
XhmikosR 8a41880f10 Switch back to plain `npm install` (#1522)
`npm install -C` does not work on Windows.
2017-01-25 11:48:11 -08:00
XhmikosR fd90f5ce94 Modify package.json scripts to use bash/node explicitly. (#1510)
Shebangs don't work on Windows.
2017-01-24 20:49:40 -08:00
Brendan Kenny a17238a2d8 remove support for node before v6 (#1519) 2017-01-24 15:39:47 -08:00
Brendan Kenny 6833a5a8e0 lock (npm) dependency versions (#1422) 2017-01-23 15:44:03 -08:00
Patrick Hulce ae897933a0 fix: less noisy CSS unused rules (#1466)
* fix: less noisy CSS unused rules

* filter out duplicate stylesheets
* don't report stylesheets that have no rules

addresses #1456

* add smokehouse length expectation

* feedback
2017-01-17 12:42:45 -08:00
M Somerville 4514a73781 Viewport audit: accept initial-scale and allow spaces (#1267)
Introduce `metaviewport-parser` module for better parsing.
2017-01-12 10:33:50 -08:00
Eric Bidelman b810242d25 Add install/build scripts for each package.json (#1439)
* Prepublish commands to do the initial building
* Update CLI warning for ts compile
* Remove prepublish. Add helpful build scripts
* Keep prepublish for tsc compile
* make node4 happy
2017-01-12 02:28:53 -08:00
Eric Bidelman cd5015a2e6 Viewer: Add tests for fileuploader (#1184) 2017-01-05 16:42:10 -08:00
Brendan Kenny 179783b6a2 1.4.1 (#1406) 2017-01-04 18:45:16 -08:00
Paul Irish de25797c04 1.4.0 (#1403) 2017-01-04 15:34:04 -08:00
Eric Bidelman 83c4915caa Removes uses of HTML injection in report (#1226)
* Beginning to use markdown in snippets

* Allow links and code snippets

* Update audits to use .md instead of html

* Add tests
2017-01-03 10:47:21 -08:00
XhmikosR 46a7fb1427 Remove duplicate mkdirp dependency.
Fixes npm install warning.
2016-12-23 23:23:26 +02:00
Brendan Kenny aa1059b0e9 1.3.2 (#1281) 2016-12-23 11:02:00 -08:00
Brendan Kenny a00240b4e0 1.3.1 (#1230) 2016-12-21 18:53:53 -08:00
Brendan Kenny 029e1f0d78 1.3.0 (#1181) 2016-12-19 16:43:50 -08:00
Patrick Hulce 54fe456153 Fix evaluateAsync in the face of aggressive Promise polyfills (#1178)
* Fix `driver.evaluateAsync` behavior when [zone.js](https://github.com/angular/zone.js) has mucked with Promise.

* Add zone.js to the smoke tests so regression won't happen again.

* Remove old testing promise-polyfill
2016-12-19 15:29:00 -08:00
Brendan Kenny 55284fc5ba bin.ts simplification refactor 2016-12-15 17:42:54 -08:00
WeiweiAtGit dd6348a4be Add --view flag which will start a server and host report.html (#1130) 2016-12-14 17:48:12 -08:00
Ward Peeters 279965c8cd Use whatwg-url to parse urls (#997) 2016-12-14 09:05:08 -08:00
Paul Irish 83a5fdb94d bump axe to 2.1.7 with perf fix (#1155) 2016-12-13 18:09:10 -08:00
Paul Irish 8142268f83 Upgrade ESLint and eslint-config-google to latest (#1136) 2016-12-13 16:49:28 -08:00
Eric Bidelman 509691fa72 Add Lighthouse Report Viewer (#1109) 2016-12-06 17:16:50 -08:00
Paul Irish 393bbf28f6 remove jszip dependency for traceviewer. (#1094) 2016-12-01 17:48:58 -08:00
Brendan Kenny c1ab428c58 unmute some smoke test failures (#1081)
also update smoke test expectations for changes in perf metric scoring
2016-11-29 17:19:02 -08:00
Brendan Kenny 31637d7e7b 1.2.2 2016-11-29 15:53:37 -08:00
Brendan Kenny 30a8709975 1.2.1 (#1022) 2016-11-22 18:13:11 -08:00
Brendan Kenny f17ce7c059 1.2.0 (#961) 2016-11-17 00:09:47 -08:00
Eric Bidelman ae285d14d3 Add DBW audits and gatherers to default config 2016-11-08 15:48:25 -08:00
Sam Saccone 55eaed4529 Migrate launch-chrome.sh to use chrome-launcher. 2016-11-06 10:42:33 -08:00
Eric Bidelman ffe0afda4a Add DBW to smoke tests (#843) 2016-11-01 21:09:00 -07:00
Brendan Kenny 694baf61d5 1.1.7 (#865) 2016-10-31 15:25:57 -07:00
Eric Bidelman 8eaf3e0636 DBW: update flags 2016-10-26 17:02:03 -07:00
Sam Saccone b712120ef9 Migrate cli js to TS 2016-10-22 15:13:17 -07:00
Pavel Feldman 7062bfb550 Extract Connection abstraction from Driver (#800)
* Migrate off chrome-remote-interface
* Extract Connection delegate abstraction from driver.
2016-10-20 18:08:47 -07:00
Brendan Kenny 41a5cfe314 make existing smoketest run using smokehouse (#788)
* transfer npm run smoke to using smokehouse

* run smokehouse subprocess with --harmony if needed
2016-10-18 11:27:18 -07:00
Paul Irish b446a816bf Adopt Perceptual Speed Index (#785)
* report PSI instead.

* bump speedline to 1.0.3

* update tests for pSI swap
2016-10-17 08:33:27 -07:00
Brendan Kenny 9e44fd843e add smokehouse, an end-to-end test runner (#781) 2016-10-16 21:38:17 -07:00
Paul Irish f80e121cbe
1.1.6 2016-10-12 11:33:44 -07:00
Brendan Kenny e9297e25fa 1.1.5 (#759) 2016-10-10 15:49:34 -07:00
Paul Irish 88baef6e9a
speedline to 1.0.2. ref #728
fptovc branch === the 1.0.2 tag, so this commit has no functional changes.
See #728 for details
2016-10-02 12:48:09 -07:00
Paul Irish 98a0b2e7c8
speedline to 1.0.1 2016-10-01 17:06:48 -07:00
Paul Irish 39c3490a33 bump chrome-devtools-frontend module (#724)
* devtools frontend bump. A+ for --perf
* speedline to 1.0.0
2016-09-30 18:09:42 -07:00
Paul Irish 67680a09b6 Bump catapult/traceviewer to latest (#723)
* Bump traceviewer to master

* Add babel transpile to build-traceviewer-module.js
2016-09-30 17:59:29 -07:00
Paul Irish a85aa1f20d
speedline to 1.0.0 2016-09-30 17:04:05 -07:00
Eric Bidelman 75a5d4c968 Fix --mobile=false CLI flag and use it for DBW (#721) 2016-09-29 17:07:51 -07:00
Paul Irish 013b3f2ed1
remove closure compile from npm test 2016-09-23 10:46:57 +01:00
Eric Bidelman 8786b028b3 Add npm run dbw 2016-09-22 18:20:09 -07:00
Paul Irish aaeef0bf20 Merge pull request #678 from GoogleChrome/chromedebugcmd
Add `chrome-debug` binary to launch the debuggable standalone chrome
2016-09-20 23:39:33 -07:00
Paul Irish 71520d21bb
Add `chrome-debug` binary to launch the debuggable standalone chrome 2016-09-20 17:09:05 -07:00
Brendan Kenny 2267208409 1.1.4 2016-09-19 14:52:48 -07:00
Boopathi Rajaa f8ace8b4b0 Naming and other small fixes. Enable travis to use lighthouse launcher 2016-09-15 01:05:31 +02:00
Boopathi Rajaa 324548a82f Run chrome as a part of Lighthouse CLI
+ (Fixes #349)
+ Rebases - https://github.com/GoogleChrome/lighthouse/compare/master...boopathi:launch-chrome-js to use the new CLI and folder structures

Logic:

+ When connection fails, try launching chrome
+ Poll every ~= 500ms to remote debugger port 9222 till a connection
can be established for a fixed number of retries - 10.
+ Attempt running lighthouse again whenever the connection is
successful

Lint fixes and option change - use-some-chrome to select-chrome

use strict for node 4 and 5

Clean up some stuff and add linux and windows - To be verified

Fix some lint

Move all finders to a single file and make it all sync

launch-chrome flag and split run function

Add LICENSE

Runner class to list of functions

linux additional flag and linux throw error for undef env

skip-autolaunch

Fix lint and node 4&5
2016-09-14 04:54:07 +02:00
Brendan Kenny a5bbe2338f 1.1.3 2016-09-06 16:50:06 -07:00