58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
overwrite: true
|
|
generates:
|
|
# Generate types for chat
|
|
src/graphql/schema/chat.gen.ts:
|
|
schema: 'https://chat.discours.io'
|
|
plugins:
|
|
- 'typescript'
|
|
- 'typescript-operations'
|
|
- 'typescript-urql'
|
|
config:
|
|
skipTypename: true
|
|
useTypeImports: true
|
|
outputPath: './src/graphql/types/chat.gen.ts'
|
|
# namingConvention: change-case#CamelCase # for generated types
|
|
|
|
# Generate types for core
|
|
src/graphql/schema/core.gen.ts:
|
|
schema: 'https://testapi.discours.io'
|
|
plugins:
|
|
- 'typescript'
|
|
- 'typescript-operations'
|
|
- 'typescript-urql'
|
|
config:
|
|
skipTypename: true
|
|
useTypeImports: true
|
|
outputPath: './src/graphql/types/core.gen.ts'
|
|
# namingConvention: change-case#CamelCase # for generated types
|
|
|
|
# Generate types for notifier
|
|
src/graphql/schema/notifier.gen.ts:
|
|
schema: 'https://notifier.discours.io' # FIXME: https
|
|
plugins:
|
|
- 'typescript'
|
|
- 'typescript-operations'
|
|
- 'typescript-urql'
|
|
config:
|
|
skipTypename: true
|
|
useTypeImports: true
|
|
outputPath: './src/graphql/types/notifier.gen.ts'
|
|
# namingConvention: change-case#CamelCase # for generated types
|
|
|
|
# internal types for auth
|
|
# src/graphql/schema/auth.gen.ts:
|
|
# schema: 'https://auth.discours.io/graphql'
|
|
# plugins:
|
|
# - 'typescript'
|
|
# - 'typescript-operations'
|
|
# - 'typescript-urql'
|
|
# config:
|
|
# skipTypename: true
|
|
# useTypeImports: true
|
|
# outputPath: './src/graphql/types/auth.gen.ts'
|
|
# namingConvention: change-case#CamelCase # for generated types
|
|
|
|
hooks:
|
|
afterAllFileWrite:
|
|
- prettier --ignore-path .gitignore --write --plugin-search-dir=. src/graphql/schema/*.gen.ts
|