asyncapi / generator

Use your AsyncAPI definition to generate literally anything. Markdown documentation, Node.js code, HTML documentation, anything!
https://asyncapi.com/docs/tools/generator
Apache License 2.0
767 stars 232 forks source link

feat: enable noOverwriteGlobs for templates based on react engine #1234

Closed lmgyuan closed 3 months ago

lmgyuan commented 3 months ago

Description Description

add noOverwriteGlobs parameters to methods saveContentToFile and saveRenderedReactContent pass this.noOverwriteGlobs to saveContentToFile check the name of file to be written against the noOverwriteGlobs to determine whether it should be actually written to the target directory add additional comments to relevant codes in the codebase so they are easier for future maintainers and contributors to understand.

Related issue(s)

Fixes https://github.com/asyncapi/generator/issues/1128

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: 4a1f332fe9cdcacfc61ec50884496dde2829b272

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------- | ----- | | @asyncapi/generator | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

lmgyuan commented 3 months ago

Updates added. Suggestions resolved.

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

derberg commented 3 months ago

/rtm