-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🧰 introduce apollo-tooling and apollo-cli #4153
Conversation
✅ Deploy Preview for apollo-android-docs canceled.
|
apollo-cli/apollo-kotlin.main.kts
Outdated
@file:Repository("https://repo.maven.apache.org/maven2/") | ||
@file:Repository("file://Users/mbonnin/.m2/repository") | ||
|
||
@file:DependsOn("com.apollographql.apollo3:apollo-cli:3.3.1-SNAPSHOT") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be updated when making a release right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH I'm not really sure where I'm going with this. It's just an easy way to call into the cli without having to manually download the jar and invoke java. I'm happy to remove it and we can look into packaging/distribution later.
apollo-cli/src/main/kotlin/com/apollographql/apollo3/cli/Main.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Benoit Lubek <[email protected]>
Co-authored-by: Benoit Lubek <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Shuffle a bit the dependencies:
apollo-ast
because they work with theapollo-ast
Schema. It's a bit of a stretch (this module should beapollo-language
or something like this) but I think it's okay.apollo-compiler
even though it was technically experimental before so we can certainly remove this before 4.0SchemaDownloader
,SchemaUploader
,RegisterOperations
go intoapollo-tooling
apollo-cli
andapollo-gradle-plugin
useapollo-tooling
to expose functionality either through Gradle or through the cliapollo-kotlin.main.kts
helper script that's an easy way to start the cli. It'd be interesting to ditribute it on sdkman, npm, or another package manager one of these days.