* Finds generator templates installed in the current project
()
| 236 | * Finds generator templates installed in the current project |
| 237 | */ |
| 238 | function installedGenerators(): string[] { |
| 239 | const { subdirectories, separator } = filesystem |
| 240 | |
| 241 | const generators = subdirectories(templatesDir()).map((g) => g.split(separator).slice(-1)[0]) |
| 242 | |
| 243 | return generators |
| 244 | } |
| 245 | |
| 246 | type GeneratorCaseOptions = "auto" | "pascal" | "camel" | "kebab" | "snake" | "none" |
| 247 |
no test coverage detected