2022-09-09 11:53:35 +00:00
|
|
|
overwrite: true
|
|
|
|
generates:
|
2023-11-28 13:18:25 +00:00
|
|
|
# Generate types for chat
|
|
|
|
src/graphql/schema/chat.gen.ts:
|
2024-06-06 06:32:35 +00:00
|
|
|
schema: 'https://inboxtest.discours.io'
|
2022-09-09 11:53:35 +00:00
|
|
|
plugins:
|
2023-11-28 13:18:25 +00:00
|
|
|
- 'typescript'
|
|
|
|
- 'typescript-operations'
|
|
|
|
- 'typescript-urql'
|
2022-09-09 11:53:35 +00:00
|
|
|
config:
|
2023-11-28 13:18:25 +00:00
|
|
|
skipTypename: true
|
2022-09-09 11:53:35 +00:00
|
|
|
useTypeImports: true
|
2023-11-28 13:18:25 +00:00
|
|
|
outputPath: './src/graphql/types/chat.gen.ts'
|
2023-11-28 16:52:18 +00:00
|
|
|
# namingConvention: change-case#CamelCase # for generated types
|
2023-11-28 13:18:25 +00:00
|
|
|
|
|
|
|
# Generate types for core
|
|
|
|
src/graphql/schema/core.gen.ts:
|
2024-06-06 06:32:35 +00:00
|
|
|
schema: 'https://coretest.discours.io'
|
2022-09-09 11:53:35 +00:00
|
|
|
plugins:
|
|
|
|
- 'typescript'
|
|
|
|
- 'typescript-operations'
|
|
|
|
- 'typescript-urql'
|
|
|
|
config:
|
|
|
|
skipTypename: true
|
2023-11-28 13:18:25 +00:00
|
|
|
useTypeImports: true
|
|
|
|
outputPath: './src/graphql/types/core.gen.ts'
|
2023-11-28 16:52:18 +00:00
|
|
|
# namingConvention: change-case#CamelCase # for generated types
|
2022-09-09 11:53:35 +00:00
|
|
|
hooks:
|
|
|
|
afterAllFileWrite:
|
2023-11-28 13:18:25 +00:00
|
|
|
- prettier --ignore-path .gitignore --write --plugin-search-dir=. src/graphql/schema/*.gen.ts
|