-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split @hawtio/react
package into core and plugins
#229
Comments
@hawtio/react package
into core and plugins@hawtio/react
package into core and plugins
By the way, this simpler approach tadayosi@e7b36b0 (using tsup multiple entries to separate core and plugins) badly fails because then we have two different cores with the two entries, so the states of the core services are not in sync between entries. |
The |
My thoughts are what you said in the original statement, that like this we are resembling more the base version. And even though we are still monorepo, it might add additional complexities. Are there any list of requirements they want available? |
@joshiraez The requirements: https://github.com/apache/activemq-artemis/blob/main/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/artemisPlugin.js |
Definitely. I'll take a look at that and try to bring more feedback |
I haven't yet decided whether we should merge this pull req #232 now. #232 revealed that these are the API that are needed to implement Camel plugin externally.
At this moment, it may be sufficent to just export these from |
There is a request from Artemis dev team (the main consumer of the plugin API) to expose key objects such as
workspace
andtreeProcessorRegistry
from@hawtio/react
'ssrc/plugins
.While we can just carelessly export everything in
src/plugins
fromsrc/index.ts
(like below) so that users can consume them from@hawtio/react
, I don't think it's a good design because we cannot provide a clear separation between the core and plugins.To achieve the goal of providing the resources from the plugins to users while keeping a clear separation between core and plugins, currently I think the only way is to split the
@hawtio/react
package into two:@hawtio/react
(core) and@hawtio/react-plugins
(plugins). That means the packages should look like this:This is getting more to resemble the legacy JS components structure, but since we'll still keep monorepo it shouldn't be of much burden for releasing each package unlike it was with the legacy Hawtio.
What do you think? @phantomjinx @mmelko @joshiraez
The text was updated successfully, but these errors were encountered: