Skip to content

Commit

Permalink
Added codegen config
Browse files Browse the repository at this point in the history
  • Loading branch information
lfades committed Dec 30, 2020
1 parent 9f0cbe2 commit bedc6cd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions codegen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"schema": {
"https://buybutton.store/graphql": {
"headers": {
"Authorization": "Bearer xzy"
}
}
},
"documents": [
{
"./framework/bigcommerce/api/**/*.ts": {
"noRequire": true
}
}
],
"generates": {
"./framework/bigcommerce/schema.d.ts": {
"plugins": ["typescript", "typescript-operations"]
},
"./framework/bigcommerce/schema.graphql": {
"plugins": ["schema-ast"]
}
},
"hooks": {
"afterAllFileWrite": ["prettier --write"]
}
}

0 comments on commit bedc6cd

Please sign in to comment.