Closed loreanvictor closed 1 year ago
Could be worth looking at https://github.com/sindresorhus/cpy-cli and https://github.com/sindresorhus/cpy. I'm really interested in the glob features, it would simplify making templates a lot.
@tommy-mitchell mirroring the behavior sounds like a good idea. we could copy the structure after the first occurrence of a glob star (**
). I will implement this behavior in tmplr-core
, which should then automatically be reflected in the final tmplr
package as well.
closed by e95e067 (tmplr@0.2.3
).
Follow up of this thread,
copy
should support glob patterns similar toupdate
(andremove
, after this is merged).Open questions:
copy x/y/**/*.js -> w/
treatx/y/t/w.js
?copy *.tmpl.md -> *.md
? This perhaps could not support all facets of extended glob, would it be confusing if it worked with a further limited scope?