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.58k stars 4.02k forks source link

Each generator should use its own Type instead of BaseApplication #27294

Open Tcharl opened 2 months ago

Tcharl commented 2 months ago
Overview of the issue

With the current implementation, it's difficult to add methods on tasks because they are using BaseApplication as input object.

i.e. { application } passed to asPreparingTaskGroup's method of generator-angular is a BaseApplication instead of the generator-angular/types.d.ts#AngularApplication

Same trick could be implemented for Entity (so that an Angular Entity can contain specific attributes and methods, like angularFormPath

Motivation for or Use Case

It would allow more modularity and ease of extension.

mshima commented 1 month ago

It’s quite complicated since there is lots of inter dependencies in main generators. But non application generators types like ci-cd, workspaces needs to be improved.