generator-jhipster icon indicating copy to clipboard operation
generator-jhipster copied to clipboard

Cleanup generator-base API.

Open mshima opened this issue 3 years ago • 1 comments

Overview of the issue

Generator base has too many methods. It should provide only the base methods, technology specific methods like needles and processHtml/Tsx should be removed.

  • Implement a new needle base support.
  • Migrate needles to this implementation.
  • Implement transforms at writeFiles to replace processHtml/processJsx methods.
Motivation for or Use Case

Improve maintainability.

Browsers and Operating System
  • [x] Checking this box is mandatory (this is just to show you read everything)

mshima avatar May 13 '22 20:05 mshima

For processing and technology specific methods, I encourage to move to a more object-oriented approach with packages and classes located in /utils/<client|server|dcvs|...>/<entity|class>.

Tcharl avatar May 28 '22 20:05 Tcharl

@mshima Anything missing to close this issue?

DanielFran avatar Aug 26 '23 15:08 DanielFran

We still have the todo generator. https://github.com/jhipster/generator-jhipster/blob/main/generators/base/generator-base-todo.mts

mshima avatar Aug 26 '23 21:08 mshima

@DanielFran bounty claimed https://opencollective.com/generator-jhipster/expenses/187981

mshima avatar Feb 15 '24 20:02 mshima

@mshima approved

DanielFran avatar Feb 15 '24 21:02 DanielFran