-
Notifications
You must be signed in to change notification settings - Fork 4
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
chore: 🔧 improve contributing by setting up a monorepo #15
Comments
My 0.02 is these tools assume build steps (which we deliberately avoid) and create a lot of coupling between packages (which we are also trying to avoid). Ack it seems like more work ! |
I don’t see much benefit in using monorepos. They seem to add more rigmarole than I have the time to deal with. Each of these modules works by itself as well as together so lumping them into a single repo could also be confusing. |
What we do have here is clearly a docs problem however. @mariohamann what sort of docs / examples would you want to see for these to help fit them together? |
Totally get your point, and I'm very sorry, that I didn't take the appropriate time to describe my issue. ProblemToday I worked on a web component, which had a bunch of attributes I was checking in I wanted to make my component more flexible to be able to use named slots without ShadowDOM and make it server-side-renderable, by extending from This was irritating, as it's different from what I had in my component, from the behaviour in Lit and in Stencil and states against recommendations on MDN. But let's just have that here as a side note, maybe I will do a ticket for that somewhere else. 😄 So – I jumped into the repo of Perspective on a monorepoI definitely don't want to be pushy or anything. I highly appreciate your work. Feel totally free to close this issue if you want to follow your current path, I don't want to throw you into long discussions or anything – I'm a 100% sure and aware, that you have enough other stuff on the plate! But maybe you can see it as a perspective from someone who is super interested in your project and would love to bring in things in the future – if it's lightweight to do so. So everything I'm talking about in the following is based on my current experience + the following prototype which I built this evening: https://github.com/mariohamann/enhance What you see there is a monorepo containing most stuff besides the WASM stuff and
So if you want – just play around with my little prototype with Reach out, if you have any further questions or help is needed – and as said, feel completely free to close this issue. (Just have it maybe in your head, if you get similar feedback from others. :)) |
Render gets called once in the setup without state in order to populate the template tag in order to reuse the contents as a document fragment for each instance. Render then gets called when attributes get updated later on. The recommendations for lit etc do not apply to Enhance Custom Elements. The reason Lit makes sure you do not call render before connected callback is they need to do some work with your element before they allow you to. You can also create a race condition for adding event listeners if try to add them before your element is connected. |
Thanks for the great explanation for my initial problem. 🙏 Would really love to see something of that in the docs, maybe including the information of the default lifecycle. Especially for people coming from other libraries this would be super helpful! |
Hey there!
Really appreciate your work on
enhance-custom-element
. For me it feels a bit hard to contribute and to get together how all parts work together, as everything is distributed in different repositories which is very hard to follow as an outstander.Do you see a chance on setting up the following repos as a monorepo?
I'm open to contribute on this issue especially if you're fine with using
pnpm
, which has first-class workspace support and handles versioning etc. very well. If you want to stick tonpm
I would have to jump into their monorepo config, which I'm not used to, but I could wrap my head around it – would just take longer. (Usually working with semantic-release and semantic-release-monorepo, but I think you're release pipeline could be integrated in a monorepo setup as well.)The text was updated successfully, but these errors were encountered: