contentfulTypes.d.tsthat depends on contentful to be generated. The same goes for an
openapi.yamlfile that comes from an external service.
yarn installthe scripts will generate all the schemas and types for the project. It takes around ~45sec to generate all schemas, definitions types and open api schemas. The output is cached using NX to avoid re-generating all files again when no changes have been detected. It can go down up to ~5sec to run again.
workspace.jsonto generate schemas and types.
openApi.tsfile to define the document builder. Add this file at the root of the project along the
buildOpenApi.tsthat will consume the previous file and generate the
workspace.jsonfor the project.
openapi.yamlfile generated from the previous script to run
workspace.jsonso the CI can create the GraphQL schema in the pipeline without starting running the server:
codegen.ymlfile in your project