explore how we can get generated files in nested structures
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 397
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 26
Description
at the moment it is complex to put generated models in custom subfolder, like for example models. Some solve it with hooks: https://github.com/asyncapi/java-template/blob/master/hooks/createFolderStructure.js but I'd love us to explore how we can have this functionality available by default as part of https://github.com/asyncapi/generator/blob/master/packages/components/src/components/models.js or maybe even File component.
you know? so one option is for sure that in `File` component you can specify not only file name but also folder, or maybe we need `Folder` component.
or we solve it in some custom way in the `Models` component only?
Contributor guide
Research direction
Start with packages/components/src/components/models.js and the File component, then review the linked createFolderStructure.js hook as an existing workaround. Compare whether nested paths belong in File, require a Folder component, or are specific to Models. Done means documenting and implementing a decided default approach for generated files in custom subfolders.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100