question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow plugins to depend on other plugins

See original GitHub issue

Is there any way to specify that one plugin requires another to be loaded? For example, if I’ve written a plugin that processes messages from gpsi in order to do something special, I’d like to ideally ensure that gpsi gets loaded without having to tell a user to make sure they’ve set --plugins.load gpsi my-plugin.

Barring that, it would at least be nice to have a final list of loaded plugins so I could throw an error or log a message noting that gpsi (or whatever other plugin I depend on) isn’t loaded.

Similarly, it would be helpful to be able to supply additional options to the plugin I depend on. For example, I am working on a plugin that requires a special post-script be used for Browsertime. It would be nice to somehow explicitly declare that I depend on Browsertime and provide the path to the post-script to load from my plugin instead of telling users to make sure they set that Browsertime option appropriately on the CLI.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

0reactions
soulgalorecommented, Nov 28, 2017

Lets create an issue the coming days then the coming days to open the Browsertime from sitespeed.io to async a JavaScript, it’s a nice feature but no one has focused on opening it up from the outside.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Moodle in English: Plugins depending on other plugins
All plugins depend of core. Just let me add “and its APIs”. I suppose nobody will object. Subplugins depend of their parent plugins....
Read more >
Plugin dependent on another plugin - Unreal Engine Forums
Plugins can now declare dependencies on other plugins that the engine will use to automatically enable and load additional plugins they depend ......
Read more >
What's a reliable way to depend on another plugin?
Consider plugin A: $A_message; add_action('plugins_loaded', function() { do_action('plugin-A:init'); }); // Hooks allow B to access A (both ...
Read more >
How to Access an Entire Plugin from Another Plugin | SpigotMC
I am working on a plugin that extends one of my other plugins, I was wondering if I'm able to get all the...
Read more >
Call for Testing: Plugin Dependencies – Make WordPress Core
Install and activate the Plugin Dependencies feature plugin. · Delete the Hello Dolly plugin, a single file plugin cannot be a dependency ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found