gulp-copy-rex
v1.2.5
Published
Inspired by laravel-elixir's copy() method. ~12062015
Downloads
20
Maintainers
Readme
gulp-copy
Enables you to copy or transfer files on your gulp task (gulpfile.js).
Install
$ npm install --save-dev gulp-copy-rex
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