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

Generate NodeJS SDK from schema #1151

Merged
merged 44 commits into from
Jun 9, 2020
Merged

Conversation

lblackstone
Copy link
Member

Proposed changes

Switch NodeJS code generation over to upstream codegen packages based on the schema.

Related issues (optional)

Fixes #1053

@lblackstone lblackstone requested a review from pgavlin June 5, 2020 22:46
Comment on lines +169 to +170
files["path.ts"] = mustLoadFile(filepath.Join(templateDir, "path.ts"))
files["tests/path.ts"] = mustLoadFile(filepath.Join(templateDir, "tests", "path.ts"))
Copy link
Member Author

Choose a reason for hiding this comment

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

@pgavlin These two files are not part of the user-facing SDK (i.e. I don't want them in the top level index.ts. This has the side-effect of not including them in the package.json list of files. Is this ok, or do you have another suggestion?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I think that's okay. I think our JS doc generator relies upon public surface area being in package.json, but sounds like this is not public surface area. I don't know of anything else that relies on the files list in package.json

Copy link
Member

@pgavlin pgavlin left a comment

Choose a reason for hiding this comment

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

LGTM aside from your open question.

@lblackstone lblackstone merged commit baa5a9f into master Jun 9, 2020
@pulumi-bot pulumi-bot deleted the lblackstone/ts-schema-gen branch June 9, 2020 17:25
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.

Move NodeJS SDK to schema codegen
3 participants