index.js
function copy(copiesMap, projectsPath, buildPath) {
            return _.map(copiesMap, function(dstPath, srcPath) {
                if (/\/$/.test(dstPath)) {
                    //copy directory
                    return gulp.src(path.join(projectsPath, srcPath))
                        .pipe(gulp.dest(path.join(buildPath, dstPath)));
                } else {
                    //copy file
                    return gulp.src(path.join(projectsPath, srcPath))
                        .pipe(gulpRename(dstPath))
                        .pipe(gulp.dest(buildPath));
                };
            });
        }
function copy(copiesMap, projectsPath, buildPath) {
            return _.map(copiesMap, function(dstPath, srcPath) {
                if (/\/$/.test(dstPath)) {
                    //copy directory
                    return gulp.src(path.join(projectsPath, srcPath))
                        .pipe(gulp.dest(path.join(buildPath, dstPath)));
                } else {
                    //copy file
                    return gulp.src(path.join(projectsPath, srcPath))
                        .pipe(gulpRename(dstPath))
                        .pipe(gulp.dest(buildPath));
                };
            });
        }
function copy ( copiesMap , projectsPath , buildPath ) { return _ . map ( copiesMap , function ( dstPath , srcPath ) { if ( / \/$ / . test ( dstPath ) ) { //copy directory return gulp . src ( path . join ( projectsPath , srcPath ) ) . pipe ( gulp . dest ( path . join ( buildPath , dstPath ) ) ) ; } else { //copy file return gulp . src ( path . join ( projectsPath , srcPath ) ) . pipe ( gulpRename ( dstPath ) ) . pipe ( gulp . dest ( buildPath ) ) ; } ; } ) ; }
copying for other projects
copying for other projects