-
Notifications
You must be signed in to change notification settings - Fork 729
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
Move Code Generation From Bash to Swift Scripts #940
Conversation
38b397c
to
2b8b820
Compare
2b8b820
to
a1dca7c
Compare
5406eb2
to
0ede944
Compare
0ede944
to
d3e6ac4
Compare
9b571ff
to
5c09111
Compare
8552faa
to
7f2d3be
Compare
OK folks, I would love some feedback on all this. Hit me with your best shots! 🥊 |
Hi! I only looked at the docs part, but they look cool. Quite some setup, but then I could see this being long-term nice for a team (next time I'm on one doing GraphQL). Good idea! |
Yes! A big piece of the idea here is to make it way more seamless for me to work piecemeal on some major code generation changes, which are all eventually going to live in the |
(thought of a WAY easier way to get the sourceroot) |
import Foundation | ||
|
||
/// Bash command runner | ||
public struct Basher { |
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.
Great name!
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.
🔨 Thanks!
+100 to moving away from Bash. 🎉 |
…a download pages.
865e64a
to
af93d09
Compare
docs/source/api/ApolloCodegenLib/structs/ApolloCodegenOptions.md
Outdated
Show resolved
Hide resolved
Edits to Swift scripting article
It'll be a couple days before I ship this - I have some serious wrecking ball work to do with rearranging some code to get a couple things to work. |
This is explained in detail in #939, but at a basic level I'm sick of having so much untested bash code driving our code generation, so I'm moving a bunch of it to Swift.