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: Add JavaScript code generation. #2

Merged
merged 15 commits into from
May 20, 2024
Merged

Conversation

kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Apr 29, 2024

Add javascript code generation and package definition.

Should be reviewed after scaffold PR.

*
* This function will automatically include the log code.
*/
export function configuration_usageWarning_proxyTlsAuth(): string {
Copy link
Member Author

Choose a reason for hiding this comment

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

I went with a less-elegant code generation style. The nested static classes and methods had a nice interface, but were not suitable for client-side JS because they cannot be tree shaken.

Making each export a function should result in optimal tree-shaking or client-side SDKs.

@@ -0,0 +1 @@
tool/
Copy link
Member Author

Choose a reason for hiding this comment

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

We don't need to publish the tool source to the package.

@kinyoklion kinyoklion marked this pull request as ready for review April 29, 2024 22:41
@kinyoklion kinyoklion requested a review from a team April 29, 2024 22:41
Base automatically changed from rlamb/scaffold-implementation to main May 20, 2024 21:25
@kinyoklion kinyoklion merged commit c974057 into main May 20, 2024
@kinyoklion kinyoklion deleted the rlamb/add-js-generation branch May 20, 2024 21: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.

None yet

2 participants