Skip to content

Commit

Permalink
add script to generate types for GraphQL; generate new types (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcmannus-kibo authored and kibo-kevinwatts committed Sep 10, 2021
1 parent 508e7d9 commit d1715e8
Show file tree
Hide file tree
Showing 4 changed files with 2,138 additions and 365 deletions.
6 changes: 6 additions & 0 deletions packages/api-client/codegen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
overwrite: true
schema: "https://t17194-s21127.dev10.kubedev.kibo-dev.com/graphql"
generates:
src/types/GraphQL.ts:
plugins:
- "typescript"
7 changes: 5 additions & 2 deletions packages/api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"prepublish": "yarn build",
"test": "jest",
"update:check": "ncu",
"update:update": "ncu -u"
"update:update": "ncu -u",
"generate-types": "graphql-codegen --config codegen.yml"
},
"dependencies": {
"@vue-storefront/core": "~2.4.1",
Expand All @@ -23,7 +24,9 @@
},
"devDependencies": {
"rollup-plugin-typescript2": "^0.30.0",
"@rollup/plugin-node-resolve": "^13.0.0"
"@rollup/plugin-node-resolve": "^13.0.0",
"@graphql-codegen/cli": "2.1.1",
"@graphql-codegen/typescript": "2.1.2"
},
"files": [
"lib/**/*"
Expand Down
Loading

0 comments on commit d1715e8

Please sign in to comment.