dub icon indicating copy to clipboard operation
dub copied to clipboard

Add extended globbing (extglob) to copyFiles

Open HuskyNator opened this issue 8 months ago • 0 comments
trafficstars

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)

HuskyNator avatar Mar 03 '25 16:03 HuskyNator