-
Notifications
You must be signed in to change notification settings - Fork 0
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
Comments
Maybe anything with |
Wouldn't 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 }}'
... |
Semi related issue but, I've found that it's overwriting my |
yeah I think this is a bug, specifically here in @tmplr/node: if (remote.startsWith('local:')) {
const path = this.absolute(remote.slice(6))
await cp(path, abs, { recursive: true })
} else {
const emitter = tiged(remote, {
subgroup: options?.subgroup ?? false,
cache: false,
force: true
})
await emitter.clone(abs)
} basically, the code will copy the target folder if it is local, but clone it if it is a repo using tiged, in the latter case p.s. @lintong this might also be a good first issue if you want to take a shot at it 😉 |
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.The text was updated successfully, but these errors were encountered: