-
Notifications
You must be signed in to change notification settings - Fork 115
/
codegen.yml
26 lines (26 loc) · 890 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
overwrite: true
schema:
- "${VENDURE_API_URL:https://readonlydemo.vendure.io/shop-api}"
# This is the additional schema extension that would be present it
# the Stripe playment plugin is enabled on the Vendure server. Added
# manually here to allow codegen to work regardless.
- 'type Mutation { createStripePaymentIntent: String }'
# This is the additional schema extension that would be present it
# the Braintree playment plugin is enabled on the Vendure server. Added
# manually here to allow codegen to work regardless.
- 'type Query { generateBraintreeClientToken: String }'
documents:
- "app/**/*.{ts,tsx}"
- "!app/generated/*"
config:
scalars:
Money: number
generates:
app/generated/graphql.ts:
plugins:
- typescript
- typescript-operations
- typescript-generic-sdk
app/generated/schema.graphql:
plugins:
- schema-ast