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

feat(blueprint): include an instantiation object on the base blueprint #446

Merged
merged 4 commits into from
Jan 5, 2024

Conversation

alexforsyth
Copy link
Contributor

Issue

We'd like to surface the available instantiations on the base blueprint.

this can be accessed through the instantiation object on the project context

Description

What does this implement? Explain your changes.

Testing

See test blueprint

Additional context

Add any other context about the PR here.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -59,6 +59,9 @@ export class Blueprint extends Project {
name: process.env.CONTEXT_PROJECTNAME,
bundlepath: process.env.EXISTING_BUNDLE_ABS,
options: getOptions(path.join(process.env.EXISTING_BUNDLE_ABS || '', OPTIONS_FILE)),
blueprint: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should this be blueprints?

this.context.project.blueprint.instantiations

or

this.context.project.blueprints.instantiations

Copy link
Contributor

Choose a reason for hiding this comment

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

I think what you have makes sense since the ancestor is singular.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay fair enough

@@ -59,6 +59,9 @@ export class Blueprint extends Project {
name: process.env.CONTEXT_PROJECTNAME,
bundlepath: process.env.EXISTING_BUNDLE_ABS,
options: getOptions(path.join(process.env.EXISTING_BUNDLE_ABS || '', OPTIONS_FILE)),
blueprint: {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think what you have makes sense since the ancestor is singular.

@alexforsyth alexforsyth enabled auto-merge (squash) January 5, 2024 18:14
@alexforsyth alexforsyth merged commit 0b2e6c1 into aws:main Jan 5, 2024
3 checks passed
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