OS.js icon indicating copy to clipboard operation
OS.js copied to clipboard

[RFC] Dynamic (discoverable) providers

Open andersevenrud opened this issue 6 years ago • 3 comments

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

andersevenrud avatar Dec 31 '18 21:12 andersevenrud

Yep, would be better if i didn't have to build after installing providers

17lwinn avatar Feb 22 '20 15:02 17lwinn

@17lwinn You'd still have to rebuild after adding a client service provider.

andersevenrud avatar Feb 22 '20 15:02 andersevenrud

I know but other providers should not require a rebuild

17lwinn avatar Feb 22 '20 15:02 17lwinn