A CLI for crawling one or more domains and generating both mobile and desktop reports for each page.
-
npm install auto-lighthouse
ornpm install -g auto-lighthouse
-
auto-lighthouse -h
- Verify that you recieve the help output
-
auto-lighthouse -u some_url -o true
- Clone the repository
- Navigate to the project root
npm install
npm link
auto-lighthouse -h
- Verify help output
- Make some changes
- Make a pull request
npm unlink auto-lighthouse
- Please modify the
host
field inconfig/simpleCrawler.json
with your chosen domain to perform audits on that domain. npm install
npm run start
- Navigate to the
lighthouse
folder - Open the appropriate timestamped directory
- View lighthouse reports for mobile and desktop agents in your browser
runnerConfiguration.json
is the configuration file we use to control some of the internals of this package.
autoOpenReports
: Determines whether this package should automatically open generated reports. Default:false
. Can be set through the config or the CLI.port
: The local express server uses this number. Default: 9000. Can be set through the config or CLI.