Skip to content

Add extended globbing (extglob) to copyFiles #3001

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

Open
HuskyNator opened this issue Mar 3, 2025 · 0 comments
Open

Add extended globbing (extglob) to copyFiles #3001

HuskyNator opened this issue Mar 3, 2025 · 0 comments

Comments

@HuskyNator
Copy link

Add extended globbing to the copyFiles parameter.

This allows creating simpler and more effective globs.
One simple example is given below.


Example;
Assuming one wants to copy all files at root to a build folder, a simple "*" will not work.
The following will copy the current project to the build folder, which itself will do the same (etc etc), each time coppying itself. (no clue what the limit is)

dub.json:

...
"copyFiles": ["*"],
"targetPath": "build",

Solution eg.: !(dub.json)

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

1 participant