jondot / hygen

The simple, fast, and scalable code generator that lives in your project.
http://www.hygen.io
MIT License
5.68k stars 256 forks source link

Kindly asking... is this still maintained? #443

Open svallory opened 8 months ago

svallory commented 8 months ago

First, thank you for the excellent piece of software! I've been having a lot of fun with it recently. :)

So, I sent a PR a few days ago adding support for multiple template directories with action conflict resolution.

Since then, I noticed that there isn't much activity going on, so I wanted to know if this project is still maintained, and if that's something that makes sense for the project

@jondot If it's not maintained, and you would like to pass it on to someone else, I'm volunteering, and maybe other people would too.

hygen was just what I was looking for in a generator I want to continue it one way or another

again, thank you!

jondot commented 8 months ago

Hi yes, this is still maintained.

The reason I'm taking more time to interact is the huge pain that is the Node.js ecosystem. Projects break out of no reason, and Javascript fatigue is a real thing.

Hygen at its current featureset works really well, and I always hesitate before trying to update dependencies and the codebase (because of the Node ecosystem).

I've started rrgen which will turn into Hygen's big brother (faster, easier, simpler, better), and rrgen is used in production and in high profile context already.

I'll try to review the PRs and see what should go into Hygen, but my main pain point is the ecosystem (ability to produce binaries, releases in a reliable manner in Node)

svallory commented 8 months ago

Hi yes, this is still maintained.

The reason I'm taking more time to interact is the huge pain that is the Node.js ecosystem. Projects break out of no reason, and Javascript fatigue is a real thing.

Hygen at its current featureset works really well, and I always hesitate before trying to update dependencies and the codebase (because of the Node ecosystem).

I've started rrgen which will turn into Hygen's big brother (faster, easier, simpler, better), and rrgen is used in production and in high profile context already.

I'll try to review the PRs and see what should go into Hygen, but my main pain point is the ecosystem (ability to produce binaries, releases in a reliable manner in Node)

Thank you for taking the time to reply! I'm creating a set of templates for monorepo and projects setup using moon, and I was kind of stuck needing some features to deal with the combinatorial explosion of the options.

Hygen had most of them, so I ended up implementing the one I required most (multiple templates directories) and since I'm in rush, I published it as hypergen.

I'm happy to continue making PRs for whatever makes sense to you, and even merge the projects back together in the future if you want

This first rc version is not a 100% backwards compatible but very close. I changed how missing directories is treated in some cases, so an error may be thrown in some cases. But that shouldn't really be an issue. Because if you are setting HYGEN_TMPLS, for example, you probably think that path exists, right?

Side note: Not sure if you are aware of Marko JS and their new tags api, but I think their language is perfect for templates and I want to make a translator for it so I can use marko instead ejs or whatever

svallory commented 8 months ago

Hey @jondot I'm kind of on a cross-roads here. I'm continuing the development of hypergen, I recently added an Indexed store implementation to speed up generator loading and conflict resolution.

The reason I did that is because my goal is to have at least dozens of templates with multiple overrides. I'll also add automatic template package discovery by reading package.json dependencies.

I'm telling you all this because it is becoming increasingly harder to send PRs back to hypergen (especially because I don't want to impose "my way").

Also, I feel your pain about the state of the node ecosystem. So I'm thinking of migrating the codebase to ESM and Deno which supports cross-compilation of binaries to all platforms. And that would be a total departure.

So I wanted to check with you what you think about this. If you want, this could become hygen v7, we merge the projects and maybe even create an organization. If not, it's okay too. I just wanted to be mindful of the work you did (I'm standing on the shoulder of giants here hehehe)

When you can, let me know what you think, ok? Thanks!