Skip to content
This repository was archived by the owner on Sep 2, 2020. It is now read-only.

Commit 99c23d4

Browse files
RomanHotsiyasiandrummer
authored andcommitted
Switch to graphql-config (#130)
* Remove internal graphql-language-service-config * Switch to graphql-config * review fixes * include/exclude -> includes/excludes * Update to latest graphql-config
1 parent 8c80d45 commit 99c23d4

File tree

32 files changed

+172
-738
lines changed

32 files changed

+172
-738
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ before_install:
77
- node resources/hoistDependencies.js
88
- mkdir -p node_modules
99
- (cd node_modules && ln -s ../packages/graphql-language-service-types)
10-
- (cd node_modules && ln -s ../packages/graphql-language-service-config)
1110
- (cd node_modules && ln -s ../packages/graphql-language-service-parser)
1211
- (cd node_modules && ln -s ../packages/graphql-language-service-interface)
1312
- (cd node_modules && ln -s ../packages/graphql-language-service-server)

README.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,7 @@ The library includes a node executable file which you can find in `./node_module
3535

3636
### GraphQL configuration file (`.graphqlconfig`)
3737

38-
GraphQL Language Service, to provide its full feature set, will need to know some information about your GraphQL development environment. `.graphqlconfig` is a GraphQL configuration file that contains this information.
39-
```
40-
{
41-
"projects": {
42-
"product-name": {
43-
"includeDirs": [
44-
"/dir/paths/to/your/graphql/files"
45-
],
46-
"excludeDirs": [
47-
"/dir/paths/to/ignore/"
48-
],
49-
"schemaPath": "/path/to/the/schema/" // supports `.graphql` IDL or `.json` file
50-
}
51-
}
52-
}
53-
```
54-
`.graphqlconfig` can define mutliple configurations for each GraphQL environment, should you have more than one.
55-
56-
The GraphQL configurations will be used to perform two things in a nutshell:
57-
58-
1. Using `includeDirs` and `excludeDirs`, cache all fragment definitions per each product. This information will be used to compute dependencies between GraphQL queries and fragments.
59-
2. Using `schemaPath`, build and cache `GraphQLSchema`s (per product). The schema will be used to perform query validations, autocomplete suggestions etc.
60-
61-
Also, if GraphQL Language Service receives an RPC message that contains the path of the file being operated on, `includDirs` and `excludeDirs` are used to determine which product configuration the file is associated with. Refer to [GraphQLConfig class](https://github.com/graphql/graphql-language-service/blob/master/packages/graphql-language-service-config/src/index.js) for more information.
38+
Check out [graphql-config](https://github.com/graphcool/graphql-config)
6239

6340
### Using the command-line interface
6441

package-lock.json

Lines changed: 66 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"babel-polyfill": "6.16.0",
4242
"fb-watchman": "^2.0.0",
4343
"graphql": "^0.10.5",
44-
"graphql-language-service-config": "0.0.18",
44+
"graphql-config": "~1.0.0",
4545
"graphql-language-service-interface": "0.0.22",
4646
"graphql-language-service-parser": "0.0.16",
4747
"graphql-language-service-server": "0.0.34",

packages/graphql-language-service-config/.babelrc

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

packages/graphql-language-service-config/.npmignore

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

packages/graphql-language-service-config/README.md

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

packages/graphql-language-service-config/package.json

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

0 commit comments

Comments
 (0)