This commit is contained in:
oitsjustjose 2017-02-26 17:06:42 -05:00
commit 6b60015c02
9588 changed files with 1149251 additions and 49 deletions

1
node_modules/gulp-copy/example/files/test-2.txt generated vendored Normal file
View file

@ -0,0 +1 @@
a 2nd test

1
node_modules/gulp-copy/example/files/test.txt generated vendored Normal file
View file

@ -0,0 +1 @@
some file

31
node_modules/gulp-copy/example/gulpfile.js generated vendored Normal file
View file

@ -0,0 +1,31 @@
var copy = require('../index');
var gulp = require('gulp');
var through = require('through2');
gulp.task('default', copyFunction);
function copyFunction ()
{
return gulp
.src([' ./files/.*', './files/*.*' ])
.pipe(copy('output/test', { prefix: 1 }))
.pipe(verify());
}
function verify ()
{
var options = { objectMode: true };
return through(options, write, end);
function write (file, enc, cb)
{
console.log('file', file.path);
cb(null, file);
}
function end (cb)
{
console.log('done');
cb();
}
}