Skip to content

Commit c922719

Browse files
add @graphiql/plugin-explorer package (#2715)
* add explorer plugin package * add `graphql` and `@graphiql/react` as properties in CDN bundle
1 parent 82c7aac commit c922719

File tree

25 files changed

+366
-294
lines changed

25 files changed

+366
-294
lines changed

.changeset/mean-dancers-visit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphiql/plugin-explorer': minor
3+
---
4+
5+
Add a package that exports a plugin to use the GraphiQL Explorer from OneGraph

.changeset/thirty-eyes-behave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphiql': patch
3+
---
4+
5+
Add the contents of `graphql` and `@graphiql/react` as static properties to the `GraphiQL` component in CDN bundles so that these modules can be reused from plugin CDN bundles.

examples/graphiql-explorer/index.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

examples/graphiql-explorer/package.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/graphiql-explorer/src/customArgs.ts

Lines changed: 0 additions & 84 deletions
This file was deleted.

examples/graphiql-explorer/src/graphiql-explorer.d.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/graphiql-explorer/src/main.tsx

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/graphiql-explorer/src/vite-env.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/graphiql-explorer/vite.config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"workspaces": {
77
"packages": [
88
"packages/*",
9-
"examples/graphiql-explorer",
109
"examples/graphiql-webpack",
1110
"examples/monaco-graphql-webpack",
1211
"examples/monaco-graphql-react-vite"
@@ -33,14 +32,15 @@
3332
"npm": "please_use_yarn_instead"
3433
},
3534
"scripts": {
36-
"build": "yarn build:clean && yarn build:packages && yarn build:graphiql-react && yarn build:graphiql",
35+
"build": "yarn build:clean && yarn build:packages && yarn build:graphiql-react && yarn build:graphiql-plugin-explorer && yarn build:graphiql",
3736
"build-bundles": "yarn prebuild-bundles && wsrun -p -m -s build-bundles",
3837
"build-bundles-clean": "rimraf '{packages,examples,plugins}/**/{bundle,cdn,webpack}' && yarn workspace graphiql run build-bundles-clean",
3938
"build-clean": "wsrun -m build-clean ",
4039
"build-demo": "wsrun -m -s build-demo",
4140
"build-docs": "rimraf 'packages/graphiql/typedoc' && typedoc 'packages'",
4241
"build:clean": "yarn tsc --clean && yarn tsc --clean resources/tsconfig.graphiql.json",
4342
"build:graphiql": "yarn tsc resources/tsconfig.graphiql.json",
43+
"build:graphiql-plugin-explorer": "yarn workspace @graphiql/plugin-explorer run build",
4444
"build:graphiql-react": "yarn workspace @graphiql/react run build",
4545
"build:packages": "yarn tsc",
4646
"build:watch": "yarn tsc --watch",

0 commit comments

Comments
 (0)