1.2.5 • Published 8 years ago

gulp-copy-rex v1.2.5

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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

1.2.5

8 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago