tasks/npmcopy.js
function convertMatches(files, options, dest) {
    return files.map(function(source) {
      return {
        src: source,
        dest: path.join(
          // Build a destination from the new source if no dest
          // was specified
          dest != null ? dest : path.dirname(source).replace(options.srcPrefix + sep, ''),
          path.basename(source)
        )
      }
    })
  }
function convertMatches(files, options, dest) {
    return files.map(function(source) {
      return {
        src: source,
        dest: path.join(
          // Build a destination from the new source if no dest
          // was specified
          dest != null ? dest : path.dirname(source).replace(options.srcPrefix + sep, ''),
          path.basename(source)
        )
      }
    })
  }
function convertMatches ( files , options , dest ) { return files . map ( function ( source ) { return { src : source , dest : path . join ( // Build a destination from the new source if no dest // was specified dest != null ? dest : path . dirname ( source ) . replace ( options . srcPrefix + sep , '' ) , path . basename ( source ) ) } } ) }
Convert an array of files sources to our format
@param {Array} files
@param {Object} options
@param {String} [dest] A folder destination for all of these sources
Convert an array of files sources to our format