bin/support/file_system.js
/**
   *
   * @param {String} from read from folder
   * @param {String} to write to folder
   * @param {Array<String>} ignoredFolders folders to ignore with micromatch
   */
@param {String} from read from folder
@param {String} to write to folder
@param {Array} ignoredFolders folders to ignore with micromatch
@param { String } from read from folder @param { String } to write to folder @param { Array } ignoredFolders folders to ignore with micromatch
static copyFiles (from, to, ignoredFolders) {
    const copyOptions = {
      filter: (source, destination) => {
        const relativePath = _.last(source.split(from))
        const filesFoldersIgnored = mm([relativePath], ignoredFolders)
        const anyAreIgnored = filesFoldersIgnored.length <= 0
        return anyAreIgnored
      }
    }
    return new Promise((resolve) => {
      resolve(fs.copy(from, to, copyOptions).then((o) => {
        StatusLog.inform(`copied`, to)
        return o
      }))
    })
  }
static copyFiles ( from , to , ignoredFolders ) { const copyOptions = { filter : ( source , destination ) => { const relativePath = _ . last ( source . split ( from ) ) const filesFoldersIgnored = mm ( [ relativePath ] , ignoredFolders ) const anyAreIgnored = filesFoldersIgnored . length <= 0 return anyAreIgnored } } return new Promise ( ( resolve ) => { resolve ( fs . copy ( from , to , copyOptions ) . then ( ( o ) => { StatusLog . inform ( ` ` , to ) return o } ) ) } ) }
@param {String} from read from folder
 @param {String} to write to folder
 @param {Array<String>} ignoredFolders folders to ignore with micromatch
@param { String } from read from folder @param { String } to write to folder @param { Array<String > } ignoredFolders folders to ignore with micromatch