-
Notifications
You must be signed in to change notification settings - Fork 1
/
codegen.yml
29 lines (28 loc) · 958 Bytes
/
codegen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
overwrite: true
hooks:
afterOneFileWrite:
- prettier --write
generates:
# Service messages
./libs/data-access/src/lib/strapi/generated/graphql.ts:
schema: https://cms.staging.fellesdatakatalog.digdir.no/graphql
documents: './libs/data-access/src/lib/strapi/graphql/service-message.graphql'
config:
withHooks: true
withComponent: false
withHOC: false
plugins:
- typescript
- typescript-operations
- typescript-react-apollo
# Reference-data
./libs/data-access/src/lib/reference-data/generated/graphql.ts:
schema: https://raw.githubusercontent.com/Informasjonsforvaltning/fdk-reference-data/refs/heads/main/src/main/resources/graphql/schema.graphqls
documents: './libs/data-access/src/lib/reference-data/graphql/administrative-units.graphql'
config:
withHooks: true
withComponent: false
withHOC: false
plugins:
- typescript
- typescript-operations