MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / new-resource.ts

File new-resource.ts

apps/api/scripts/codegen/new-resource.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#!/usr/bin/env bun
2/**
3 * Scaffolds a new API resource:
4 * - src/api/<lowercase>/<lowercase>.{routes,schemas,service,types}.ts

Callers

nothing calls this directly

Calls 9

parseArgsFunction · 0.85
toFilePrefixFunction · 0.85
toSingularEntityFunction · 0.85
patchAppSchemaFunction · 0.85
patchRelationsFunction · 0.85
patchAuditConstantsFunction · 0.85
writeResourceFilesFunction · 0.85
writeMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected