Skip to content

Commit bdab51c

Browse files
committed
Improvements
Upgraded graphQL tools Linted code Now gql-gen works with codegen.yml
1 parent 735f7b3 commit bdab51c

12 files changed

+8925
-14653
lines changed

frontend/.npmrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
2+
3+
depth=0
4+
loglevel=warn
5+
package-lock=false
6+
progress=false

frontend/angular.json

+5
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,10 @@
128128
"@schematics/angular:directive": {
129129
"prefix": "app"
130130
}
131+
},
132+
"cli": {
133+
"warnings": {
134+
"typescriptMismatch": false
135+
}
131136
}
132137
}

frontend/codegen.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
schema:
2+
- http://localhost:8080/graphql
3+
documents:
4+
- src/app/graphql/all-cars.query.graphql
5+
- src/app/graphql/delete-car.mutation.graphql
6+
- src/app/graphql/get-car.query.graphql
7+
- src/app/graphql/save-car.mutation.graphql
8+
config:
9+
resolvers: false
10+
generates:
11+
src/app/generated/graphql.ts:
12+
config:
13+
resolvers: false
14+
plugins:
15+
- typescript-common
16+
- typescript-client
17+
- typescript-apollo-angular
18+
require: []

0 commit comments

Comments
 (0)