Skip to content

Commit

Permalink
fix: SB-879 Fix download schema script (pull request #536)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleszcz committed Mar 13, 2023
1 parent 9281dc2 commit ea55336
Show file tree
Hide file tree
Showing 10 changed files with 3,259 additions and 5,025 deletions.
3,299 changes: 1,228 additions & 2,071 deletions packages/webapp/graphql/schema/api.graphql.chunk

Large diffs are not rendered by default.

659 changes: 292 additions & 367 deletions packages/webapp/graphql/schema/contentful.graphql.chunk

Large diffs are not rendered by default.

3,441 changes: 1,538 additions & 1,903 deletions packages/webapp/graphql/schema/schema.graphql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"ua-parser-js": "^1.0.32"
},
"devDependencies": {
"@apollo/rover": "^0.12.2",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
"@formatjs/cli": "^5.1.3",
Expand Down Expand Up @@ -144,7 +145,6 @@
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.0.0",
"eslint-plugin-testing-library": "^5.9.1",
"get-graphql-schema": "^2.1.2",
"graphql-cli": "^4.1.0",
"graphql-schema-utilities": "^1.1.4",
"inquirer-directory": "^2.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/webapp/scripts/download-graphql-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ rm -f ./src/shared/services/contentful/__generated/hooks.ts
rm -f ./src/shared/services/graphqlApi/__generated/types.ts
rm -f ./src/shared/services/graphqlApi/__generated/hooks.ts

node ./node_modules/.bin/get-graphql-schema "$CONTENTFUL_URL" > graphql/schema/contentful.graphql
node ./node_modules/.bin/get-graphql-schema "$API_URL" > graphql/schema/api.graphql
./node_modules/.bin/rover graph introspect "$CONTENTFUL_URL" --output graphql/schema/contentful.graphql
./node_modules/.bin/rover graph introspect "$API_URL" --output graphql/schema/api.graphql

function wrap_chunk_module() {
service_name=$1
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

395 changes: 66 additions & 329 deletions packages/webapp/src/shared/services/graphqlApi/__generated/types.ts

Large diffs are not rendered by default.

Large diffs are not rendered by default.

85 changes: 64 additions & 21 deletions pnpm-lock.yaml

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

0 comments on commit ea55336

Please sign in to comment.