Skip to content

Generating code from DB and making that a build step. #378

Answered by cogwirrel
zetashift asked this question in Q&A
Discussion options

You must be logged in to vote

Is the best way here to just create a new TypeScript project(where the build step is running those tasks) and make it a dependency of my cdk-app?

I think that's the best way! If you generate your code into a TypeScriptProject managed by projen and part of the monorepo, it makes it fairly straightforward to add dependencies! Your suggestion is basically how TypeSafeApi works under the hood - where code generation is run as part of the preCompile task for the relevant projects :)

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@cogwirrel
Comment options

@zetashift
Comment options

Comment options

You must be logged in to vote
1 reply
@zetashift
Comment options

Answer selected by zetashift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants