IITC-CE / Community-plugins

A collection of amazing plugins made by IITC community.
45 stars 16 forks source link

specifying optional dependencies #13

Closed MaxEtMoritz closed 2 years ago

MaxEtMoritz commented 2 years ago

One of my Plugins has an optional dependency to another plugin: it runs without it, but is limited in features without that other plugin.

It would be nice to be able to mark a dependency as optional.

or should i just list that other plugin as "full" dependency, although that's not quite true?

Btw: will listing a dependency to a plugin that's not in the repo (yet) break everything (i assume yes)?

modos189 commented 2 years ago

For optional dependencies, I suggest using the keyword "recommends" similar to "depends": recommends: name@author where name is the filename of the plugin without iitc, plugin and .user.js

If the dependency plugin is not in the repository, the dependency will simply not be clickable