Open andersevenrud opened 5 years ago
At the moment packages (apps, themes, icons, sounds) can be discovered and automatically used by client/server via package:discover.
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):
package.json
package
{ "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.
/packages.json
index.js
A downside with this is that you'd have to explicitly set all options in config.js - but that's not a big deal.
config.js
Maybe look into configuration publishing as well to prevent that.
service:discover
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
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 ofpackage
value):Then have the CLI generate a list (just like
/packages.json
from packages discovery) which is used by theindex.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.
package.json
entryservice:discover
)