https://github.com/zhangyu1818/lighthouse-ci
lighthouse CI script.
https://github.com/zhangyu1818/lighthouse-ci
Last synced: 3 months ago
JSON representation
lighthouse CI script.
- Host: GitHub
- URL: https://github.com/zhangyu1818/lighthouse-ci
- Owner: zhangyu1818
- Created: 2023-11-06T06:09:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-06T06:09:57.000Z (over 1 year ago)
- Last Synced: 2025-03-26T17:52:21.336Z (3 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lighthouse-ci
This is a Lighthouse CI script generated and revised multiple times by ChatGPT 4. I have tested its functionality, and it works properly.
## Feature
1. It generates results for mobile and desktop separately, timestamped.
2. After each run, it compares the scores with the previous ones and saves the results.## Usage
Create a `urls.json` file, for example:
```json
{
"us": ["https://example.com"],
"ca": ["https://ca.example.com"]
}
```To run:
```shell
node main.mjs
```This will only run the `us` site.
```shell
node main.mjs --us
```