polylith icon indicating copy to clipboard operation
polylith copied to clipboard

Introduce a tree structure into the `components` and `bases` subdirectories

Open marksto opened this issue 11 months ago • 1 comments

Is your feature request related to a problem? Please describe. Having the workspace components (and maybe bases) semantically grouped in some way, e.g. by purpose, by layer, etc.

Describe the solution you'd like Introduce a tree structure into the components and bases subdirectories, so that the dir structure like this is possible:

...
- components
  - domain
    - domain-component-a
    - domain-component-b
  - services
    - service-component-a
    - service-component-b
...

Describe alternatives you've considered

  1. Support for multiple workspaces (see #431 and #470). Now reverted.
  2. The only workaround atm is prefixing the component names, e.g. "domain-component-a". This sucks a bit, since the separator options are limited to - and _, since a component name have to be a valid file name.

Additional context Already discussed this feature in Slack channel and here as a partial alternative to multiple workspaces support.

marksto avatar Oct 28 '24 09:10 marksto