Copy source files to new destination and use that destination as new source (evacuated from NSA/Microsoft)
Klaas Cuvelier 2f135066cf Migrate to CircleCI 2.0 (#26) | 6 年之前 | |
---|---|---|
.circleci | 6 年之前 | |
example | 8 年之前 | |
lib | 6 年之前 | |
test | 8 年之前 | |
.eslintrc | 7 年之前 | |
.gitignore | 8 年之前 | |
CHANGELOG.md | 6 年之前 | |
LICENSE | 10 年之前 | |
README.md | 7 年之前 | |
index.js | 8 年之前 | |
package-lock.json | 6 年之前 | |
package.json | 6 年之前 |
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).
// gulpfile.js
var gulpCopy = require('gulp-copy');
var otherGulpFunction = require('gulp-other-function');
var sourceFiles = [ 'source1/*', 'source2/*.txt' ];
var destination = 'dest/';
return gulp
.src(sourceFiles)
.pipe(gulpCopy(outputPath, options))
.pipe(otherGulpFunction())
.dest(destination);
prefix
: integer, defining how many parts of the path (separated by /) should be removed from the original path
See changelog for all updates.