Skip to content
Crawl a website and run it through Google lighthouse
JavaScript
Branch: master
Clone or download

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Jun 20, 2017
LICENSE.md Add LICENSE.md that matches license from package.json Jan 24, 2019
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!

You can’t perform that action at this time.