0.1.0-alpha.11 • Published 4 years ago
@webscaffold/task-copy v0.1.0-alpha.11
@web-scaffold/task-copy
WEB Scaffold
task for copying up folders and files.
Install
$ npm install --save-dev @webscaffold/task-copy
Usage
const copy = require('@webscaffold/task-copy');
await copy(['source/*.png', '!source/goat.png'], 'destination');
This will copy all files from the folder.
The module uses cpy under the hood to copy the files.
API
copy(source, destination, options?)
Returns a Promise<string[]> with the destination file paths.
source
Type: string | string[]
Files to copy.
destination
Type: string
Destination directory.
options
Type: object
Options object that can be passed.
cpy
Type: object
Options are passed to globby.
In addition, you can specify the cpy options.
taskName
Type: string
Default: copy
Task name that will be used by the logger to namespace the logs.
taskColor
Type: string
Default: #B2DBBF
The color used by the logger to log to the console the task output.
Licensing
MIT © Radu Micu
0.1.0-alpha.11
4 years ago
0.1.0-alpha.10
4 years ago
0.1.0-alpha.9
4 years ago
0.1.0-alpha.8
5 years ago
0.1.0-alpha.7
5 years ago
0.1.0-alpha.6
5 years ago
0.1.0-alpha.5
5 years ago
0.1.0-alpha.4
5 years ago
0.1.0-alpha.3
5 years ago
0.1.0-alpha.2
5 years ago
0.1.0-alpha.1
5 years ago