Keep an eye on Google Lighthouse score changes 💡👀
npm install --save-dev @codechecks/lighthouse-keeper
Are you new to codechecks? Check out getting started guide (it's simple)!
Add to your
checks:- name: lighthouse-keeperoptions:# just provide path to your buildbuildPath: ./build# or full url# url:# you can specify minScores and automatically fail buildsminScores:performance: 90# ...
lighthouseKeeper(options: Options): Promise<void>
Provide URL that lighthouse will be ran against.
buildPath MUST be
Provide relative path to directory with build. It will be served using
http-server package and lighthouse will be ran against it.
buildPath MUST be provided.
Dictionary of numbers
Provide minimal scores for each metric. Possible keys are:
All contributions are welcomed. Read more in CONTRIBUTING.md
MIT @ codechecks.io
Thanks go to @andreasonny83 for his support and creating the lighthouse-ci