OS.js
OS.js copied to clipboard
[RFC] Dynamic (discoverable) providers
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.
- [ ] Add
package.jsonentry - [ ] Add new CLI task (
service:discover) - [ ] Update all official providers
- [ ] Update documentation
Yep, would be better if i didn't have to build after installing providers
@17lwinn You'd still have to rebuild after adding a client service provider.
I know but other providers should not require a rebuild