Skip to content

[RFC] Dynamic (discoverable) providers #707

Open
@andersevenrud

Description

@andersevenrud

At the moment packages (apps, themes, icons, sounds) can be discovered and automatically used by client/server via package:discover.

It would be cool if this could be added to service providers as well.

Basically use the same approach, except change package.json to (instead of package value):

{
  "osjs": {
    "type": "service"
  }
}

Then have the CLI generate a list (just like /packages.json from packages discovery) which is used by the index.js bootstrap script.

A downside with this is that you'd have to explicitly set all options in config.js - but that's not a big deal.

Maybe look into configuration publishing as well to prevent that.

  1. Add package.json entry
  2. Add new CLI task (service:discover)
  3. Update all official providers
  4. Update documentation

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions