Copy source files to new destination and use that destination as new source (for further piping). Automatically creates needed folders before proceeding. Ability to remove 'prefixes' from path.
Most likely you don't need this package for your gulp pipeline, a lot can be accomplished with just
A reason to use this package would be to keep some depth (prefix options).
// gulpfile.jsvar gulpCopy = ;var otherGulpFunction = ;var sourceFiles = 'source1/*' 'source2/*.txt';var destination = 'dest/';var outputPath = 'some-other-dest/';return gulp;
prefix: integer, defining how many parts of the path (separated by /) should be removed from the original path
A simple implemention of a gulpfile using
gulp-copy is available in the example folder.
You can run
npx gulp from within the folder.
See changelog for all updates.