Skip to content

Commit 3bdcd08

Browse files
committedMar 14, 2022
added codegen
0 parents  commit 3bdcd08

19 files changed

+13773
-0
lines changed
 

‎.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

‎codegen.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
overwrite: true
2+
schema: "http://127.0.0.1:3333/graphql"
3+
documents: "src/graphql/*.graphql"
4+
5+
config:
6+
enumsAsConst: true
7+
maybeValue: T | undefined
8+
9+
generates:
10+
src/generated/graphql.tsx:
11+
plugins:
12+
- "typescript"
13+
- "typescript-operations"
14+
- "typescript-react-apollo"
15+
# - "typescript-graphql-files-modules"
16+
./graphql.schema.json:
17+
plugins:
18+
- "introspection"

0 commit comments

Comments
 (0)