-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from jimkyndemeyer/v2
Apply v2 to master
- Loading branch information
Showing
622 changed files
with
27,964 additions
and
13,382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<plugins> | ||
<plugin id="com.intellij.lang.jsgraphql" url="https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/blob/v2/alpha-releases/JS%20GraphQL-2.0.0-end-of-beta.zip?raw=true" version="2.0.0-end-of-beta"/> | ||
</plugins> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
buildscript { | ||
repositories { | ||
maven { url 'https://jitpack.io'} | ||
} | ||
dependencies{ | ||
classpath "com.github.JetBrains:gradle-grammar-kit-plugin:2018.3" | ||
} | ||
} | ||
|
||
plugins { | ||
id 'org.jetbrains.intellij' version '0.4.4' | ||
id "de.undercouch.download" version "3.4.3" | ||
id "com.github.ManifestClasspath" version "0.1.0-RELEASE" | ||
} | ||
|
||
group 'com.intellij.lang.jsgraphql' | ||
version '2.0.0' | ||
|
||
apply plugin: 'java' | ||
|
||
sourceCompatibility = 1.8 | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compile ("com.graphql-java:graphql-java:11.0") { | ||
exclude group: "org.reactivestreams", module: "reactive-streams" | ||
exclude group: "com.graphql-java", module: "java-dataloader" | ||
exclude group: "org.slf4j", module: "slf4j-api" | ||
} | ||
compile "commons-io:commons-io:2.6" | ||
compile "com.atlassian.commonmark:commonmark:0.12.1" | ||
compile group: 'org.yaml', name: 'snakeyaml', version: '1.21' | ||
|
||
testCompile group: 'junit', name: 'junit', version: '4.12' | ||
} | ||
|
||
intellij { | ||
version '2018.2' | ||
type 'IU' | ||
updateSinceUntilBuild = false | ||
pluginName 'JS GraphQL' | ||
plugins = ['JavaScriptLanguage', 'CSS'] | ||
ideaDependencyCachePath = project.buildDir | ||
} | ||
|
||
runIde { | ||
jvmArgs '-Xmx2G' | ||
} | ||
|
||
patchPluginXml { | ||
|
||
} | ||
|
||
sourceSets { | ||
|
||
main.java.srcDirs = ['src/main', 'gen'] | ||
main.resources.srcDir 'resources' | ||
|
||
test.java.srcDirs = ['src/test'] | ||
test.resources.srcDir 'test-resources' | ||
|
||
} | ||
|
||
apply plugin: 'org.jetbrains.grammarkit' | ||
|
||
// import is optional to make task creation easier | ||
import org.jetbrains.grammarkit.tasks.* | ||
|
||
// GraphQL Parser and Lexer | ||
task generateGraphQLLexer(type: GenerateLexer) { | ||
source 'src/grammars/GraphQLLexer.flex' | ||
targetDir 'gen/com/intellij/lang/jsgraphql/' | ||
targetClass 'GraphQLLexer' | ||
purgeOldFiles = true | ||
} | ||
|
||
task generateGraphQLParser(type: GenerateParser) { | ||
source "src/grammars/GraphQLParser.bnf" | ||
targetRoot = 'gen/' | ||
purgeOldFiles = true | ||
pathToParser = 'com/intellij/lang/jsgraphql/GraphQLParser' | ||
pathToPsiRoot = 'com/intellij/lang/jsgraphql/psi' | ||
} | ||
|
||
// GraphQL Endpoint Parser and Lexer | ||
task generateGraphQLEndpointLexer(type: GenerateLexer) { | ||
source 'src/grammars/JSGraphQLEndpointLexer.flex' | ||
targetDir 'gen/com/intellij/lang/jsgraphql/endpoint/lexer/' | ||
targetClass 'JSGraphQLEndpointLexer' | ||
purgeOldFiles = true | ||
} | ||
|
||
task generateGraphQLEndpointParser(type: GenerateParser) { | ||
source "src/grammars/JSGraphQLEndpointParser.bnf" | ||
targetRoot = 'gen/' | ||
purgeOldFiles = true | ||
pathToParser = 'com/intellij/lang/jsgraphql/endpoint/parser/JSGraphQLEndpointParser' | ||
pathToPsiRoot = 'com/intellij/lang/jsgraphql/endpoint/psi' | ||
} | ||
|
||
|
||
// GraphQL Endpoint Doc Parser and Lexer | ||
task generateGraphQLEndpointDocLexer(type: GenerateLexer) { | ||
source 'src/grammars/JSGraphQLEndpointDocLexer.flex' | ||
targetDir 'gen/com/intellij/lang/jsgraphql/endpoint/doc/lexer/' | ||
targetClass 'GraphQLLexer' | ||
purgeOldFiles = true | ||
} | ||
|
||
task generateGraphQLEndpointDocParser(type: GenerateParser) { | ||
source "src/grammars/JSGraphQLEndpointDocParser.bnf" | ||
targetRoot = 'gen/' | ||
purgeOldFiles = true | ||
pathToParser = 'com/intellij/lang/jsgraphql/endpoint/doc/JSGraphQLEndpointDocParser' | ||
pathToPsiRoot = 'com/intellij/lang/jsgraphql/endpoint/doc/psi' | ||
} | ||
|
||
task downloadMinimatchNashorn(type: Download) { | ||
src 'https://raw.githubusercontent.com/jimkyndemeyer/minimatch-nashorn/1.0.1/dist/minimatch-nashorn.js' | ||
dest 'resources/META-INF' | ||
overwrite false | ||
} | ||
|
||
compileJava { | ||
dependsOn downloadMinimatchNashorn | ||
dependsOn generateGraphQLEndpointLexer | ||
dependsOn generateGraphQLEndpointParser | ||
dependsOn generateGraphQLEndpointDocLexer | ||
dependsOn generateGraphQLEndpointDocParser | ||
dependsOn generateGraphQLLexer | ||
dependsOn generateGraphQLParser | ||
} | ||
|
||
compileJava.options.encoding = 'UTF-8' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.