forked from vendure-ecommerce/storefront-remix-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
23 lines (23 loc) · 853 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
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/*"
generates:
app/generated/graphql.ts:
plugins:
- typescript
- typescript-operations
- typescript-generic-sdk
app/generated/schema.graphql:
plugins:
- schema-ast