Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/epmgcipcnt 53 wave banner #37

Merged
merged 4 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CodegenConfig } from "@graphql-codegen/cli";
const config: CodegenConfig = {
schema: `${process.env.VITE_REACT_APP_BACKEND_URL}/graphql`,
// this assumes that all your source files are in a top-level `src/` directory - you might need to adjust this to your file structure
documents: ["src/queries/*.{ts,tsx}"],
documents: ["src/fragments/*.{ts,tsx}", "src/queries/*.{ts,tsx}"],
generates: {
"./src/__generated__/": {
preset: "client",
Expand All @@ -12,11 +12,13 @@ const config: CodegenConfig = {
enumsAsTypes: true,
extractAllFieldsToTypes: true,
preResolveTypes: true,
onlyOperationTypes: true
onlyOperationTypes: true,
noSchemaStitching: true,
},
presetConfig: {
gqlTagName: "gql",

documentNodeImportFragments: true,
fragmentMasking: false,
},
},
},
Expand Down
104 changes: 52 additions & 52 deletions package-lock.json

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

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
},
"dependencies": {
"@apollo/client": "^3.10.4",
"@strapi/blocks-react-renderer": "^1.0.1",
"@apollo/experimental-nextjs-app-support": "^0.11.0",
"@strapi/blocks-react-renderer": "^1.0.1",
"classcat": "^5.0.5",
"graphql": "^16.8.1",
"next": "14.2.5",
"next-intl": "^3.13.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-markdown": "^9.0.1",
"react-slick": "^0.30.2",
"rehype-raw": "^7.0.0",
"remark-gfm": "^4.0.0",
"next": "14.2.5",
"next-intl": "^3.13.0"
"remark-gfm": "^4.0.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/client-preset": "^4.2.6",
"@graphql-codegen/client-preset": "^4.3.2",
"@graphql-typed-document-node/core": "^3.2.0",
"@svgr/webpack": "^8.1.0",
"@types/graphql": "^14.5.0",
Expand All @@ -60,6 +60,6 @@
"lint-staged": "^15.2.5",
"prettier": "^3.3.3",
"sass": "^1.77.4",
"typescript": "^5.4.3"
"typescript": "^5.5.3"
}
}
26 changes: 23 additions & 3 deletions src/__generated__/fragment-masking.ts

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

Loading
Loading