Skip to content
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
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ jobs:
CI: true
- name: Generate and Diff Codegen Artifacts
run: |
EXAMPLE_TYPE=normal pnpm examples:codegen
pnpm examples:codegen
git diff --exit-code -- examples/
- name: Build Examples
run: |
EXAMPLE_TYPE=normal pnpm examples:build
pnpm examples:build
- name: End2End Test Examples
run: |
EXAMPLE_TYPE=normal pnpm examples:test:end2end
pnpm examples:test:end2end

# TODO: Remove all SWC test setup and references as that has been moved to https://github.com/swc-project/plugins/tree/main/contrib/graphql-codegen-client-preset
# dev-tests-swc:
Expand Down
1 change: 1 addition & 0 deletions examples/persisted-documents-string-mode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@babel/preset-env": "7.29.5",
"@babel/preset-typescript": "7.28.5",
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@graphql-typed-document-node/core": "3.2.0"
},
"bob": false
Expand Down
2 changes: 2 additions & 0 deletions examples/react/apollo-client-defer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"dependencies": {
"@apollo/client": "3.14.1",
"@graphql-typed-document-node/core": "3.2.0",
"@graphql-yoga/plugin-defer-stream": "3.21.0",
"graphql": "16.14.0",
"graphql-yoga": "5.21.0",
Expand All @@ -21,6 +22,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@types/node": "24.12.4",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/apollo-client-swc-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "example-apollo-client-swc-plugin",
"name": "rust-example-apollo-client-swc-plugin",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions examples/react/apollo-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@types/node": "24.12.4",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
Expand Down
1 change: 1 addition & 0 deletions examples/react/http-executor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@types/node": "24.12.4",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/nextjs-swr/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "example-react-nextjs-swr",
"name": "rust-example-react-nextjs-swr",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions examples/react/tanstack-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@types/node": "24.12.4",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
Expand Down
1 change: 1 addition & 0 deletions examples/react/urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "6.0.2",
Expand Down
3 changes: 2 additions & 1 deletion examples/typescript-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"graphql": "16.14.0"
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*"
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*"
},
"bob": false
}
1 change: 1 addition & 0 deletions examples/typescript-graphql-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"tsx": "4.22.0"
},
"bob": false
Expand Down
1 change: 1 addition & 0 deletions examples/vite/vite-react-cts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"cypress": "15.15.0",
Expand Down
1 change: 1 addition & 0 deletions examples/vite/vite-react-mts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"cypress": "15.15.0",
Expand Down
1 change: 1 addition & 0 deletions examples/vite/vite-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"cypress": "15.15.0",
Expand Down
1 change: 1 addition & 0 deletions examples/vue/apollo-composable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@vitejs/plugin-vue": "6.0.7",
"cypress": "15.15.0",
"serve": "14.2.6",
Expand Down
1 change: 1 addition & 0 deletions examples/vue/urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@vitejs/plugin-vue": "6.0.7",
"cypress": "15.15.0",
"serve": "14.2.6",
Expand Down
1 change: 1 addition & 0 deletions examples/vue/villus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"devDependencies": {
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@vitejs/plugin-vue": "6.0.7",
"cypress": "15.15.0",
"serve": "14.2.6",
Expand Down
1 change: 1 addition & 0 deletions examples/yoga-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@babel/preset-env": "7.29.5",
"@babel/preset-typescript": "7.28.5",
"@graphql-codegen/cli": "workspace:*",
"@graphql-codegen/client-preset": "workspace:*",
"@graphql-typed-document-node/core": "3.2.0"
},
"bob": false
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"dev-test:watch": "pnpm --filter=\"dev-test*\" watch",
"dev-test:watch:cjs": "pnpm --filter=\"dev-test*\" watch:cjs",
"dev-test:watch:esm": "pnpm --filter=\"dev-test*\" watch:esm",
"examples:build": "set -o xtrace && eval $(node scripts/print-example-ci-command.js build)",
"examples:codegen": "set -o xtrace && eval $(node scripts/print-example-ci-command.js codegen)",
"examples:test:end2end": "set -o xtrace && eval $(node scripts/print-example-ci-command.js test:end2end)",
"examples:build": "pnpm --filter=\"example-*\" build",
"examples:codegen": "pnpm --filter=\"example-*\" codegen",
"examples:test:end2end": "pnpm --filter=\"example-*\" --workspace-concurrency=1 test:end2end",
"fix-bins": "node scripts/fix-bin.js",
"postinstall": "husky install",
"lint": "eslint --cache .",
Expand Down
56 changes: 52 additions & 4 deletions pnpm-lock.yaml

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

Loading
Loading