lighthouse

v4.0.0
Lighthouse
google chrome devtools

fast

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

lint

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

test

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

unit

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

clean

rimraf 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 || 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

unit:ci

yarn unit-core:ci && yarn unit-cli:ci && yarn unit-viewer

build-lr

node ./build/build-bundle.js clients/lightrider-entry.js dist/lighthouse-lr-bundle.js

cli-unit

yarn unit-cli

coverage

nyc yarn unit:ci && nyc report --reporter html

devtools

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

unit-cli

jest --runInBand "lighthouse-cli/"

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

jest "lighthouse-core/"

bundlesize

bundlesize

type-check

tsc -p . && tsc -p lighthouse-viewer/

i18n:checks

./lighthouse-core/scripts/i18n/assert-strings-collected.sh

plots-smoke

bash plots/test/smoke.sh

test-viewer

yarn unit-viewer && mocha lighthouse-viewer/test/viewer-test-pptr.js

unit-cli:ci

jest --runInBand --coverage --ci "lighthouse-cli/"

unit-viewer

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

viewer-unit

yarn unit-viewer

build-viewer

node ./build/build-viewer.js

test-clients

mocha "clients/test/**/*-test.js"

test-lantern

bash lighthouse-core/scripts/test-lantern.sh

timing-trace

node lighthouse-core/scripts/generate-timing-trace.js

unit-core:ci

jest --runInBand --coverage --ci "lighthouse-core/"

compile-proto

protoc --python_out=./ ./proto/lighthouse-result.proto && mv ./proto/*_pb2.py ./proto/scripts

deploy-viewer

yarn build-viewer --deploy

mixed-content

./lighthouse-cli/index.js --chrome-flags='--headless' --preset=mixed-content

build-all:task

yarn build-extension & yarn build-devtools & yarn build-lr & yarn build-viewer & wait

build-devtools

node ./build/build-bundle.js clients/devtools-entry.js dist/lighthouse-dt-bundle.js

coverage:smoke

nyc yarn smoke && nyc report --reporter html

build-extension

node ./build/build-extension.js

compile-devtools

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

diff:sample-json

yarn i18n:checks && bash lighthouse-core/scripts/assert-golden-lhr-unchanged.sh

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

ultradumbBenchmark

./lighthouse-core/scripts/benchmark.js

update:sample-json

yarn i18n:collect-strings && node ./lighthouse-cli -A=./lighthouse-core/test/results/artifacts --throttling-method=devtools --output=json --output-path=./lighthouse-core/test/results/sample_v2.json && node lighthouse-core/scripts/cleanup-LHR-for-diff.js ./lighthouse-core/test/results/sample_v2.json --only-remove-timing && yarn compile-proto && yarn build-proto-roundtrip

unit:silentcoverage

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

i18n:collect-strings

node lighthouse-core/scripts/i18n/collect-strings.js

smoke:silentcoverage

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

build-proto-roundtrip

cd proto/scripts && PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2 python json_roundtrip_via_proto.py

build-all:task:windows

yarn build-extension && yarn build-devtools && yarn build-lr && yarn build-viewer

update:sample-artifacts

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

Metadata

Downloads