在指定多个controller目录的自定义目录场景下,无法跳过中间目录
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 161
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
比如项目以feature-base的方式建立了多个模块:
- modules
- session
- controller
- main.js
- controller
- student
- controller
- main.js
- controller
- session
期望可以生成 app.controller.session.main 和 app.controller.student.main 的声明,但由于目录结构是自定义的,实际只能生成 app.controller.session.controller.main 和 app.controller.student.controller.main

希望通过caseStyle的方式可以生成期望的声明
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/generators/class.ts around line 42 and inspect how multiple custom controller directories are converted into declaration paths. Reproduce the feature-base layout from the issue, then verify that caseStyle can skip the intermediate controller directory and produce app.controller.session.main and app.controller.student.main.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100