neighbour-hoods / timetracking-applet

1 stars 0 forks source link

Create a Neighbourhoods / We / hREA template #7

Open pospi opened 1 year ago

pospi commented 1 year ago

Curious on everybody's thoughts as to the utility of having this as a starter kit. For the most part I have been keeping a separate branch with parity to https://github.com/neighbour-hoods/applet-template, but given some of the more significant divergences in code structure recently I am going to start keeping this issue as a list of cleanup things to apply back to the base template before any possible future release.

Until then app-template should be considered as incomplete / unpolished work that will not have all of the developer ergonomics & code quality improvements of the main branch.

adaburrows commented 1 year ago

I've been floating the idea of having a template library that we'd use with hygen that could have all sorts of things like this in it. Need to add hREA? Just add it through hygen. Need to make a new Lit component that adheres to our standards (like theming with the css variables we haven't yet figured out)? Just use the templates. I think we can start with a few things like making an NH-We applet, making components, adding in new zomes, and adding in hREA. Then we can see what other use cases come up.

I suggest hygen, because it seems a little bit more developed than the scaffolding tools being developed by Holochain. It supports more use cases so far and doesn't have code in filenames. What do you think?

pospi commented 1 year ago

Funny (and validating)- there were some hygen templates in the hREA repo initially with this intention. Never really took off, I think mainly because the code was in such flux and so keeping them updated was a chore. Definitely one of the better templating frameworks I have used but I do think some careful thought is needed as to how to construct & compose generators- if they try to do too much they end up under-utilised.