gulp-copy-rex

1.2.5 • Public • Published

gulp-copy

Build Status npm version Downloads

Enables you to copy or transfer files on your gulp task (gulpfile.js).

Install

$ npm install --save-dev gulp-copy-rex

NPM

Usage

Can use this inside of your any gulp tasks or you can create a specific tasks for it.

var copy = require('gulp-copy-rex');
 
gulp.task('copy', function () {
 
    //array of files ~ array / object
    var files = [
   './node_modules/someVendors/vendors.js',
   './bower_components/someVendors2/vendors2.js',
   './bower_components/someVendors3/vendors3.js',
   ];
 
   or
 
   //single file ~ string
   var files = './bower_components/angular/angular.min.js';
 
    
    copy(files,'yourDestination/folder');
});
 

Using options as 3rd param ~ Minify and Concat files using gulp-uglify and gulp-concat (not applicable to CSS files)

    var opts = {
     min:true, //minify ~ default false
     concat:true, //concat ~ default false
     filename:'app' //set filename
    }
 
    copy(files, dist, opts);
});
 

Run Task

$ gulp copy

License

MIT © Rexon A. De los Reyes

Thanks and Enjoy. Goodspeed. ~ xrexonx

Package Sidebar

Install

npm i gulp-copy-rex

Weekly Downloads

3

Version

1.2.5

License

MIT

Last publish

Collaborators

  • xrexonx