2016-06-15 21:37:52 +03:00
|
|
|
{
|
|
|
|
"name": "lighthouse",
|
2020-08-07 00:26:21 +03:00
|
|
|
"version": "6.2.0",
|
2016-06-15 21:37:52 +03:00
|
|
|
"description": "Lighthouse",
|
2016-07-11 15:36:50 +03:00
|
|
|
"main": "./lighthouse-core/index.js",
|
2016-09-21 03:09:05 +03:00
|
|
|
"bin": {
|
|
|
|
"lighthouse": "./lighthouse-cli/index.js",
|
2018-04-10 21:04:54 +03:00
|
|
|
"chrome-debug": "./lighthouse-core/scripts/manual-chrome-launcher.js"
|
2016-09-21 03:09:05 +03:00
|
|
|
},
|
2016-06-15 21:37:52 +03:00
|
|
|
"engines": {
|
2019-04-10 21:18:27 +03:00
|
|
|
"node": ">=10.13"
|
2016-06-15 21:37:52 +03:00
|
|
|
},
|
|
|
|
"scripts": {
|
2017-06-05 21:23:58 +03:00
|
|
|
"build-all": "npm-run-posix-or-windows build-all:task",
|
2020-05-04 23:53:32 +03:00
|
|
|
"build-all:task": "yarn build-cdt-lib && yarn build-devtools && (yarn build-extension & yarn build-lr & yarn build-viewer & yarn build-smokehouse-bundle & wait) && yarn build-pack",
|
2020-02-20 22:27:33 +03:00
|
|
|
"build-all:task:windows": "yarn build-cdt-lib && yarn build-extension && yarn build-devtools && yarn build-lr && yarn build-viewer && yarn build-smokehouse-bundle",
|
2020-01-28 04:27:55 +03:00
|
|
|
"build-cdt-lib": "node ./build/build-cdt-lib.js",
|
2020-02-19 03:29:13 +03:00
|
|
|
"build-extension": "yarn build-extension-chrome && yarn build-extension-firefox",
|
|
|
|
"build-extension-chrome": "node ./build/build-extension.js chrome",
|
|
|
|
"build-extension-firefox": "node ./build/build-extension.js firefox",
|
2020-04-25 04:49:48 +03:00
|
|
|
"build-devtools": "(yarn unlink || true) && yarn link && yarn link lighthouse && node ./build/build-bundle.js clients/devtools-entry.js dist/lighthouse-dt-bundle.js && node ./build/build-dt-report-resources.js",
|
2020-02-20 22:27:33 +03:00
|
|
|
"build-smokehouse-bundle": "node ./build/build-smokehouse-bundle.js",
|
2019-04-17 00:51:10 +03:00
|
|
|
"build-lr": "node ./build/build-lightrider-bundles.js",
|
2020-01-24 02:26:53 +03:00
|
|
|
"build-pack": "bash build/build-pack.sh",
|
2018-10-31 04:12:21 +03:00
|
|
|
"build-viewer": "node ./build/build-viewer.js",
|
2019-07-25 01:12:56 +03:00
|
|
|
"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 lighthouse-core/lib/i18n/locales/*.ctc.json || true",
|
2016-12-14 03:49:28 +03:00
|
|
|
"lint": "[ \"$CI\" = true ] && eslint --quiet -f codeframe . || eslint .",
|
2019-11-05 21:31:46 +03:00
|
|
|
"smoke": "node lighthouse-cli/test/smokehouse/frontends/smokehouse-bin.js",
|
2018-01-03 00:58:44 +03:00
|
|
|
"debug": "node --inspect-brk ./lighthouse-cli/index.js",
|
2017-06-29 00:07:42 +03:00
|
|
|
"start": "node ./lighthouse-cli/index.js",
|
2018-07-02 20:18:39 +03:00
|
|
|
"test": "yarn diff:sample-json && yarn lint --quiet && yarn unit && yarn type-check",
|
2019-12-14 04:46:37 +03:00
|
|
|
"test-bundle": "yarn smoke --runner bundle -j=1 --retries=2 dbw byte",
|
2019-03-09 07:34:52 +03:00
|
|
|
"test-clients": "jest \"clients/\"",
|
|
|
|
"test-viewer": "yarn unit-viewer && jest lighthouse-viewer/test/viewer-test-pptr.js",
|
2018-06-16 02:29:28 +03:00
|
|
|
"test-lantern": "bash lighthouse-core/scripts/test-lantern.sh",
|
2020-02-19 06:21:38 +03:00
|
|
|
"test-legacy-javascript": "bash lighthouse-core/scripts/test-legacy-javascript.sh",
|
2020-01-24 23:27:31 +03:00
|
|
|
"test-docs": "yarn --cwd docs/recipes/auth && jest docs/recipes/integration-test && yarn --cwd docs/recipes/custom-gatherer-puppeteer test",
|
2020-04-22 17:43:58 +03:00
|
|
|
"test-proto": "yarn compile-proto && yarn build-proto-roundtrip",
|
2018-06-29 04:45:18 +03:00
|
|
|
"unit-core": "jest \"lighthouse-core/\"",
|
2019-03-12 22:58:52 +03:00
|
|
|
"unit-cli": "jest \"lighthouse-cli/\"",
|
2019-03-21 23:01:08 +03:00
|
|
|
"unit-viewer": "jest \"lighthouse-viewer/.*-test.js\"",
|
2018-04-06 01:50:50 +03:00
|
|
|
"unit": "yarn unit-core && yarn unit-cli && yarn unit-viewer",
|
2019-03-12 22:58:52 +03:00
|
|
|
"unit:ci": "npm run unit-core -- --runInBand --ci --coverage && npm run unit-cli -- --runInBand --ci --coverage && npm run unit-viewer -- --runInBand --ci --coverage",
|
2017-05-02 04:03:30 +03:00
|
|
|
"core-unit": "yarn unit-core",
|
|
|
|
"cli-unit": "yarn unit-cli",
|
|
|
|
"viewer-unit": "yarn unit-viewer",
|
2018-04-06 01:50:50 +03:00
|
|
|
"watch": "yarn unit-core --watch",
|
2019-03-12 22:58:52 +03:00
|
|
|
"unit:cicoverage": "nyc --all --hook-run-in-context npm run unit:ci && nyc report --reporter text-lcov > unit-coverage.lcov",
|
|
|
|
"coverage": "yarn unit:cicoverage && nyc report --reporter html",
|
2019-11-05 21:31:46 +03:00
|
|
|
"smoke:cicoverage": "nyc npm run smoke -- -j=1 --retries=2 && nyc report --reporter text-lcov > smoke-coverage.lcov",
|
2019-03-12 22:58:52 +03:00
|
|
|
"coverage:smoke": "yarn smoke:cicoverage && nyc report --reporter html",
|
2018-04-14 05:30:08 +03:00
|
|
|
"coveralls": "cat unit-coverage.lcov | coveralls",
|
|
|
|
"codecov": "codecov -f unit-coverage.lcov -F unit && codecov -f smoke-coverage.lcov -F smoke",
|
2017-04-14 04:52:25 +03:00
|
|
|
"devtools": "bash lighthouse-core/scripts/roll-to-devtools.sh",
|
2017-05-02 02:46:13 +03:00
|
|
|
"compile-devtools": "bash lighthouse-core/scripts/compile-against-devtools.sh",
|
2018-04-10 21:04:54 +03:00
|
|
|
"chrome": "node lighthouse-core/scripts/manual-chrome-launcher.js",
|
2019-04-18 02:27:14 +03:00
|
|
|
"fast": "yarn start --emulated-form-factor=none --throttlingMethod=provided",
|
2018-10-31 04:12:21 +03:00
|
|
|
"deploy-viewer": "yarn build-viewer --deploy",
|
2019-12-30 23:47:19 +03:00
|
|
|
"now-build": "node lighthouse-core/scripts/build-report-for-autodeployment.js && yarn build-viewer && cp -r dist/viewer dist/now/viewer",
|
2019-09-26 02:35:36 +03:00
|
|
|
"dogfood-lhci": "./lighthouse-core/scripts/dogfood-lhci.sh",
|
2018-10-25 21:15:54 +03:00
|
|
|
"timing-trace": "node lighthouse-core/scripts/generate-timing-trace.js",
|
2017-11-21 05:10:03 +03:00
|
|
|
"changelog": "conventional-changelog --config ./build/changelog-generator/index.js --infile changelog.md --same-file",
|
2018-10-31 04:12:21 +03:00
|
|
|
"type-check": "tsc -p . && tsc -p lighthouse-viewer/",
|
2018-07-19 20:15:27 +03:00
|
|
|
"i18n:checks": "./lighthouse-core/scripts/i18n/assert-strings-collected.sh",
|
|
|
|
"i18n:collect-strings": "node lighthouse-core/scripts/i18n/collect-strings.js",
|
2020-04-16 17:28:06 +03:00
|
|
|
"update:lantern-master": "node lighthouse-core/scripts/lantern/update-master-lantern-values.js",
|
2019-04-26 03:28:26 +03:00
|
|
|
"update:sample-artifacts": "node lighthouse-core/scripts/update-report-fixtures.js",
|
2020-04-22 17:43:58 +03:00
|
|
|
"update:sample-json": "yarn i18n:collect-strings && node ./lighthouse-cli -A=./lighthouse-core/test/results/artifacts --config-path=./lighthouse-core/test/results/sample-config.js --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",
|
2020-08-26 03:36:04 +03:00
|
|
|
"update:test-devtools": "bash lighthouse-core/test/chromium-web-tests/test-locally.sh --reset-results",
|
|
|
|
"test-devtools": "bash lighthouse-core/test/chromium-web-tests/test-locally.sh",
|
2018-07-26 23:35:56 +03:00
|
|
|
"diff:sample-json": "yarn i18n:checks && bash lighthouse-core/scripts/assert-golden-lhr-unchanged.sh",
|
2020-08-25 00:44:43 +03:00
|
|
|
"computeBenchmarkIndex": "./lighthouse-core/scripts/benchmark.js",
|
2018-10-16 22:00:24 +03:00
|
|
|
"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",
|
2019-05-06 02:52:22 +03:00
|
|
|
"compile-proto": "protoc --python_out=./ ./proto/lighthouse-result.proto && mv ./proto/*_pb2.py ./proto/scripts || (echo \"❌ Install protobuf ≥ 3.7.1 to compile the proto file.\" && false)",
|
2020-07-21 02:06:09 +03:00
|
|
|
"build-proto-roundtrip": "mkdir -p .tmp && cross-env PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2 python proto/scripts/json_roundtrip_via_proto.py",
|
2019-06-27 16:46:30 +03:00
|
|
|
"static-server": "node lighthouse-cli/test/fixtures/static-server.js"
|
2016-06-15 21:37:52 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-04-15 00:14:01 +03:00
|
|
|
"@build-tracker/cli": "^1.0.0-beta.15",
|
2018-10-31 04:12:21 +03:00
|
|
|
"@firebase/app-types": "0.3.1",
|
|
|
|
"@firebase/auth-types": "0.3.2",
|
|
|
|
"@firebase/util": "0.2.1",
|
2018-10-19 02:44:48 +03:00
|
|
|
"@types/archiver": "^2.1.2",
|
|
|
|
"@types/babel-core": "^6.25.5",
|
|
|
|
"@types/browserify": "^12.0.36",
|
2018-03-13 02:17:46 +03:00
|
|
|
"@types/chrome": "^0.0.60",
|
2020-08-03 21:45:40 +03:00
|
|
|
"@types/configstore": "^4.0.0",
|
2018-10-19 02:44:48 +03:00
|
|
|
"@types/cpy": "^5.1.0",
|
2018-04-28 04:51:29 +03:00
|
|
|
"@types/css-font-loading-module": "^0.0.2",
|
2019-05-24 00:42:47 +03:00
|
|
|
"@types/eslint": "^4.16.6",
|
2018-10-31 04:12:21 +03:00
|
|
|
"@types/gh-pages": "^2.0.0",
|
|
|
|
"@types/google.analytics": "0.0.39",
|
2017-11-21 05:10:03 +03:00
|
|
|
"@types/inquirer": "^0.0.35",
|
2019-03-08 00:27:16 +03:00
|
|
|
"@types/jest": "^24.0.9",
|
2018-05-02 23:35:57 +03:00
|
|
|
"@types/jpeg-js": "^0.3.0",
|
2020-02-25 03:11:31 +03:00
|
|
|
"@types/lodash.clonedeep": "^4.5.6",
|
2018-04-13 20:56:21 +03:00
|
|
|
"@types/lodash.isequal": "^4.5.2",
|
2019-06-25 04:18:18 +03:00
|
|
|
"@types/lodash.set": "^4.3.6",
|
2017-11-21 05:10:03 +03:00
|
|
|
"@types/node": "*",
|
2020-08-27 02:46:50 +03:00
|
|
|
"@types/puppeteer": "1.19.x",
|
2018-09-08 03:36:01 +03:00
|
|
|
"@types/raven": "^2.5.1",
|
2019-05-30 10:42:08 +03:00
|
|
|
"@types/resize-observer-browser": "^0.1.1",
|
2019-05-02 21:44:52 +03:00
|
|
|
"@types/rimraf": "^2.0.2",
|
2018-04-30 23:09:41 +03:00
|
|
|
"@types/semver": "^5.5.0",
|
2020-08-03 21:45:40 +03:00
|
|
|
"@types/update-notifier": "^4.1.0",
|
2018-03-13 02:17:46 +03:00
|
|
|
"@types/ws": "^4.0.1",
|
2017-11-21 05:10:03 +03:00
|
|
|
"@types/yargs": "^8.0.2",
|
2019-10-11 23:22:41 +03:00
|
|
|
"@wardpeet/brfs": "2.1.0-0",
|
2018-09-29 07:15:33 +03:00
|
|
|
"angular": "^1.7.4",
|
2018-10-19 02:44:48 +03:00
|
|
|
"archiver": "^3.0.0",
|
2018-04-12 01:02:03 +03:00
|
|
|
"babel-core": "^6.26.0",
|
2019-04-12 03:25:27 +03:00
|
|
|
"babel-plugin-syntax-async-generators": "^6.13.0",
|
2018-10-19 02:44:48 +03:00
|
|
|
"babel-plugin-syntax-object-rest-spread": "^6.13.0",
|
|
|
|
"browserify": "^16.2.3",
|
2020-08-14 01:12:21 +03:00
|
|
|
"bundle-phobia-cli": "^0.14.6",
|
2018-06-19 04:57:53 +03:00
|
|
|
"chalk": "^2.4.1",
|
2020-01-28 04:27:55 +03:00
|
|
|
"chrome-devtools-frontend": "1.0.727089",
|
2020-07-01 00:45:36 +03:00
|
|
|
"codecov": "^3.7.0",
|
2017-11-11 16:33:12 +03:00
|
|
|
"conventional-changelog-cli": "^1.3.4",
|
2019-02-26 04:02:35 +03:00
|
|
|
"coveralls": "^3.0.3",
|
2018-10-19 02:44:48 +03:00
|
|
|
"cpy": "^7.0.1",
|
2020-07-21 02:06:09 +03:00
|
|
|
"cross-env": "^7.0.2",
|
2018-04-10 01:40:15 +03:00
|
|
|
"csv-validator": "^0.0.3",
|
2017-10-11 20:32:34 +03:00
|
|
|
"cz-customizable": "^5.2.0",
|
2020-05-29 00:26:19 +03:00
|
|
|
"devtools-protocol": "0.0.770484",
|
2018-04-11 02:44:46 +03:00
|
|
|
"eslint": "^4.19.1",
|
2017-10-12 02:26:40 +03:00
|
|
|
"eslint-config-google": "^0.9.1",
|
2019-05-24 00:42:47 +03:00
|
|
|
"eslint-plugin-local-rules": "0.1.0",
|
2018-11-02 22:03:26 +03:00
|
|
|
"gh-pages": "^2.0.1",
|
2018-10-31 04:12:21 +03:00
|
|
|
"glob": "^7.1.3",
|
|
|
|
"idb-keyval": "2.2.0",
|
2019-08-24 01:51:08 +03:00
|
|
|
"intl-messageformat-parser": "^1.8.1",
|
2019-04-09 00:53:01 +03:00
|
|
|
"isomorphic-fetch": "^2.2.1",
|
2019-11-21 02:20:22 +03:00
|
|
|
"jest": "^24.9.0",
|
2018-10-31 01:17:21 +03:00
|
|
|
"jsdom": "^12.2.0",
|
2020-08-25 17:57:21 +03:00
|
|
|
"lighthouse-plugin-publisher-ads": "^1.2.0",
|
2020-02-25 03:11:31 +03:00
|
|
|
"lodash.clonedeep": "^4.5.0",
|
2017-06-05 21:23:58 +03:00
|
|
|
"npm-run-posix-or-windows": "^2.0.2",
|
2019-03-11 18:12:32 +03:00
|
|
|
"nyc": "^13.3.0",
|
2018-10-19 02:44:48 +03:00
|
|
|
"package-json-versionify": "^1.0.4",
|
2018-10-23 19:35:21 +03:00
|
|
|
"prettier": "^1.14.3",
|
2018-05-18 21:41:01 +03:00
|
|
|
"pretty-json-stringify": "^0.0.2",
|
2019-08-21 21:56:20 +03:00
|
|
|
"puppeteer": "^1.19.0",
|
2019-08-23 18:10:57 +03:00
|
|
|
"terser": "^4.2.0",
|
2020-07-28 00:45:19 +03:00
|
|
|
"typescript": "3.9.7"
|
2016-06-15 21:37:52 +03:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2020-06-23 00:05:45 +03:00
|
|
|
"axe-core": "3.5.5",
|
2020-06-17 02:13:24 +03:00
|
|
|
"chrome-launcher": "^0.13.3",
|
2020-08-03 21:45:40 +03:00
|
|
|
"configstore": "^5.0.1",
|
2019-02-25 22:11:00 +03:00
|
|
|
"cssstyle": "1.2.1",
|
2019-08-14 01:02:01 +03:00
|
|
|
"details-element-polyfill": "^2.4.0",
|
2017-11-29 05:18:28 +03:00
|
|
|
"http-link-header": "^0.8.0",
|
2017-10-27 03:01:03 +03:00
|
|
|
"inquirer": "^3.3.0",
|
2019-07-02 00:37:56 +03:00
|
|
|
"intl": "^1.2.5",
|
2019-08-20 03:16:17 +03:00
|
|
|
"intl-messageformat": "^4.4.0",
|
|
|
|
"intl-pluralrules": "^1.0.3",
|
2020-07-29 01:10:59 +03:00
|
|
|
"jpeg-js": "^0.4.1",
|
2020-01-07 22:04:51 +03:00
|
|
|
"js-library-detector": "^5.7.0",
|
2019-04-09 00:53:01 +03:00
|
|
|
"jsonld": "^1.5.0",
|
2019-07-29 22:18:41 +03:00
|
|
|
"jsonlint-mod": "^1.7.5",
|
2018-10-25 21:15:54 +03:00
|
|
|
"lighthouse-logger": "^1.2.0",
|
2018-02-08 21:57:28 +03:00
|
|
|
"lodash.isequal": "^4.5.0",
|
2019-06-26 01:19:35 +03:00
|
|
|
"lodash.set": "^4.3.2",
|
2018-07-31 00:47:19 +03:00
|
|
|
"lookup-closest-locale": "6.0.4",
|
2018-01-30 02:53:19 +03:00
|
|
|
"metaviewport-parser": "0.2.0",
|
2019-07-15 21:40:48 +03:00
|
|
|
"open": "^6.4.0",
|
2017-11-18 02:42:14 +03:00
|
|
|
"parse-cache-control": "1.0.1",
|
2020-07-28 18:39:30 +03:00
|
|
|
"ps-list": "^7.2.0",
|
2017-10-27 03:01:03 +03:00
|
|
|
"raven": "^2.2.1",
|
2017-07-05 20:18:21 +03:00
|
|
|
"rimraf": "^2.6.1",
|
2018-03-29 02:40:38 +03:00
|
|
|
"robots-parser": "^2.0.1",
|
2017-09-30 01:53:49 +03:00
|
|
|
"semver": "^5.3.0",
|
2020-07-29 01:10:59 +03:00
|
|
|
"speedline-core": "^1.4.3",
|
2020-07-22 23:22:25 +03:00
|
|
|
"third-party-web": "^0.12.1",
|
2020-08-03 21:45:40 +03:00
|
|
|
"update-notifier": "^4.1.0",
|
2017-11-30 03:57:53 +03:00
|
|
|
"ws": "3.3.2",
|
2017-10-05 01:14:57 +03:00
|
|
|
"yargs": "3.32.0",
|
2020-05-11 22:54:14 +03:00
|
|
|
"yargs-parser": "^18.1.3"
|
2016-06-15 21:37:52 +03:00
|
|
|
},
|
2017-02-10 19:46:20 +03:00
|
|
|
"repository": "GoogleChrome/lighthouse",
|
2016-06-15 21:37:52 +03:00
|
|
|
"keywords": [
|
|
|
|
"google",
|
|
|
|
"chrome",
|
|
|
|
"devtools"
|
|
|
|
],
|
|
|
|
"author": "The Chromium Authors",
|
|
|
|
"license": "Apache-2.0",
|
|
|
|
"bugs": {
|
2017-02-10 19:46:20 +03:00
|
|
|
"url": "https://github.com/GoogleChrome/lighthouse/issues"
|
2016-06-15 21:37:52 +03:00
|
|
|
},
|
2018-04-06 01:50:50 +03:00
|
|
|
"nyc": {
|
2018-07-27 02:02:02 +03:00
|
|
|
"reporter": [
|
2019-03-12 22:58:52 +03:00
|
|
|
"text-summary"
|
2018-07-27 02:02:02 +03:00
|
|
|
],
|
2018-06-29 04:45:18 +03:00
|
|
|
"tempDirectory": "./coverage",
|
2019-03-12 22:58:52 +03:00
|
|
|
"include": [
|
|
|
|
"**/lighthouse-core/**/*.js",
|
|
|
|
"**/lighthouse-cli/**/*.js",
|
|
|
|
"**/lighthouse-viewer/**/*.js"
|
|
|
|
],
|
2018-04-06 01:50:50 +03:00
|
|
|
"exclude": [
|
|
|
|
"**/third_party/**",
|
|
|
|
"**/test/",
|
2019-03-12 22:58:52 +03:00
|
|
|
"**/scripts/"
|
2018-04-06 01:50:50 +03:00
|
|
|
]
|
|
|
|
},
|
2017-10-11 20:32:34 +03:00
|
|
|
"homepage": "https://github.com/GoogleChrome/lighthouse#readme",
|
|
|
|
"config": {
|
|
|
|
"commitizen": {
|
|
|
|
"path": "./node_modules/cz-customizable"
|
|
|
|
},
|
|
|
|
"cz-customizable": {
|
|
|
|
"config": "./.cz-config.js"
|
|
|
|
}
|
|
|
|
}
|
2016-06-15 21:37:52 +03:00
|
|
|
}
|