https://github.com/orta/danger-plugin-lighthouse
Print your Lighthouse reports to your PR
https://github.com/orta/danger-plugin-lighthouse
danger danger-js danger-plugin
Last synced: 5 months ago
JSON representation
Print your Lighthouse reports to your PR
- Host: GitHub
- URL: https://github.com/orta/danger-plugin-lighthouse
- Owner: orta
- License: mit
- Created: 2019-11-08T16:04:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-05T01:34:03.000Z (almost 6 years ago)
- Last Synced: 2025-03-30T02:43:00.718Z (6 months ago)
- Topics: danger, danger-js, danger-plugin
- Language: HTML
- Homepage:
- Size: 541 KB
- Stars: 22
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# danger-plugin-lighthouse
[](https://travis-ci.org/orta/danger-plugin-lighthouse)
[](https://badge.fury.io/js/danger-plugin-lighthouse)
[](https://github.com/semantic-release/semantic-release)> Takes lighthouse JSON data and makes it a pretty table
It's pretty basic right now, but there's space for growth!
## Usage
Install:
```sh
yarn add danger-plugin-lighthouse --dev
```At a glance:
```js
// dangerfile.js
import lighthouse from 'danger-plugin-lighthouse'// Defaults to looking in ./results for JSON files
lighthouse()
```Example output:
## Lighthouse Scores
##### [`/`](https://typescript-v2-116.ortam.now.sh/)
| Performance | Accessibility | Best Practices | SEO | Progressive Web App |
|:--: | :---: | :---: | :---: | :--:|
| 0.99 | 0.85 | 0.93 | 0.82 | 0.52 |##### [`/tsconfig`](https://typescript-v2-116.ortam.now.sh/tsconfig)
| Performance | Accessibility | Best Practices | SEO | Progressive Web App |
|:--: | :---: | :---: | :---: | :--:|
| 0.94 | 0.88 | 0.93 | 0.79 | 0.52 |##### [`/docs/handbook/integrating-with-build-tools.html`](https://typescript-v2-116.ortam.now.sh/docs/handbook/integrating-with-build-tools.html)
| Performance | Accessibility | Best Practices | SEO | Progressive Web App |
|:--: | :---: | :---: | :---: | :--:|
| 0.96 | 0.87 | 0.93 | 0.73 | 0.52 |## Changelog
See the GitHub [release history](https://github.com/orta/danger-plugin-lighthouse/releases).
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md).