Auditing script for producing desktop and mobile screenshots, markup validator screenshots and lighthouse reports given a URL
- Node v7.6.0 or above
- Clone this Git repository into a new directory
After cloning the git repo, execute the following lines on the command line in the root directory:
npm init -y
npm install puppeteer lighthouse
To run the auditing tool, all you need is the URL of the home page of the website/staging site and a Directory Name which will store the results of the audit. The following should then be typed into the terminal:
node audit.js --url <URL> --dir <Directory Name>
Results of the auditing tool can be found in the four directories of the installation directory.
The reports found in the /lighthouse folder can be viewed as html using the following address https://googlechrome.github.io/lighthouse/viewer/