UNPKG

421 BJavaScriptView Raw
1
2///@ts-check
3'use strict';
4var gulp = require('gulp');
5var size = require('../log/size');
6
7var TITLE = 'copy:';
8
9/**
10 *
11 * @param {string} dist
12 * @param {string|string[]} file
13 * @param {string} src
14 */
15function copy(dist, file, src) {
16 return gulp.src(file, src ? { base: src } : undefined)
17 .pipe(gulp.dest(dist))
18 .pipe(size({ title: TITLE, showFiles: true }))
19 ;
20}
21
22module.exports = copy;
\No newline at end of file