Skip to content

Node.js script to automate the execution of Lighthouse, a quality auditing tool for web applications. It generates useful reports with optimization recommendations to improve performance, accessibility, SEO, and best practices.

License

Notifications You must be signed in to change notification settings

Vogon38/reporter-lighthouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This script will run a series of tests on the webpage and generate a report about its performance. In this report, you can use the failing tests as indicators of what can be improved to enhance the platform.

Installation

To install globally, run the following commands:

npm install -g faustao-errou
npm install -g lighthouse
# or use yarn:
# yarn global add lighthouse
npm install minimist

Running the Script

npm start

When running the .sh file, all URLs listed in the urls.txt file will be audited.

Authentication

When opening Chrome in debug mode, log in to the platform and leave the window open. It will be required for authenticating the audited URLs.

Utilities

node src/app.js --url=https://www.site.com

Use the command above to audit only a single page by replacing url.com with the desired address.

Note: The authentication step is also required here. To do this, run the command and log in:

chrome.exe --remote-debugger-port=9222

About

Node.js script to automate the execution of Lighthouse, a quality auditing tool for web applications. It generates useful reports with optimization recommendations to improve performance, accessibility, SEO, and best practices.

Topics

Resources

License

Stars

Watchers

Forks