Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
parseArgs
Function · 0.85
toFilePrefix
Function · 0.85
toSingularEntity
Function · 0.85
patchAppSchema
Function · 0.85
patchRelations
Function · 0.85
patchAuditConstants
Function · 0.85
writeResourceFiles
Function · 0.85
write
Method · 0.80
error
Method · 0.80
Tested by
no test coverage detected