Consolidate sources to a destination.
Install with yarn
yarn add consolidator
import {
consolidate,
consolidateGlobToFile,
consolidateFilesToFile,
consolidateFileToFile
} from 'consolidator'
sources
{String}
glob patterndestination
{String}
file path
consolidate('sources/*', 'destination/consolidated')
sources
{Array}
file pathsdestination
{String}
file path
consolidate(
['sources/source', 'other-sources/source'],
'destination/consolidated'
)
sources
{String}
glob patterndestination
{String}
file path
consolidateGlobToFile('sources/*', 'destination/consolidated')
sources
{Array}
file pathsdestination
{String}
file path
consolidateFilesToFile(
['sources/source', 'other-sources/source'],
'destination/consolidated'
)
source
{String}
file pathdestination
{String}
file path
consolidateFileToFile('sources/source', 'destination/consolidated')