lighthouse
v3.2.0 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 *.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
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 . && cd ./lighthouse-viewer && yarn type-check
i18n:checks
./lighthouse-core/scripts/i18n/assert-strings-collected.sh
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-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
cd ./lighthouse-viewer && yarn build
test-lantern
bash lighthouse-core/scripts/test-lantern.sh
unit-core:ci
jest --runInBand --coverage --ci "lighthouse-core/"
deploy-viewer
cd lighthouse-viewer && gulp deploy
mixed-content
./lighthouse-cli/index.js --chrome-flags='--headless' --preset=mixed-content
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
yarn i18n:checks && 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
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
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-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
npm i [email protected]
Metadata
- Apache-2.0
- >=8.10
- The Chromium Authors
- released 9/27/2018