Commit Graph

8 Commits

Author SHA1 Message Date
Peter Hedenskog 3741366d45
Upgrade to eslint/unicorn 54 (#4213) 2024-07-08 08:19:41 +02:00
Peter Hedenskog 631271126f
New plugins structure and esmodule (#3769)
* New plugins structure and esmodule
2023-02-25 11:16:58 +01:00
Peter Hedenskog 8206cfd1ce
Move tests to Ava (#3637)
* Move tests to Ava
2022-04-25 22:18:29 +02:00
Peter Hedenskog 50f68aa611
Fix Grafana auth (#3634) 2022-04-19 05:52:57 +02:00
Peter Hedenskog 7cce73ea50
Remove experimental flag for perIteration metric for Graphite. (#3069)
* Remove exprimental flag for perIteration metric for Graphite.

* more updates per iteration
2020-07-09 21:21:23 +02:00
Erick Wilder 2c0ba7928e
feat(plugins): move influxdb CLI options to the plugin defintion (#3005) 2020-05-21 17:44:49 +02:00
Erick Wilder c750fe2b4a
Move graphite cli options to plugin (#2991)
* test(cli): add graphite coverage for current cli options

* refactor(plugins/graphite): move CLI option definitions to plugin
2020-05-13 12:14:20 +02:00
Erick Wilder 8cf3c24722
Refactor grafana cli options (#2984)
* test(cli): add basic coverage to test cli help output

- Add basic coverated when invoking the command without arguments
- Basic checks for grafana help

* feat(cli): delegate command line options configuration to the Grafana plugin

It uses the name of the plugin as a namespace for all options. Plugin authors _may_ use this
in the future to show helpful messages in the default sitespeed CLI help output.

- Move CLI options to its own module to not pollute the plugin's `index.js` file.
- Change the plugin interface to define a `.cliOptions` property or method containing the `yargs`
  configuration to be used by the CLI code
- Add code coverage for the existing plugin API to ensure no regressions are introduced for Grafana
- Move parts of the `yargs`-related code to `cli/util.js`. Tests to ensure the initial proposition for
  plugin-based CLI options are included.

Co-authored-by: Peter Hedenskog <peter@soulgalore.com>
2020-05-11 20:31:52 +02:00