Skip to content

Commit

Permalink
remove non-deploy preview examples from workspaces (#2039)
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Nov 23, 2021
1 parent 7e98c6f commit caed457
Show file tree
Hide file tree
Showing 10 changed files with 337 additions and 3,366 deletions.
2 changes: 1 addition & 1 deletion examples/cm6-graphql-parcel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ This example demonstrates how to transpile your own custom ES6 Codemirror 6 Grap
### Setup

1. `yarn` and `yarn build` at the root of this repository, if you have not already.
1. `yarn start` from this folder to start parcel dev mode.
1. `yarn` and `yarn start` from this folder to start parcel dev mode.
1. `yarn build` to find production ready files.
4 changes: 2 additions & 2 deletions examples/cm6-graphql-parcel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"dependencies": {
"@codemirror/basic-setup": "^0.19.0",
"@codemirror/stream-parser": "^0.19.2",
"codemirror-graphql": "^1.1.0",
"codemirror-graphql": "file:../../packages/codemirror-graphql",
"graphql": "16.0.0-experimental-stream-defer.5",
"typescript": "^3.4.4"
"typescript": "^4.1.3"
},
"devDependencies": {
"parcel-bundler": "^1.12.4",
Expand Down
20 changes: 0 additions & 20 deletions examples/graphiql-create-fetcher/src/index.jsx

This file was deleted.

4 changes: 2 additions & 2 deletions examples/graphiql-create-react-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ This example demonstrates how to transpile your own custom ES6 and typescript Gr

1. Run `yarn` at root of the repository to install the dependencies.
1. Run `yarn build && yarn build-bundles` at the root to build graphiql for import
2. `yarn start` from this folder to start `react-scripts` dev server.
3. `yarn build` from this folder to build production ready transpiled files using `react-scripts`. Find the output in `build` folder.
1. `yarn` and `yarn start` from this folder to start `react-scripts` dev server.
1. `yarn build` from this folder to build production ready transpiled files using `react-scripts`. Find the output in `build` folder.
2 changes: 1 addition & 1 deletion examples/graphiql-parcel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ This example demonstrates how to transpile your own custom ES6 GraphiQL implemen
### Setup

1. `yarn` and `yarn build` at the root of this repository, if you have not already.
1. `yarn start` from this folder to start parcel dev mode.
1. `yarn` and `yarn start` from this folder to start parcel dev mode.
1. `yarn build` to find production ready files.
3 changes: 2 additions & 1 deletion examples/graphiql-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"graphiql": "file:../../packages/graphiql",
"@graphiql/toolkit": "file:../../packages/graphiql-toolkit",
"graphql": "16.0.0-experimental-stream-defer.5",
"react": "17.0.2"
"react": "17.0.2",
"graphql-ws": "^5.5.5"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.8.3",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"workspaces": {
"packages": [
"packages/*",
"examples/*"
"examples/monaco-graphql-webpack",
"examples/graphiql-webpack"
]
},
"lint-staged": {
Expand Down
4 changes: 2 additions & 2 deletions packages/graphiql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@
"subscriptions-transport-ws": "0.11.0",
"ts-loader": "^7.0.0",
"typescript": "^4.1.3",
"webpack": "4.42.1",
"webpack": "^4.42.1",
"webpack-bundle-analyzer": "^3.6.1",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3",
"ws": ""
"ws": "^8.3.0"
}
}
2 changes: 1 addition & 1 deletion packages/graphiql/test/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ const TestSubscriptionType = new GraphQLObjectType({
},
async *subscribe(args) {
for (const hi of ['Hi', 'Bonjour', 'Hola', 'Ciao', 'Zdravo']) {
if (args?.delay) {
if (args.delay) {
await sleep(args.delay);
}
yield { message: hi };
Expand Down
3,659 changes: 324 additions & 3,335 deletions yarn.lock

Large diffs are not rendered by default.

2 comments on commit caed457

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.