Type object
Schema URL https://catalog.lintel.tools/schemas/schemastore/grunt-copy-task/_shared/latest--grunt-task.json
Parent schema grunt-copy-task
Type: object

Properties

options object

Definitions

dynamic object
src string[] required

Pattern(s) to match, relative to the 'cwd'.

minItems=1uniqueItems=true
expand boolean

Must be set to true to use properties other than 'src' and 'dest'

Default: false
cwd string

All 'src' matches are relative to (but don't include) this path

dest string

Destination path prefix.

ext string

Replace any existing extension with this value in generated 'dest' paths.

extDot enum

Used to indicate where the period indicating the extension is located.

Default: "first"
Values: "first" "last"
filter enum

The 'filter' property can help you target files with a greater level of detail

Values: "isFile" "isDirectory" "isBlockDevice" "isCharacterDevice" "isSymbolicLink" "isFIFO" "isSocket"
flatten boolean

Remove all path parts from generated 'dest' paths

Default: false
matchBase boolean

If set, patterns without slashes will be matched against the basename of the path if it contains slashes. For example, 'a?b' would match the path '/xyz/123/acb', but not '/xyz/acb/123'.

Default: false
nonull boolean

If set to 'true' then the operation will include non-matching patterns. Combined with grunt's '--verbose' flag, this option can help debug file path issues.

Default: false
rename string

This function is called for each matched 'src' file, (after extension renaming and flattening).

fileFormat
files object | dynamic[]