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: enable noOverwriteGlobs for templates based on react engine #1227

Closed

Conversation

lmgyuan
Copy link
Collaborator

@lmgyuan lmgyuan commented Jul 3, 2024

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 #1128

@lmgyuan lmgyuan changed the title Fix no overwrite globs 1128 monorepo Feat: Fix no overwrite globs 1128 monorepo Jul 3, 2024
@lmgyuan lmgyuan changed the title Feat: Fix no overwrite globs 1128 monorepo feat: Fix no overwrite globs 1128 monorepo Jul 3, 2024
@lmgyuan lmgyuan changed the title feat: Fix no overwrite globs 1128 monorepo feat: fix no overwrite globs 1128 monorepo Jul 3, 2024
@derberg derberg changed the title feat: fix no overwrite globs 1128 monorepo feat: enable noOverwriteGlobs for templates based on react engine Jul 15, 2024
Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

@lmgyuan please have a look on the PR title, how I changed it - it is always very important to have good meaningful titles as we use them as commit messages and they help a lot long term, with maintenance, when digging into history - bug hunting 😄

also please remove .idea from that PR - add it to .gitignore later

although I think you didn't update the PR after our last meeting

@lmgyuan lmgyuan requested a review from derberg July 24, 2024 07:52
Copy link

sonarcloud bot commented Jul 24, 2024

@derberg
Copy link
Member

derberg commented Jul 29, 2024

@lmgyuan you need to solve conflicts

@lmgyuan lmgyuan closed this Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Archive
Development

Successfully merging this pull request may close these issues.

noOverwriteGlobs will not work in majority of cases in templates using react
2 participants