Skip to content

Commit

Permalink
Set up GraphQL TypeScript client (#586)
Browse files Browse the repository at this point in the history
Co-authored-by: Check Git Status Bot <172423145+check-git-status-bot[bot]@users.noreply.github.com>
  • Loading branch information
CatChen and check-git-status-bot[bot] authored Aug 4, 2024
1 parent 01ab868 commit ec67585
Show file tree
Hide file tree
Showing 21 changed files with 117,992 additions and 44 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/**/* linguist-generated
bundle/**/* linguist-generated
src/__graphql__/**/* linguist-generated
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
- name: Install dependencies
run: yarn

- name: Codegen
run: yarn codegen

- name: Reformat
run: |
yarn prettier --write .
Expand Down
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ src/
tests/
eslint.config.js
tsconfig.json
codegen.ts
schema.graphql
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"yaml.schemas": {
"https://json.schemastore.org/github-action.json": "action.yml",
"https://json.schemastore.org/github-funding.json": ".github/FUNDING.yml",
Expand Down
19 changes: 19 additions & 0 deletions bundle/__graphql__/fragment-masking.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions bundle/__graphql__/gql.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ec67585

Please sign in to comment.