Files
TheGame/packages/web/codegen.yml
2023-03-14 11:57:07 -06:00

27 lines
706 B
YAML

overwrite: true
require:
- ts-node/register
generates:
./graphql/autogen/types.ts:
schema: '../../schema.graphql'
documents:
- ./graphql/**/(!(*.d)).ts
- '!./graphql/composeDB/**'
plugins:
- typescript
- typescript-operations
- typescript-urql
- add:
content: '/* eslint-disable */'
config:
gqlImport: fake-tag
skipTypename: true
dedupeOperationSuffix: true
documentMode: documentNode
# This generates typenames more in line with the rest
# of the codebase, but, unfortunately, player_role and
# PlayerRole create the same output name
# namingConvention:
# transformUnderscore: true