lightit
v1.6.1
Published
Lighthouse wrapped package for running in CI
Downloads
7
Readme
Description
Goal
This is only a wrap from lighthouse to be easy to customize parameters.
CI
If you want to know how to put it on CI: lightit-ci
SETUP
Threshold
{
"performance": 100,
"pwa": 60,
"accessibility": 55,
"best-practices": 90,
"seo": 45
}
Config
{
"extends": "lighthouse:full",
"settings": {
"onlyCategories": ["performance", "accessibility", "best-practices", "seo", "pwa"],
"budgets": [{
"resourceCounts": [
{"resourceType": "third-party", "budget": 0}
],
"resourceSizes": [
{"resourceType": "total", "budget": 100},
{"resourceType": "script", "budget": 30}
]
}]
}
}
INSTALL
npm install -g lightit
RUN
Considering that the Options and Threshold files exist, execute the following command:
lightit --url=https://google.com
Other options
Change threshold (required)
lightit --url=https://google.com --th=threshold.json
Add config option (optional)
lightit --url=https://google.com --config=config.json