gulp-copy
Plugin copying files to a new destination and using that destination for other actions
Last updated 2 years ago by klaascuvelier .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-copy 
SYNC missed versions from official npm registry.

npm version build status

gulp-copy

Copy source files to new destination and use that destination as new source (for further piping). Automatically creates needed folders before proceeding. Ability to remove 'prefixes' from path.

Most likely you don't need this package for your gulp pipeline, a lot can be accomplished with just gulp.dest. A reason to use this package would be to keep some depth (prefix options).

Usage

// gulpfile.js

var gulpCopy = require('gulp-copy');
var otherGulpFunction = require('gulp-other-function');
var sourceFiles = ['source1/*', 'source2/*.txt'];
var destination = 'dest/';
var outputPath = 'some-other-dest/';

return gulp
    .src(sourceFiles)
    .pipe(gulpCopy(outputPath, options))
    .pipe(otherGulpFunction())
    .dest(destination);

Options

prefix: integer, defining how many parts of the path (separated by /) should be removed from the original path

Example

A simple implemention of a gulpfile using gulp-copy is available in the example folder. You can run gulp or npx gulp from within the folder.

Updates

See changelog for all updates.

Current Tags

  • 0.0.2                                ...           0.0.2 (6 years ago)
  • 4.0.1                                ...           latest (2 years ago)

6 Versions

  • 4.0.1                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           4 years ago
  • 0.0.2                                ...           6 years ago
Maintainers (1)
Downloads
Today 19
This Week 19
This Month 452
Last Day 18
Last Week 249
Last Month 1,004
Dependencies (3)
Dev Dependencies (4)
Dependents (136)

Copyright 2014 - 2016 © taobao.org |