Crawl a website and run it through Google lighthouse
Clone or download
19
Latest commit d5dd416 Jul 13, 2017
Permalink
Failed to load latest commit information.
.gitignore Initial commit Jun 20, 2017
README.md Update README.md Jul 4, 2017
cli.js Add required config option Jun 21, 2017
index.js Celebrate when no violations Jun 23, 2017
package-lock.json 0.0.9 Jun 23, 2017
package.json 0.0.9 Jun 23, 2017
report.json Initial commit Jun 20, 2017

README.md

lightcrawler

Crawl a website and run it through Google lighthouse

npm install --save-dev lightcrawler

lightcrawler --url https://atom.io/ --config lightcrawler-config.json

where lightcrawler-config.json looks something like this:

{
  "extends": "lighthouse:default",
  "settings": {
    "crawler": {
      "maxDepth": 2,
      "maxChromeInstances": 5
    },
    "onlyCategories": [
      "Accessibility",
      "Performance",
      "Best Practices"
    ],
    "onlyAudits": [
      "accesskeys",
      "aria-allowed-attr",
      "external-anchors-use-rel-noopener",
      "geolocation-on-start",
      "no-document-write",
      "no-mutation-events",
      "no-old-flexbox",
      "time-to-interactive",
      "user-timings",
      "viewport",
      "without-javascript"
    ]
  }
}

Enjoy!