feat: gitignore file as template within npm publish content #1111
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
Previously it was not possible to publish the gitignore file as npm has a black list files which will not be part of distribution. Now with renamed to be .template.gitignore and renaming action added to the application factory will allow the gitignore file to be part of the template.
This PR not only allows gitignore files but any file that the npm black list can be just renamed to .template.nameofile and the renaming action will recursively replace all names when creating the application template through the schematics but uploaded as the template name.
What is the current behavior?
Currently blacklisted files of npm like .gitignore cannot be published through the schematics. Currently this is solved through the nest-cli project by creating a sample .gitignore file through cli.
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information