Skip to content

Commit

Permalink
feat(codegen): add basic codegen config
Browse files Browse the repository at this point in the history
  • Loading branch information
bchrobot committed Sep 26, 2019
1 parent b73805e commit 845f008
Show file tree
Hide file tree
Showing 3 changed files with 1,448 additions and 38 deletions.
24 changes: 24 additions & 0 deletions codegen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
generates:
./src/lib/lookup/types.d.ts:
schema:
- https://numbers.assemble.live/graphql:
headers:
token: ${ASSEMBLE_AUTH_TOKEN}
plugins:
- typescript

# TODO:
# ./src/lib/lookup/types.d.ts:
# schema:
# - https://numbers.assemble.live/lookup/graphql:
# headers:
# token: ${ASSEMBLE_AUTH_TOKEN}
# plugins:
# - typescript
# ./src/lib/sms/types.d.ts:
# schema:
# - https://numbers.assemble.live/sms/graphql:
# headers:
# token: ${ASSEMBLE_AUTH_TOKEN}
# plugins:
# - typescript
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"keywords": [],
"scripts": {
"describe": "npm-scripts-info",
"generate": "dotenv graphql-codegen",
"build": "run-s clean && run-p build:*",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
Expand Down Expand Up @@ -55,11 +56,15 @@
"superagent-graphql": "^0.1.2"
},
"devDependencies": {
"@graphql-codegen/cli": "^1.7.0",
"@graphql-codegen/typescript": "^1.7.0",
"@types/superagent": "^4.1.3",
"ava": "1.0.0-beta.7",
"codecov": "^3.1.0",
"cz-conventional-changelog": "^2.1.0",
"dotenv-cli": "^2.0.1",
"gh-pages": "^2.0.1",
"graphql": "^14.5.8",
"npm-run-all": "^4.1.5",
"nyc": "^13.1.0",
"opn-cli": "^4.0.0",
Expand Down
Loading

0 comments on commit 845f008

Please sign in to comment.