UNPKG

backend-smith

Version:

A CLI tool for automating backend component generation in Express.js, including modules, schemas, routes, services, and more.

18 lines (14 loc) 534 B
import { createSchema } from "./createSchema"; import { createValidation } from "./createValidation"; import { createDto } from "./createDto"; import { createService } from "./createService"; import { createController } from "./createController"; import { createRoute } from "./createRoute"; export function createModule(module: string, fields: string[]) { createDto(module, fields) createSchema(module, fields); createValidation(module, fields); createService(module); createController(module); createRoute(module); }