4.0.1 • Published 6 years ago

gulp-copy v4.0.1

Weekly downloads
26,734
License
MIT
Repository
github
Last release
6 years ago

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.

@teamsqlio/ts-extension-sdk@phparkle/semantic-ui@mygooder/semanticslush-ui5dreadcast-operativefomantic-ui-semeia@infinitebrahmanuniverse/nolb-gulp-cfomantic-ui@everything-registry/sub-chunk-1805depot-librarydev361-front-buildersimple-framesimple-bundlersemantic-uisemantic-ui-happysemui-onyxsemantic-ui-xyzdustmansnaphy-web-themesn-semantic-uierror_reportelixir-copyem-project-deveng-semantic-uiss-summerstr8r-coredgines-boilerplatecyclone-shellsamesiesscaftsasdn-previewsasdnspark-buildslush-moduleearth-app@bspeare/uds@block-org/block-scriptscreate-amp-pagechronimi@arco-design/arco-scriptsbts-gulp-tasks@amocrm/styles@alicd/sugar@aiou/mariofinaeo-pattern-libraryfinance-document-lsstreebo-mobileformssurvivejssupermartianfear-core-buildtamingresin-emailsYworkshell@zhuxian/miniprogramangular-library-seed-og-testardiran-gulp-workflowarco-scriptsfluent-cssfedejex-bundlerubt-gulpgix-buildinggcli-reactgrrr-gulpfilegulp-drupal-stackgulp-config-docomo-digitalgulpwgulp-tasks-pleasuregulp-megulp-ractive-foundationvanilla-semantic-uiyummy-flowyulonghbuilderwordwindwalker-fusionwebgame-cliwe-farmsshexactmdx-cli@luca.pipolo/gulp-static-starterkit@mas.io/mas-cmp-clikpiplusmasterymodo-scriptsmobileformsmighty-form-validatorlinx-semantic-ui@hodzitsky/themeplifymoda-scripts@everymatrix/ubo-project-dev@evokegroup/str8r-core@evokegroup/str8r-core-multilang@pitcher/fomantic-ui@savchukoleksii/builder@otixo/semantic-ui@free-design/free-scripts@forhot2000/knockout-starterpresskite-semantic@startup-palace/pulp-js@franzzemen/gulp-base@the-utd/themeplify
4.0.1

6 years ago

4.0.0

6 years ago

1.1.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.2

10 years ago