box2
box2 copied to clipboard
Allow mapping one file to multiple destinations
I would like the ability to map a single file to multiple locations upon build. For example, this is what the json file might look like:
"map": [
{
"src/some/file/config.inc": "vendor/some/path/config-mapped.php",
"src/some/file/config.inc": "vendor/other/path/config-mapped.php"
}
]
Currently, the second mapping above will override the first one.
Alternatively, the map could have an array of multiple locations, like this:
"map": [
{
"src/some/file/config.inc": [
"vendor/some/path/config-mapped.php",
"vendor/other/path/config-mapped.php"
]
}
]
This will be a good feature to add!
Adding it to the todo list.
Adding a note to myself, this can be done using Phar::copy()
.