Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Dec 8, 2022
1 parent c517e47 commit 4d3ca8a
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 29 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ yarn-1.18.0.js

# Local Netlify folder
.netlify

examples/*/yarn.lock
2 changes: 0 additions & 2 deletions examples/cm6-graphql-legacy-parcel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ GraphQL implementation with parcel bundler.

### Setup

1. `yarn` and `yarn build` at the root of this repository, if you have not
already.
1. `yarn` and `yarn start` from this folder to start parcel dev mode.
1. `yarn build` to find production ready files.
8 changes: 4 additions & 4 deletions examples/cm6-graphql-legacy-parcel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"dependencies": {
"@codemirror/basic-setup": "^0.20.0",
"@codemirror/language": "^0.20.0",
"codemirror-graphql": "file:../../packages/codemirror-graphql",
"graphql": "^16.4.0",
"typescript": "^4.6.3"
"codemirror-graphql": "^2.0.2",
"graphql": "^16.4.0"
},
"devDependencies": {
"parcel-bundler": "^1.12.4",
"worker-loader": "^2.0.0"
"worker-loader": "^2.0.0",
"typescript": "^4.6.3"
}
}
2 changes: 0 additions & 2 deletions examples/cm6-graphql-parcel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ GraphQL implementation with parcel bundler.

### Setup

1. `yarn` and `yarn build` at the root of this repository, if you have not
already.
1. `yarn` and `yarn start` from this folder to start parcel dev mode.
1. `yarn build` to find production ready files.
6 changes: 3 additions & 3 deletions examples/cm6-graphql-parcel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
"@codemirror/theme-one-dark": "6.0.0",
"@codemirror/view": "6.1.2",
"cm6-graphql": "0.0.1",
"graphql": "^16.4.0",
"typescript": "^4.6.3"
"graphql": "^16.4.0"
},
"devDependencies": {
"parcel": "^2.6.2",
"worker-loader": "^2.0.0"
"worker-loader": "^2.0.0",
"typescript": "^4.6.3"
},
"resolutions": {
"**/@codemirror/autocomplete": "6.0.0",
Expand Down
2 changes: 0 additions & 2 deletions examples/graphiql-create-react-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ This example demonstrates how to transpile your own custom ES6 and typescript Gr

### Setup

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
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-create-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.11-alpha.8",
"private": true,
"dependencies": {
"graphiql": "file:../../packages/graphiql",
"graphiql": "^2.2.0",
"graphql": "^16.4.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down
2 changes: 0 additions & 2 deletions examples/graphiql-parcel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ implementation with parcel bundler.

### Setup

1. `yarn` and `yarn build` at the root of this repository, if you have not
already.
1. `yarn` and `yarn start` from this folder to start parcel dev mode.
1. `yarn build` to find production ready files.
8 changes: 4 additions & 4 deletions examples/graphiql-parcel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
]
},
"dependencies": {
"graphiql": "file:../../packages/graphiql",
"graphiql": "^2.2.0",
"graphql": "^16.4.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"typescript": "^4.6.3"
"react-dom": "^17.0.2"
},
"devDependencies": {
"parcel": "^2.5.0",
"worker-loader": "^2.0.0"
"worker-loader": "^2.0.0",
"typescript": "^4.6.3"
}
}
4 changes: 1 addition & 3 deletions examples/graphiql-webpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ It appears `create-react-app` supports all the language features we require.

### Setup

1. `yarn` and `yarn build` and `yarn build-bundles` (to build css) at the root
of this repository, if you have not already.
1. `yarn start` from this folder to start webpack dev server
1. `yarn` and `yarn start` from this folder to start webpack dev server
4 changes: 1 addition & 3 deletions examples/monaco-graphql-react-vite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ This workspace could be used to help us prototype components & hooks for

## Setup

First, `yarn` in the root, and then `yarn build` in the root

Then, in this directory, you can just run `yarn start`
In this directory, you can just run `yarn` and `yarn start`
4 changes: 1 addition & 3 deletions examples/monaco-graphql-webpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ A simple example of `monaco-graphql` using webpack 4

### Setup

1. `yarn` and `yarn build` at the root of this repository, if you have not
already.
2. `yarn start` from this folder to start webpack dev server
`yarn` and `yarn start` from this folder to start webpack dev server

0 comments on commit 4d3ca8a

Please sign in to comment.