lighthouse

v3.0.0-beta.0
Lighthouse
google chrome devtools

fast

yarn start --disable-device-emulation --throttlingMethod=provided

lint

[ "$CI" = true ] && eslint --quiet -f codeframe . || eslint .

test

yarn lint --quiet && yarn unit && yarn type-check && yarn diff:sample-json

unit

yarn unit-core && yarn unit-cli && yarn unit-viewer

clean

rimraf *.report.html *.report.dom.html *.report.json *.screenshots.html *.screenshots.json *.devtoolslog.json *.trace.json || true

debug

node --inspect-brk ./lighthouse-cli/index.js

smoke

node lighthouse-cli/test/smokehouse/run-smoke.js

start

node ./lighthouse-cli/index.js

watch

yarn unit-core --watch

chrome

node lighthouse-core/scripts/manual-chrome-launcher.js

codecov

codecov -f unit-coverage.lcov -F unit && codecov -f smoke-coverage.lcov -F smoke

cli-unit

yarn unit-cli

coverage

nyc yarn unit && nyc report --reporter html

devtools

bash lighthouse-core/scripts/roll-to-devtools.sh

unit-cli

mocha --reporter dot "lighthouse-cli/test/**/*-test.js"

build-all

npm-run-posix-or-windows build-all:task

changelog

conventional-changelog --config ./build/changelog-generator/index.js --infile changelog.md --same-file

core-unit

yarn unit-core

coveralls

cat unit-coverage.lcov | coveralls

unit-core

mocha --reporter dot "lighthouse-core/test/**/*-test.js"

bundlesize

bundlesize

smokehouse

node lighthouse-cli/test/smokehouse/smokehouse.js

type-check

tsc -p . && cd ./lighthouse-viewer && yarn type-check

install-all

npm-run-posix-or-windows install-all:task

plots-smoke

bash plots/test/smoke.sh

test-viewer

cd lighthouse-viewer && yarn pptr-test

unit-viewer

mocha --reporter dot "lighthouse-viewer/test/**/*-test.js"

viewer-unit

yarn unit-viewer

build-viewer

cd ./lighthouse-viewer && yarn build

deploy-viewer

cd lighthouse-viewer && gulp deploy

mixed-content

./lighthouse-cli/index.js --chrome-flags='--headless' --config-path=./lighthouse-core/config/mixed-content.js

build-all:task

yarn build-extension & yarn build-viewer & wait

coverage:smoke

nyc yarn smoke && nyc report --reporter html

install-viewer

cd ./lighthouse-viewer && yarn install

test-extension

cd lighthouse-extension && yarn test

build-extension

cd ./lighthouse-extension && yarn build

compile-devtools

bash lighthouse-core/scripts/compile-against-devtools.sh

diff:sample-json

bash lighthouse-core/scripts/assert-golden-lhr-unchanged.sh

install-all:task

yarn & yarn install-extension & yarn install-viewer & wait

install-extension

cd ./lighthouse-extension && yarn install

minify-latest-run

./lighthouse-core/scripts/lantern/minify-trace.js ./latest-run/defaultPass.trace.json ./latest-run/defaultPass.trace.min.json && ./lighthouse-core/scripts/lantern/minify-devtoolslog.js ./latest-run/defaultPass.devtoolslog.json ./latest-run/defaultPass.devtoolslog.min.json

update:sample-json

node ./lighthouse-cli -A=./lighthouse-core/test/results/artifacts --throttling-method=devtools --output=json --output-path=./lighthouse-core/test/results/sample_v2.json http://localhost/dobetterweb/dbw_tester.html && node lighthouse-core/scripts/cleanup-LHR-for-diff.js ./lighthouse-core/test/results/sample_v2.json --only-remove-timing

unit:silentcoverage

nyc --silent yarn unit && nyc report --reporter text-lcov > unit-coverage.lcov

update:crdp-typings

node lighthouse-core/scripts/extract-crdp-mapping.js

smoke:silentcoverage

nyc --silent yarn smoke && nyc report --reporter text-lcov > smoke-coverage.lcov

build-all:task:windows

yarn build-extension && yarn build-viewer

update:sample-artifacts

node lighthouse-core/scripts/update-report-fixtures.js -G

install-all:task:windows

yarn && yarn install-extension && yarn install-viewer

Metadata

Downloads