-
Notifications
You must be signed in to change notification settings - Fork 483
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
Expose Clay's packages in the @clayui/core
package
#4191
Comments
FYI: @brianchandotcom is very interested in the progress of this ticket in order to simplify the management of Clay packages in remote apps such as this one: https://github.com/liferay/liferay-portal/blob/master/modules/apps/site-initializer/site-initializer-raylife/extra/remote-app/package.json#L20 |
@ethib137 thanks for the heads up. @matuzalemsteles let me know if we can talk about this via Slack - @sergiojimcos and I might be able to start working on this if it's our top priority. |
We're considering moving clay to DXP in order to make it easier for clay to reach dxp. In this effort we must consider the need for simplifying the management of dependencies. We recenlty added the concept of target platform, which applies to external developers when dealing with JS projects for liferay. I believe we shall consider applying these ideas to the remote apps too. Just noting this to start some brainstorming, ccing @izaera as we already talked about this internally so he'd (hopefully) like to participate too ;) |
We are already pulling all clay dependencies in target platforms, but that's for portlet projects (those deployed via JAR file). In the case of remote apps, we already have a project generator that configures a build based on webpack that, when used with clay, would internalize clay deps into the generated javascript bundle. Additionally, we are already offering the possibility to dedupe If we manage to put all clay API into a single package (like react or angular do, for example) it would be very easy to export clay like we do with react (via browser modules) so that remote apps built with liferay-cli use the same clay the portal is using (instead of duplicating it into the webpack's generated bundle). @ethib137 we have not tried to use If you want to give it a try just ping me :-) |
@izaera that's very clear and also what I had in mind - thanks. Now I just need to see if @matuzalemsteles is on the same page and I also want to know his opinion on the risks this could imply. |
If we cannot export everything through the main's |
I had forgotten about this option for those who develop outside of DXP. I agree @izaera, the goal here is exactly that, keep all packages under |
@matuzalemsteles thanks - so we are going to literally move the files from their actual "locations" to the |
I would love to start introducing 4.x 😁 but we can do that without breaking packages, we can move all packages to |
I see, don't you think that's adding unnecessary complexity?
Exactly. My point is that this "change" is a breaking one anyway, and I think it's much easier to publish @clayui/[email protected] with everything inside |
Hey guys, any update about this point? thanks 😄 |
Hey @kevenleone, unfortunately we haven't made any progress with this yet, we're just adding the new components inside We tried just re-exporting the components inside |
We started working on the flow of merging all of Clay's packages into one for easy maintenance, simplifying their release and updating in DXP.
#4162 introduced an initial implementation for this, adding only a few packages but we still need to add all the other packages. The purpose of this ticket is to expose the rest of these packages and also make the component types available.
The text was updated successfully, but these errors were encountered: