Skip to content

Commit e39cbf1

Browse files
committed
Initial commit
1 parent 72e4af6 commit e39cbf1

File tree

108 files changed

+8495
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+8495
-0
lines changed

.gitignore

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
*.class
2+
3+
# plugin output
4+
out
5+
js-graphql-intellij-plugin.jar
6+
7+
# Mobile Tools for Java (J2ME)
8+
.mtj.tmp/
9+
10+
# Package Files #
11+
*.jar
12+
*.war
13+
*.ear
14+
15+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
16+
hs_err_pid*
17+
18+
# =========================
19+
# Operating System Files
20+
# =========================
21+
22+
# OSX
23+
# =========================
24+
25+
.DS_Store
26+
.AppleDouble
27+
.LSOverride
28+
29+
# Thumbnails
30+
._*
31+
32+
# Files that might appear in the root of a volume
33+
.DocumentRevisions-V100
34+
.fseventsd
35+
.Spotlight-V100
36+
.TemporaryItems
37+
.Trashes
38+
.VolumeIcon.icns
39+
40+
# Directories potentially created on remote AFP share
41+
.AppleDB
42+
.AppleDesktop
43+
Network Trash Folder
44+
Temporary Items
45+
.apdisk
46+
47+
# Windows
48+
# =========================
49+
50+
# Windows image file caches
51+
Thumbs.db
52+
ehthumbs.db
53+
54+
# Folder config file
55+
Desktop.ini
56+
57+
# Recycle Bin used on file shares
58+
$RECYCLE.BIN/
59+
60+
# Windows Installer files
61+
*.cab
62+
*.msi
63+
*.msm
64+
*.msp
65+
66+
# Windows shortcuts
67+
*.lnk
68+
.idea/dictionaries/*
69+
.idea/workspace.xml
70+
.idea/uiDesigner.xml
71+
.idea/vcs.xml
72+
resources/META-INF/dist/

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

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

.idea/copyright/profiles_settings.xml

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

.idea/encodings.xml

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

.idea/misc.xml

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

.idea/modules.xml

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

DEVELOPING.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Developing
2+
3+
## Setting up the Plugin SDK
4+
- Add all jars in `<intellij home>/plugins/JavaScriptLanguage`
5+
- Add the NodeNS.jar in `<user home>/.IntelliJIdea15/config/plugins/NodeJS/lib`
6+
- Add the IntelliLang.jar in `<user home>/.IntelliJIdea15/config/plugins/IntelliLang/lib`
7+
8+
## Setting up Intellij Community (OpenApi) sources:
9+
- https://github.com/JetBrains/intellij-plugins/tree/master/Dart
10+
11+
## Run-configuration options for interacting with the language service
12+
By default the plugin uses the language service in `META-INF/dist/js-graphql-language-service.dist.js`.
13+
14+
During plugin development there are two options for working directly with the language service source files:
15+
16+
### Option 1: Let IntelliJ start the language service directly from its server.js file
17+
18+
```
19+
-Djsgraphql.debug=true
20+
-Djsgraphql.debug.languageServiceDistFile=<git directory>/js-graphql-language-service/bin/server.js
21+
```
22+
23+
### Option 2: Let intelliJ connect to an already running language service instance
24+
25+
This run-configuration setup enabled debugging of the language service source code.
26+
27+
```
28+
-Djsgraphql.debug=true
29+
-Djsgraphql.debug.languageServiceUrl=http://localhost:3000/js-graphql-language-service
30+
```
31+
32+
Note that no process handler console view is available since the plugin isn't responsible for running the Node.js process.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Jim Kynde Meyer
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# JS GraphQL IntelliJ Plugin
2+
3+
GraphQL language support including Relay.QL tagged templates in JavaScript and TypeScript.
4+
5+
It provides the following features in IntelliJ IDEA and WebStorm:
6+
7+
- Schema-aware completion and error highlighting
8+
- Syntax highlighting, code-formatting, folding, commenter, and brace-matching
9+
- Configurable GraphQL schema retrieval and reloading based on a local file or a url using 'then-request'
10+
- View and browse the schema documentation in-editor using Ctrl/Cmd+Click or the documentation tool window
11+
- Execute queries with variables against configurable endpoints
12+
13+
It depends on [js-graphql-language-service](https://github.com/jimkyndemeyer/js-graphql-language-service) that it manages using a Node.js process handler.
14+
15+
## Features demo
16+
17+
![](docs/js-graphql-webstorm-demo.gif)
18+
19+
## FAQ
20+
21+
**How do I reload a GraphQL Schema that was loaded from a URL?**
22+
23+
In the the GraphQL tool window, select the "Current Errors" tab and click the "Restart JS GraphQL Language Service" button.
24+
25+
## License
26+
MIT

0 commit comments

Comments
 (0)