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

Adds Code Files in TypeScript #3321

Merged
merged 18 commits into from
Sep 21, 2023
Merged

Adds Code Files in TypeScript #3321

merged 18 commits into from
Sep 21, 2023

Conversation

rkodev
Copy link
Contributor

@rkodev rkodev commented Sep 19, 2023

fixes #2116

Adds code files that groups factories , serializers, deserializers and models into 1 file.

Sample output microsoft/kiota-samples#3644

@rkodev rkodev requested a review from a team as a code owner September 19, 2023 08:01
@rkodev rkodev force-pushed the feat/ts-add-codefiles branch from ffcc816 to e682053 Compare September 19, 2023 08:26
Copy link
Member

@andrueastman andrueastman left a comment

Choose a reason for hiding this comment

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

Thanks for this.
We also probably need to

  • double check failing CI check
  • add changelog entry

src/Kiota.Builder/CodeDOM/CodeFile.cs Outdated Show resolved Hide resolved
src/Kiota.Builder/CodeDOM/CodeNamespace.cs Outdated Show resolved Hide resolved
src/Kiota.Builder/CodeRenderers/TypeScriptCodeRenderer.cs Outdated Show resolved Hide resolved
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

@rkodev CI seems to be failing, can you have a look before we review please?
Also, sorry about that, my PR about auto-generated comments was merged ahead of yours, resulting in conflicts.
We can keep most of my code changes, as the comments are only added for the elements when the parent is a code namespace (to avoid duplication). You'll only need to replicate the changes for code file as well.

src/Kiota.Builder/CodeDOM/CodeNamespace.cs Outdated Show resolved Hide resolved
src/Kiota.Builder/Refiners/TypeScriptRefiner.cs Outdated Show resolved Hide resolved
src/Kiota.Builder/Refiners/TypeScriptRefiner.cs Outdated Show resolved Hide resolved
src/Kiota.Builder/Refiners/TypeScriptRefiner.cs Outdated Show resolved Hide resolved
@rkodev rkodev force-pushed the feat/ts-add-codefiles branch from c4d4fee to 727a414 Compare September 19, 2023 21:44
src/Kiota.Builder/CodeDOM/CodeFile.cs Outdated Show resolved Hide resolved
src/Kiota.Builder/Refiners/TypeScriptRefiner.cs Outdated Show resolved Hide resolved
src/Kiota.Builder/Refiners/TypeScriptRefiner.cs Outdated Show resolved Hide resolved
src/Kiota.Builder/CodeDOM/CodeFile.cs Outdated Show resolved Hide resolved
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes!

@rkodev rkodev enabled auto-merge (squash) September 21, 2023 07:36
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

88.7% 88.7% Coverage
0.0% 0.0% Duplication

@rkodev rkodev merged commit 2cc6dc6 into main Sep 21, 2023
181 checks passed
@rkodev rkodev deleted the feat/ts-add-codefiles branch September 21, 2023 07:48
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.

TypeScript - Club code to create lesser number of files < 65K
3 participants