Skip to content
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

Merged
merged 99 commits into from
Feb 19, 2020
Merged

Conversation

designatednerd
Copy link
Contributor

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.

@designatednerd designatednerd force-pushed the swift-codegen branch 2 times, most recently from 38b397c to 2b8b820 Compare December 16, 2019 20:56
@designatednerd designatednerd force-pushed the swift-codegen branch 2 times, most recently from 5406eb2 to 0ede944 Compare January 4, 2020 00:54
@designatednerd designatednerd force-pushed the swift-codegen branch 4 times, most recently from 9b571ff to 5c09111 Compare February 7, 2020 21:21
@designatednerd designatednerd force-pushed the swift-codegen branch 7 times, most recently from 8552faa to 7f2d3be Compare February 17, 2020 19:12
@designatednerd designatednerd marked this pull request as ready for review February 17, 2020 21:45
@designatednerd designatednerd changed the title [DRAFT] Move Code Generation From Bash to Swift Scripts Move Code Generation From Bash to Swift Scripts Feb 17, 2020
@designatednerd
Copy link
Contributor Author

OK folks, I would love some feedback on all this. Hit me with your best shots! 🥊

@sgoodwin
Copy link

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!

@designatednerd
Copy link
Contributor Author

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 ApolloCodegenLib library.

@designatednerd
Copy link
Contributor Author

(thought of a WAY easier way to get the sourceroot)

import Foundation

/// Bash command runner
public struct Basher {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great name!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔨 Thanks!

@bleege
Copy link

bleege commented Feb 18, 2020

+100 to moving away from Bash. 🎉

@designatednerd designatednerd merged commit bbd3730 into master Feb 19, 2020
@designatednerd designatednerd added this to the 0.23.0 milestone Feb 19, 2020
@designatednerd
Copy link
Contributor Author

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.

@designatednerd designatednerd deleted the swift-codegen branch February 27, 2020 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants