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

Allow the template containing directory to be excluded from the output path #32

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

edwilde
Copy link

@edwilde edwilde commented May 14, 2021

Currently when a template is output, the directory within the template directory is automatically added to the output path. This means you can't use it to output templates where the output directory is the root and sub-folders are ./src and ./test for example.

The optional excludeDirectory config parameter adds the ability to not output the template directory in the output path. Which means the library can be used on a much more diverse set of codebases.

If the project requires two folders created at the root level `templatePath: ".templates/Example/", outputPath: "."` then we don't want 'Example' being created as a new folder, just the folder contents should be copied.
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

1 participant