box2 icon indicating copy to clipboard operation
box2 copied to clipboard

Allow mapping one file to multiple destinations

Open JPry opened this issue 10 years ago • 2 comments

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"
            ]
        }
    ]

JPry avatar Oct 13 '14 22:10 JPry

This will be a good feature to add!

Adding it to the todo list.

ghost avatar Oct 15 '14 15:10 ghost

Adding a note to myself, this can be done using Phar::copy().

kherge avatar May 22 '15 15:05 kherge