manifold/web/codegen.yml
joy_void_joy 77c6b68f61 chore: Add graphql-codegen pipeline
Have graphql-codegen run with yarn dev:dev, and have it read
graphql files and output them in the generated folder
2022-07-20 18:15:49 +02:00

26 lines
430 B
YAML

overwrite: true
schema: lib/api/graphql/**/**.graphql
documents: null
generates:
generated/graphql_api.ts:
config:
useIndexSignature: true
inputMaybeValue: undefined | T
maybeValue: undefined | T
strictScalars: true
plugins:
- 'typescript'
- 'typescript-resolvers'
generated/schema.graphql:
plugins:
- 'schema-ast'
hooks:
afterAllFileWrite:
- prettier --write