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 Oct 1, 2019
1 parent dbddf5a commit 019ad83
Show file tree
Hide file tree
Showing 6 changed files with 2,974 additions and 45 deletions.
19 changes: 19 additions & 0 deletions codegen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
generates:
./src/generated/lookup-graphql.ts:
schema:
- https://numbers.assemble.live/lookup/graphql:
headers:
token: ${ASSEMBLE_AUTH_TOKEN}
# documents:
# - './src/lib/lookup/mutation.ts'
plugins:
- typescript
- typescript-operations
./src/generated/sms-graphql.ts:
schema:
- https://numbers.assemble.live/sms/graphql:
headers:
token: ${ASSEMBLE_AUTH_TOKEN}
plugins:
- typescript
- typescript-operations
7 changes: 7 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 @@ -49,17 +50,23 @@
"node": ">=8.9"
},
"dependencies": {
"graphql-tag": "^2.10.1",
"lodash": "^4.17.14",
"sha.js": "^2.4.11",
"superagent": "^5.1.0",
"superagent-graphql": "^0.1.2"
},
"devDependencies": {
"@graphql-codegen/cli": "^1.7.0",
"@graphql-codegen/typescript": "^1.7.0",
"@graphql-codegen/typescript-operations": "^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 019ad83

Please sign in to comment.