Commit Graph

10 Commits

Author SHA1 Message Date
Peter Hedenskog b9456eef6e
Replace intel with sitespeed.io/log (#4381)
* Replace intel with sitespeed.io/log
2025-01-07 08:53:48 +01: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 1e9bea8bf0
Update to latest prettier/eslint setup (#3478) 2021-10-11 18:44:59 +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
Peter Hedenskog 1448e5e468
First go at adding configurable groups #2958 (#2964)
* First go at adding configurable groups #2958

* Fix broken group

* simplify group handling

* Adjust test to the new structure
2020-04-27 08:19:41 +02:00
Tobias Lidskog d1b376e2ca
Split out code that’s never accessed from plugins. (#1762) 2017-10-29 09:54:22 +01:00
Tobias Lidskog 00309296f9 Update test libraries. 2017-09-29 17:38:31 +02:00
Tobias Lidskog 3debfec0b4 Format code using the Prettier formatter. (#1677) 2017-07-20 21:24:12 +02:00
Jonathan Lee 198a330492 First pass at supporting URL aliases for #1326 (#1374)
* First pass at supporting URL aliases for #1326

* Add to HTML output support for URL aliasing - #1326

* Adding tests and docs for #1326
2016-12-12 00:06:20 -05:00