aboutsummaryrefslogblamecommitdiffstats
path: root/webui/codegen.yaml
blob: 1580632ea85256b9123ba91346d158692b9c7633 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                     
                           





                         


                    


                    

            
                                                                                 










                                
      

                    
schema: '../graphql/schema/*.graphql'
overwrite: true
documents: src/**/*.graphql
generates:
  ./src/fragmentTypes.js:
    plugins:
    - fragment-matcher
    config:
      module: es2015
  ./src/gqlTypes.ts:
    plugins:
    - typescript
  ./src/schema.json:
    plugins:
    - introspection
  ./src/:
    plugins:
    - add: '/* eslint-disable @typescript-eslint/no-unused-vars, import/order */'
    - typescript-operations
    - typescript-react-apollo
    preset: near-operation-file
    presetConfig:
      extension: .generated.tsx
      baseTypesPath: gqlTypes.ts
    config:
      withComponent: false
      withHOC: false
      withHooks: true

hooks:
  afterAllFileWrite:
  - prettier --write