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

Add automatic integration configuration #2014

Merged

Conversation

JordonPhillips
Copy link
Contributor

@JordonPhillips JordonPhillips commented Oct 20, 2023

This adds a configuration step for integrations, allowing them to use smithy-build.json settings that aren't used by the generator that they target.

Generators using the node mapper helper for their settings will have this set for free. Others will need to grab it themselves.

FAQ

Why not just have integration drive configuration through traits

Yes that's the ideal but some things just don't make sense as traits. For example, a trait that controls whether a documentation generator scans your system for the presence of a build tool and all the other dependencies you need doesn't make sense as a trait.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@JordonPhillips JordonPhillips requested a review from a team as a code owner October 20, 2023 17:33
This adds a configuration step for integrations, allowing them to use
`smithy-build.json` settings that aren't used by the generator that
they target.

Generators using the node mapper helper for their settings will have
this set for free. Others will need to grab it themselves.
@JordonPhillips JordonPhillips merged commit 441bdd8 into smithy-lang:main Oct 24, 2023
@JordonPhillips JordonPhillips deleted the configure-integrations branch October 24, 2023 15:33
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.

3 participants