Add production dependencies
This commit is contained in:
parent
5a0114f3e2
commit
579ccdc29f
12113 changed files with 978046 additions and 3 deletions
27
node_modules/gulp-copy/example/gulpfile.js
generated
vendored
Normal file
27
node_modules/gulp-copy/example/gulpfile.js
generated
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue