Skip to content

Inspired by laravel-elixir's copy() method. ~12062015

License

Notifications You must be signed in to change notification settings

xrexonx/gulp-copy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Inspired by laravel-elixir's copy() method. ~12062015

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published