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) | il y a 6 ans | |
---|---|---|
.circleci | il y a 6 ans | |
example | il y a 8 ans | |
lib | il y a 6 ans | |
test | il y a 8 ans | |
.eslintrc | il y a 7 ans | |
.gitignore | il y a 8 ans | |
CHANGELOG.md | il y a 6 ans | |
LICENSE | il y a 10 ans | |
README.md | il y a 7 ans | |
index.js | il y a 8 ans | |
package-lock.json | il y a 6 ans | |
package.json | il y a 6 ans |
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.