Skip to content

Commit 6130417

Browse files
committed
initial react-hooks implementation
1 parent 79cb13d commit 6130417

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

demo/graphql-codegen-typescript.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,16 @@ generates:
4545
withInserts: true
4646
withUpdates: true
4747
withDeletes: true
48+
./src/autogen/hasura/ts-react-from-documents.ts:
49+
documents:
50+
- ./src/customFragments.ts
51+
plugins:
52+
- graphql-codegen-hasura-typescript-react-from-documents
53+
config:
54+
reactApolloVersion: 3
55+
typescriptCodegenOutputPath: "../"
56+
trimString:
57+
withQueries: true
58+
withInserts: false
59+
withUpdates: false
60+
withDeletes: false

lerna.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
"packages/graphql-codegen-hasura-gql-from-documents",
66
"packages/graphql-codegen-hasura-typescript-from-schema",
77
"packages/graphql-codegen-hasura-typescript-from-documents",
8+
"packages/graphql-codegen-hasura-typescript-react-from-documents",
89
"demo"
910
],
1011
"useWorkspaces": true,
1112
"npmClient": "yarn",
1213
"command": {
1314
"publish": {
14-
"ignoreChanges": [
15-
"*.md"
16-
]
15+
"ignoreChanges": ["*.md"]
1716
}
1817
}
1918
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"packages/graphql-codegen-hasura-gql-from-documents",
77
"packages/graphql-codegen-hasura-typescript-from-schema",
88
"packages/graphql-codegen-hasura-typescript-from-documents",
9+
"packages/graphql-codegen-hasura-typescript-react-from-documents",
910
"demo"
1011
]
1112
},

packages/shared/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * from './gqlInjectors';
22
export * from './helperInjectors';
3+
export * from './reactInjectors';
34
export * from './utils';

0 commit comments

Comments
 (0)