Skip to content

Support multiple destinations in copy-files.js #1055

@darylcober

Description

@darylcober

I'm submitting a feature request

Current behavior:
The copy-files method only supports a single destination. Because the instruction list is normalized you cannot add duplicate destinations by copying the same file twice. My particular application requires some files to be copied to multiple locations for different builds. In order to achieve this I have to have multiple copy-file routines in my code base.

  • What is the expected behavior?

It would be beneficial to have the copy-files method accept an array of destinations for each instruction instead of a single string. The method would copy each file to each location in the instruction array, thus eliminating the need to replicate the copy-file routine.

  • What is the motivation / use case for changing the behavior?
    Increased flexibility in the build process, lower the need for hacks for special requirements, and a cleaner code base.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions