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

Support ignore lists or include/exclude patterns #32

Open
fwextensions opened this issue Dec 23, 2023 · 2 comments
Open

Support ignore lists or include/exclude patterns #32

fwextensions opened this issue Dec 23, 2023 · 2 comments

Comments

@fwextensions
Copy link

There are likely to be a number of files in a repo that are used only for scaffolding tmplr, so it would be nice if there was a simple way of not copying them to the output directory. It's possible to use remove, but it somehow seems cleaner to not copy them in the first place.

@fwextensions
Copy link
Author

Maybe anything with tmplr in the filename could be ignored automatically, so a package.tmplr.json file could be used as a source for copying to an output file, but it would never be copied on its own.

@loreanvictor
Copy link
Owner

Wouldn't remove: **/*.tmplr.* achieve the same thing? In any case, such files aren't particularly copied over, they are cloned with the rest of the files and would need to be removed in the end.

Another solution, which is a bit more involved, would be to use temp directories. You could clone whatever files into a temp directory and only copy what you need from it. The whole directory would then be removed after the recipe has finished executing.

steps:
  - degit: user/repo
    to:
      eval: '{{ tmpdir.repo }}'
      
  ...

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

No branches or pull requests

2 participants