@skivvy/skivvy-package-copy
v0.1.4
Published
Copy files and folders
Downloads
1
Readme
Skivvy package: copy
Copy files and folders
Installation
skivvy install copy
Overview
This package allows you to copy files and folders from within the Skivvy task runner.
Included tasks
copy
Copy files and folders
Usage:
skivvy run copy
Configuration settings:
| Name | Type | Required | Default | Description |
| ---- | ---- | -------- | ------- | ----------- |
| source
| string
,Array
| Yes | N/A | Files/folders to copy |
| destination
| string
| Yes | N/A | Destination path |
| options
| object
| No | {}
| Copy options |
| options.overwrite
| boolean
| No | false
| Whether to overwrite destination files |
| options.dot
| boolean
| No | false
| Whether to copy files beginning with a .
|
| options.junk
| boolean
| No | false
| Whether to copy OS junk files (e.g. .DS_Store
, Thumbs.db
) |
| options.filter
| function
, RegExp
, string
, array
| No | null
| Filter function / regular expression / glob that determines which files to copy |
| options.rename
| function
| No | null
| Function that maps source paths to destination paths |
| options.transform
| function
| No | null
| Function that returns a transform stream used to modify file contents |