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

Write extension sources into an Extensions subdirectory #141

Merged
merged 2 commits into from
Aug 15, 2022

Conversation

liamnichols
Copy link
Member

When testing the 0.1 generator out, I decided that I wasn't quite a fan on having extensions left in the top-level of the output directory since it made things look a little messy and disorganised.

Instead, I'm proposing that we nest them in their own directory named Extensions to keep things a little more organised.

Before After
Before After

I also think this aligns a bit better with how other generators work, for example the openapi-generator does this (for Android):

Screenshot 2022-08-14 at 22 36 54

WDYT @LePips? When generating with mergeSources, they'll continue to be embedded inside Paths.swift and Entities.swift

@liamnichols liamnichols self-assigned this Aug 14, 2022
@LePips
Copy link
Contributor

LePips commented Aug 14, 2022

Think it looks good 👍

@liamnichols liamnichols merged commit 0748247 into main Aug 15, 2022
@liamnichols liamnichols deleted the ln/extension-subdirectory branch August 15, 2022 07:39
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.

2 participants