-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7129f3f
commit d668608
Showing
6 changed files
with
1,143 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ yarn-error.log* | |
pnpm-debug.log* | ||
lerna-debug.log* | ||
node_modules | ||
generated | ||
dist | ||
dist-ssr | ||
build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
overwrite: true | ||
schema: | ||
# TODO: Use backend/schema.graphql instead | ||
# NOTE: We may need both GRAPHQL_CODEGEN_ENDPOINT and backend/schema.graphql? | ||
- ${GRAPHQL_CODEGEN_ENDPOINT} | ||
- './schema.graphql' | ||
documents: | ||
- "src/**/*.tsx" | ||
- "src/**/*.ts" | ||
generates: | ||
./generated/types.ts: | ||
plugins: | ||
- "typescript" | ||
- "typescript-operations" | ||
./generated/schema.json: | ||
plugins: | ||
- "introspection" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
Both lint and build steps fail if `generated/type.tsx` is missing | ||
We generally genereate this file using graphql-codegen but graphql-codegen | ||
cannot always be used. | ||
In such cases, just copy this mock type.tsx to ensure that lint and build | ||
steps pass. | ||
NOTE: typecheck step still fails. | ||
*/ | ||
|
||
export type Query = { | ||
__typename?: 'Query'; | ||
}; | ||
|
||
export type Mutation = { | ||
__typename?: 'Mutation'; | ||
}; |
Oops, something went wrong.