2016-06-15 21:37:52 +03:00
|
|
|
{
|
|
|
|
"name": "lighthouse",
|
2018-07-18 02:56:42 +03:00
|
|
|
"version": "3.0.3",
|
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": {
|
2018-04-11 02:44:46 +03:00
|
|
|
"node": ">=8.9"
|
2016-06-15 21:37:52 +03:00
|
|
|
},
|
|
|
|
"scripts": {
|
2017-06-05 21:23:58 +03:00
|
|
|
"install-all": "npm-run-posix-or-windows install-all:task",
|
2017-11-21 05:10:03 +03:00
|
|
|
"install-all:task": "yarn & yarn install-extension & yarn install-viewer & wait",
|
|
|
|
"install-all:task:windows": "yarn && yarn install-extension && yarn install-viewer",
|
2017-04-22 20:51:06 +03:00
|
|
|
"install-extension": "cd ./lighthouse-extension && yarn install",
|
|
|
|
"install-viewer": "cd ./lighthouse-viewer && yarn install",
|
2017-06-05 21:23:58 +03:00
|
|
|
"build-all": "npm-run-posix-or-windows build-all:task",
|
2017-11-21 05:10:03 +03:00
|
|
|
"build-all:task": "yarn build-extension & yarn build-viewer & wait",
|
|
|
|
"build-all:task:windows": "yarn build-extension && yarn build-viewer",
|
2017-04-26 22:41:01 +03:00
|
|
|
"build-extension": "cd ./lighthouse-extension && yarn build",
|
|
|
|
"build-viewer": "cd ./lighthouse-viewer && yarn build",
|
2018-03-14 12:36:02 +03:00
|
|
|
"clean": "rimraf *.report.html *.report.dom.html *.report.json *.screenshots.html *.screenshots.json *.devtoolslog.json *.trace.json || true",
|
2016-12-14 03:49:28 +03:00
|
|
|
"lint": "[ \"$CI\" = true ] && eslint --quiet -f codeframe . || eslint .",
|
2018-04-11 04:26:24 +03:00
|
|
|
|
|
|
|
"smoke": "node lighthouse-cli/test/smokehouse/run-smoke.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",
|
2018-03-21 02:24:09 +03:00
|
|
|
"test-extension": "cd lighthouse-extension && yarn test",
|
2018-04-26 05:08:08 +03:00
|
|
|
"test-viewer": "cd lighthouse-viewer && yarn pptr-test",
|
2018-06-16 02:29:28 +03:00
|
|
|
"test-lantern": "bash lighthouse-core/scripts/test-lantern.sh",
|
2018-04-06 01:50:50 +03:00
|
|
|
|
2018-06-29 04:45:18 +03:00
|
|
|
"unit-core": "jest \"lighthouse-core/\"",
|
|
|
|
"unit-core:ci": "jest --runInBand --coverage --ci \"lighthouse-core/\"",
|
|
|
|
"unit-cli": "jest --runInBand \"lighthouse-cli/\"",
|
|
|
|
"unit-cli:ci": "jest --runInBand --coverage --ci \"lighthouse-cli/\"",
|
2018-04-06 01:50:50 +03:00
|
|
|
"unit-viewer": "mocha --reporter dot \"lighthouse-viewer/test/**/*-test.js\"",
|
|
|
|
"unit": "yarn unit-core && yarn unit-cli && yarn unit-viewer",
|
2018-06-29 04:45:18 +03:00
|
|
|
"unit:ci": "yarn unit-core:ci && yarn unit-cli:ci && yarn unit-viewer",
|
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",
|
|
|
|
|
2018-06-29 04:45:18 +03:00
|
|
|
"unit:silentcoverage": "nyc --silent yarn unit:ci && nyc report --reporter text-lcov > unit-coverage.lcov",
|
|
|
|
"coverage": "nyc yarn unit:ci && nyc report --reporter html",
|
2018-04-14 05:30:08 +03:00
|
|
|
"smoke:silentcoverage": "nyc --silent yarn smoke && nyc report --reporter text-lcov > smoke-coverage.lcov",
|
|
|
|
"coverage:smoke": "nyc yarn smoke && nyc report --reporter html",
|
|
|
|
"coveralls": "cat unit-coverage.lcov | coveralls",
|
|
|
|
"codecov": "codecov -f unit-coverage.lcov -F unit && codecov -f smoke-coverage.lcov -F smoke",
|
2018-04-06 01:50:50 +03:00
|
|
|
|
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",
|
2018-04-20 21:08:08 +03:00
|
|
|
"fast": "yarn start --disable-device-emulation --throttlingMethod=provided",
|
2017-01-25 02:39:47 +03:00
|
|
|
"smokehouse": "node lighthouse-cli/test/smokehouse/smokehouse.js",
|
2017-06-13 22:11:19 +03:00
|
|
|
"deploy-viewer": "cd lighthouse-viewer && gulp deploy",
|
2017-07-12 00:23:18 +03:00
|
|
|
"bundlesize": "bundlesize",
|
2017-11-11 16:33:12 +03:00
|
|
|
"plots-smoke": "bash plots/test/smoke.sh",
|
2017-11-21 05:10:03 +03:00
|
|
|
"changelog": "conventional-changelog --config ./build/changelog-generator/index.js --infile changelog.md --same-file",
|
2018-05-19 04:52:10 +03:00
|
|
|
"type-check": "tsc -p . && cd ./lighthouse-viewer && yarn type-check",
|
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",
|
2018-03-21 23:26:17 +03:00
|
|
|
"update:sample-artifacts": "node lighthouse-core/scripts/update-report-fixtures.js -G",
|
2018-06-14 00:28:49 +03:00
|
|
|
"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 && node lighthouse-core/scripts/cleanup-LHR-for-diff.js ./lighthouse-core/test/results/sample_v2.json --only-remove-timing",
|
2018-04-13 03:09:27 +03:00
|
|
|
"diff:sample-json": "bash lighthouse-core/scripts/assert-golden-lhr-unchanged.sh",
|
2018-03-30 23:27:53 +03:00
|
|
|
"update:crdp-typings": "node lighthouse-core/scripts/extract-crdp-mapping.js",
|
2018-06-20 21:19:07 +03:00
|
|
|
"mixed-content": "./lighthouse-cli/index.js --chrome-flags='--headless' --preset=mixed-content",
|
2018-05-22 22:11:12 +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"
|
2016-06-15 21:37:52 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2018-03-13 02:17:46 +03:00
|
|
|
"@types/chrome": "^0.0.60",
|
2017-11-21 05:10:03 +03:00
|
|
|
"@types/configstore": "^2.1.1",
|
2018-04-28 04:51:29 +03:00
|
|
|
"@types/css-font-loading-module": "^0.0.2",
|
2017-11-21 05:10:03 +03:00
|
|
|
"@types/inquirer": "^0.0.35",
|
2018-07-18 02:35:18 +03:00
|
|
|
"@types/intl-messageformat": "^1.3.0",
|
2018-05-02 23:35:57 +03:00
|
|
|
"@types/jpeg-js": "^0.3.0",
|
2018-04-13 20:56:21 +03:00
|
|
|
"@types/lodash.isequal": "^4.5.2",
|
2017-11-21 05:10:03 +03:00
|
|
|
"@types/node": "*",
|
|
|
|
"@types/opn": "^3.0.28",
|
2018-04-30 23:09:41 +03:00
|
|
|
"@types/semver": "^5.5.0",
|
2017-11-21 05:10:03 +03:00
|
|
|
"@types/update-notifier": "^1.0.2",
|
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",
|
2018-04-12 01:02:03 +03:00
|
|
|
"babel-core": "^6.26.0",
|
2017-09-22 23:39:39 +03:00
|
|
|
"bundlesize": "^0.14.4",
|
2018-06-19 04:57:53 +03:00
|
|
|
"chalk": "^2.4.1",
|
2017-06-20 07:20:26 +03:00
|
|
|
"codecov": "^2.2.0",
|
2017-10-11 20:32:34 +03:00
|
|
|
"commitizen": "^2.9.6",
|
2017-11-11 16:33:12 +03:00
|
|
|
"conventional-changelog-cli": "^1.3.4",
|
2016-07-25 23:12:36 +03:00
|
|
|
"coveralls": "^2.11.9",
|
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",
|
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",
|
2016-10-01 03:59:29 +03:00
|
|
|
"gulp": "^3.9.1",
|
2016-07-25 23:12:36 +03:00
|
|
|
"gulp-replace": "^0.5.4",
|
|
|
|
"gulp-util": "^3.0.7",
|
2018-07-18 02:35:18 +03:00
|
|
|
"intl": "^1.2.5",
|
2018-06-29 04:45:18 +03:00
|
|
|
"jest": "^23.2.0",
|
2017-04-08 02:54:57 +03:00
|
|
|
"jsdom": "^9.12.0",
|
2017-01-31 11:59:52 +03:00
|
|
|
"mocha": "^3.2.0",
|
2017-06-05 21:23:58 +03:00
|
|
|
"npm-run-posix-or-windows": "^2.0.2",
|
2018-04-06 01:50:50 +03:00
|
|
|
"nyc": "^11.6.0",
|
2018-03-20 21:39:02 +03:00
|
|
|
"postinstall-prepare": "^1.0.1",
|
2018-05-18 21:41:01 +03:00
|
|
|
"pretty-json-stringify": "^0.0.2",
|
2018-05-12 03:07:52 +03:00
|
|
|
"puppeteer": "1.4.0",
|
2018-01-05 23:17:11 +03:00
|
|
|
"sinon": "^2.3.5",
|
2018-05-17 22:09:48 +03:00
|
|
|
"typescript": "2.9.1-insiders.20180516",
|
2018-03-20 04:07:14 +03:00
|
|
|
"vscode-chrome-debug-core": "^3.23.8",
|
2016-12-20 02:29:00 +03:00
|
|
|
"zone.js": "^0.7.3"
|
2016-06-15 21:37:52 +03:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-03-03 01:29:28 +03:00
|
|
|
"axe-core": "3.0.0-beta.2",
|
2016-10-01 04:09:42 +03:00
|
|
|
"chrome-devtools-frontend": "1.0.422034",
|
2018-01-09 22:49:46 +03:00
|
|
|
"chrome-launcher": "^0.10.2",
|
2017-10-27 03:01:03 +03:00
|
|
|
"configstore": "^3.1.1",
|
2016-07-25 23:12:36 +03:00
|
|
|
"devtools-timeline-model": "1.1.6",
|
2017-12-20 05:31:33 +03:00
|
|
|
"esprima": "^4.0.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",
|
2018-07-18 02:35:18 +03:00
|
|
|
"intl-messageformat": "^2.2.0",
|
|
|
|
"intl-messageformat-parser": "^1.4.0",
|
2017-05-16 00:03:24 +03:00
|
|
|
"jpeg-js": "0.1.2",
|
2017-12-19 03:32:06 +03:00
|
|
|
"js-library-detector": "^4.3.1",
|
2017-06-20 04:30:12 +03:00
|
|
|
"lighthouse-logger": "^1.0.0",
|
2018-02-08 21:57:28 +03:00
|
|
|
"lodash.isequal": "^4.5.0",
|
2018-01-30 02:53:19 +03:00
|
|
|
"metaviewport-parser": "0.2.0",
|
2017-01-24 02:44:03 +03:00
|
|
|
"mkdirp": "0.5.1",
|
|
|
|
"opn": "4.0.2",
|
2017-11-18 02:42:14 +03:00
|
|
|
"parse-cache-control": "1.0.1",
|
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",
|
2018-05-02 23:35:57 +03:00
|
|
|
"speedline": "1.3.3",
|
2017-03-25 04:11:53 +03:00
|
|
|
"update-notifier": "^2.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",
|
|
|
|
"yargs-parser": "7.0.0"
|
2016-06-15 21:37:52 +03:00
|
|
|
},
|
2017-11-21 05:10:03 +03:00
|
|
|
"resolutions": {
|
|
|
|
"chrome-launcher/@types/node": "*"
|
|
|
|
},
|
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
|
|
|
},
|
2017-07-12 00:23:18 +03:00
|
|
|
"bundlesize": [
|
|
|
|
{
|
|
|
|
"path": "./lighthouse-extension/dist/scripts/lighthouse-background.js",
|
2018-04-27 01:02:56 +03:00
|
|
|
"threshold": "426 Kb"
|
2017-07-12 00:23:18 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"path": "./lighthouse-viewer/dist/src/viewer.js",
|
2018-03-09 05:45:19 +03:00
|
|
|
"threshold": "65 Kb"
|
2017-07-12 00:23:18 +03:00
|
|
|
}
|
|
|
|
],
|
2018-04-06 01:50:50 +03:00
|
|
|
"nyc": {
|
2018-06-29 04:45:18 +03:00
|
|
|
"reporter": ["lcov", "text"],
|
|
|
|
"tempDirectory": "./coverage",
|
2018-04-06 01:50:50 +03:00
|
|
|
"exclude": [
|
|
|
|
"**/third_party/**",
|
|
|
|
"**/test/",
|
|
|
|
"lighthouse-extension/"
|
|
|
|
]
|
|
|
|
},
|
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
|
|
|
}
|