Skip to content

Commit 23adfc3

Browse files
authored
more readme improvements, fix json whitespace issue causing changeset bug (#29)
1 parent 3b1f0b3 commit 23adfc3

File tree

10 files changed

+575
-263
lines changed

10 files changed

+575
-263
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: yarn
2727

2828
- name: Create Release Pull Request or Publish to npm
29-
uses: changesets/action@master
29+
uses: changesets/action@v1
3030
with:
3131
# this expects you to have a script called release which does a build for your packages and calls changeset publish
3232
publish: yarn release

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# relay-graphql-js
22

3-
Relay tooling based on graphql-js
3+
Relay compatible tooling based on `graphql-js`
44

5+
- [`@relay-graphql-js/graphql-config`](packages/graphql-config/) - a compatibility layer to use relay with `graphql-config` and thus `vscode-graphql` and other tools that use `graphql-config`
6+
- [`vscode-apollo-relay`](packages/vscode-apollo-relay/) - a relay-enabled compatibility layer for `vscode-apollo` and other tools which use `apollo-config`
7+
8+
These compatibility layers ares all built on `@relay-graphql-js/validation-rules`, the retirement home of the legacy [`graphql-js`](https://github.com/graphql/graphql-js) compatible validation rules

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"format": "prettier --write packages/*/{src,tests}/*"
2121
},
2222
"devDependencies": {
23-
"@changesets/cli": "^2.11.0",
23+
"@changesets/cli": "^2.24.1",
24+
"@changesets/changelog-github": "^0.4.6",
2425
"@types/jest": "^26.0.14",
2526
"@types/node": "^12.7.4",
2627
"@types/relay-compiler": "^8.0.0",
@@ -36,8 +37,5 @@
3637
"tslint": "^6.1.3",
3738
"tslint-plugin-prettier": "^2.3.0",
3839
"typescript": "^4.0.3"
39-
},
40-
"dependencies": {
41-
"@changesets/changelog-github": "^0.4.6"
4240
}
4341
}

packages/graphql-config/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
[![npm](https://img.shields.io/npm/v/vscode-apollo-relay.svg)](https://www.npmjs.com/package/vscode-apollo-relay)
44
[![build](https://img.shields.io/travis/relay-tools/vscode-apollo-relay/master.svg)](https://travis-ci.org/relay-tools/vscode-apollo-relay/builds)
55

6-
Simple configuration for [`graphql-config`](https://graphql-config.com) compatibility for Relay projects.
6+
This provides a simple configuration to may relay config to [`graphql-config`](https://graphql-config.com).
77

88
Features:
99

10-
- Read all user configuration from [relay-config], if the project is setup with it.
10+
- Reads user configuration from [relay-config], if the project is setup with it.
1111
- Provides definitions for all Relay directives for validation and auto-completion purposes.
1212
- Provides validation of `@argumentDefinitions` and `@arguments` directives.
1313
- uses your locally installed `graphql` version!
14+
- multiple environments are not supported yet but are coming soon!
1415

1516
[Changelog](https://github.com/relay-tools/relay-graphql-js/blob/master/packages/graphql-config/CHANGELOG.md)
1617

@@ -43,6 +44,12 @@ const { config } = require("@relay-graphql-js/graphql-config").generateConfig()
4344
module.exports = config
4445
```
4546

47+
48+
## Why you might want to use this
49+
50+
Simply for tooling interoperability, if nothing else.
51+
52+
4653
## Limitations
4754

4855
This _does not_ support relay environments => `graphql-config` projects, _yet_. Open a PR if you want it to!

packages/graphql-config/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@relay-graphql-js/graphql-config",
33
"version": "0.1.0",
4-
"description": "full graphql config for relay graphql",
4+
"description": "graphql-config compatibility layer for your relay project",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"homepage": "https://github.com/relay-tools/relay-graphql-js/blob/main/packages/graphql-config#readme",
@@ -17,5 +17,6 @@
1717
},
1818
"devDependencies": {
1919
"graphql-config": "^3.0.3"
20-
}
20+
},
21+
"keywords": ["graphql", "relay", "graphql-config", "vscode-graphql"]
2122
}

packages/validation-rules/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The retirement home of the original `relay-compiler` rules, which are `graphql-js` compatible.
2+
3+
All the libraries in this project use these rules to provide a compatibility layer for relay outside of the relay official tooling.

packages/validation-rules/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@relay-graphql-js/validation-rules",
33
"version": "0.1.0",
4-
"description": "shared validation rules for graphql-js parser",
4+
"description": "shared relay validation rules for graphql-js parser",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"homepage": "https://github.com/relay-tools/relay-graphql-js/blob/main/packages/validation-rules#readme",
@@ -17,5 +17,6 @@
1717
},
1818
"peerDependencies": {
1919
"graphql": ">= 14 < 16"
20-
}
20+
},
21+
"keywords": ["relay", "graphql", "graphql-js", "validation"]
2122
}

packages/vscode-apollo-relay/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = {
5959
}
6060
```
6161

62-
### Compat
62+
### Compatibility
6363

6464
If you are still using the compatibility mode of Relay you can enable additional validation rules that only apply to Relay compat. `generateConfig` takes a `compat` boolean argument to enable these extra validation rules. Ie:
6565

packages/vscode-apollo-relay/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscode-apollo-relay",
33
"version": "1.6.0",
4-
"description": "Simple configuration of vscode-apollo for Relay projects.",
4+
"description": "Compatibility layer to use relay config with vscode-apollo and other apollo config tools",
55
"keywords": [
66
"apollo",
77
"graphql",

0 commit comments

Comments
 (0)