MCPcopy
hub / github.com/infinitered/ignite / installedGenerators

Function installedGenerators

src/tools/generators.ts:238–244  ·  view source on GitHub ↗

* Finds generator templates installed in the current project

()

Source from the content-addressed store, hash-verified

236 * Finds generator templates installed in the current project
237 */
238function 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
246type GeneratorCaseOptions = "auto" | "pascal" | "camel" | "kebab" | "snake" | "none"
247

Callers 2

validateGeneratorFunction · 0.85
showGeneratorsFunction · 0.85

Calls 1

templatesDirFunction · 0.85

Tested by

no test coverage detected