zachleat / speedlify

Benchmark the web performance and accessibility of sites over time.
https://www.speedlify.dev/
MIT License
922 stars 168 forks source link

Allows adding a `frequency` (in minutes) to the options for each category #12

Closed nhoizey closed 4 years ago

nhoizey commented 4 years ago

For example, if you wanted to run audits for your netlify category every 10 minutes, you can add this:

module.exports = {
  netlify: {
    description: "Netlify web sites",
    options: {
      freshChrome: "site",
      frequency: 10,
    },
    urls: [
      "https://www.netlify.com/",
      "https://www.netlify.com/donation-matching/",
      "https://www.netlify.com/products/build/plugins/",
      "https://www.netlify.com/with/sitecore/",
      "https://www.netlify.com/with/drupal/",
      "https://www.netlify.com/with/wordpress/",
      "https://www.netlify.com/webinar/a-drupal-journey-to-the-jamstack/",
      "https://jamstackconf.com/",
      "https://jamstackconf.com/virtual/",
    ],
  },
}

Runs timestamps are save in the same file.

There is a 60 minutes default.

zachleat commented 4 years ago

I like it—I think there are a lot of whitespace commits in there though?

nhoizey commented 4 years ago

Oooh sorry, you're right, my Prettier configuration is bad… 🤦‍♂️

I'll fix that.

nhoizey commented 4 years ago

@zachleat looks like it's fine now.

zachleat commented 4 years ago

Beautiful, thank you!

nhoizey commented 4 years ago

You're welcome!