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-c@everything-registry/sub-chunk-1805create-amp-pagecyclone-shellem-project-deverror_reporteng-semantic-uifear-core-buildfedefinaeo-pattern-libraryfinance-document-lselixir-copyearth-appfluent-cssgulp-config-docomo-digitalgulp-drupal-stackgulp-megrrr-gulpfilegcli-reactgulp-ractive-foundationgulp-tasks-pleasuregulpwgix-buildingdepot-librarydev361-front-builderdgines-boilerplatedustmanhexactpresskite-semantickpiplusjex-bundlermighty-form-validatormobileformslinx-semantic-uimdx-climoda-scriptsmasterymodo-scriptsresin-emailssasdnsasdn-previewscaftsamesiessemantic-ui-xyzsemui-onyxsemantic-uisemantic-ui-happysimple-framespark-buildss-summerstr8r-coresimple-bundlerslush-modulesnaphy-web-themesn-semantic-uistreebo-mobileformssupermartiansurvivejstamingubt-gulpvanilla-semantic-uiwe-farmsswebgame-cliwindwalker-fusionyummy-flowyulonghbuilderword@pitcher/fomantic-ui@startup-palace/pulp-jsYworkshell@everymatrix/ubo-project-dev@evokegroup/str8r-core@evokegroup/str8r-core-multilang@luca.pipolo/gulp-static-starterkit@savchukoleksii/builder@alicd/sugar@bspeare/uds@arco-design/arco-scripts@otixo/semantic-uiarco-scriptsardiran-gulp-workflow@free-design/free-scripts@franzzemen/gulp-base@the-utd/themeplify@forhot2000/knockout-starterangular-library-seed-og-test2create-task-runner-package@aiou/mario@zhuxian/miniprogram@amocrm/styles@block-org/block-scripts@mas.io/mas-cmp-clibts-gulp-taskschronimi@hodzitsky/themeplify
4.0.1

6 years ago

4.0.0

6 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

8 years ago

0.0.2

10 years ago