jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.56k stars 4.02k forks source link

Is the structure of subgenerators a bit fragmented now? #25964

Closed wangxinxx closed 6 months ago

wangxinxx commented 6 months ago
Overview of the feature request

At the next level of the java sub-generator, there are also generators such as jib/bootstrap/build-tool/code-quality. Among the templates of these generators, there are only 1-2 template files. There are currently 15 generators involving the Java language, and I feel that it brings challenges to the production of blueprints.

Motivation for or Use Case
Related issues or PR
mshima commented 6 months ago

The idea is to have them reusable out-of-the-box. Micronaut blueprint: https://github.com/jhipster/generator-jhipster-micronaut/blob/3b98726fe7ff444d8bb4bbe8cb02152421f91c5a/generators/micronaut/generator.js#L24 https://github.com/jhipster/generator-jhipster-micronaut/blob/3b98726fe7ff444d8bb4bbe8cb02152421f91c5a/generators/micronaut/generator.js#L59-L65

I don’t know your use case, but for official blueprints, it improved reusability.

wangxinxx commented 6 months ago

OK. Do see an improvement in reusability. The challenge I encountered is: in sbs mode, I need to constantly adjust the directories or files where I add templates, and adjust the codes of multiple sub-generators at the same time. In addition, there is also an uncertain factor. How many such adjustments may there be in the future? Will there be other more adjustments to the position of the sub-generator?