@schemifyjs/core
Version:
Core module of the SchemifyJS CLI. Provides reusable functions such as scaffolding, template handling, and general utilities.
22 lines (21 loc) • 752 B
JavaScript
// import { GenerateArtifactOptions, ArtifactType } from '@schemifyjs/types'
// import { MicroserviceScaffolder } from '@schemifyjs/schematics'
export {};
// type ScaffolderConstructor = {
// [K in ArtifactType]: new () => {
// scaffold: (options: GenerateArtifactOptions) => Promise<void>
// }
// }
// const scaffolders: ScaffolderConstructor = {
// microservice: MicroserviceScaffolder
// }
// export async function dispatchGenerateScaffolder(
// options: GenerateArtifactOptions
// ): Promise<void> {
// const Scaffolder = scaffolders[options.type]
// if (!Scaffolder) {
// throw new Error(`Unsupported artifact type: ${options.type}`)
// }
// const scaffolder = new Scaffolder()
// await scaffolder.scaffold(options)
// }