Class: PathBuild

PathBuild

{PathBuild} Prepare paths helper

new PathBuild(pathConfig, defaultOutFolder, options, arrDestination)

PathBuild constructor
Parameters:
Name Type Description
pathConfig Object | Array
defaultOutFolder String | undefined
options Object | undefined Default path config option
arrDestination Boolean If false, set src array or dest as array otherwise
Properties:
Name Type Description
pathConfig Object | Array Path config
originalConfig Object Original config
defaultOutPath String Default out dir
distDir String Distributive config default dit
outDir String Output config default dir
destinationArray Boolean If false, set src array or dest as array otherwise
Author:
  • Donii Sergii<doniysa@gmail.com>
Source:

Members


pathConfig

Get path config
Author:
  • Donii Sergii<doniysa@gmail.com>
Source:

Methods


<static> buildWatchPaths(paths, opt)

Build watch file list
Parameters:
Name Type Description
paths Array Path config
opt String Option path name
Source:
Returns:
Type
Array

checkDirectoryExists(path)

Check directory exists
Parameters:
Name Type Description
path String
Author:
  • Donii Sergii<doniysa@gmail.com>
Source:
Returns:
Type
boolean

clearPath(path)

Clear path
Parameters:
Name Type Description
path String Path for clear
Author:
  • Donii Sergii<doniysa@gmail.com>
Source:
Returns:
Type
Object

getRealPath(path, checkDestination, context, destination)

Get real path if exists
Parameters:
Name Type Description
path String Checking path
checkDestination Boolean Check path exists flag
context Object Context which called checking
destination Boolean Destination folder flag for correctly check exists folders
Author:
  • Donii Sergii<doniysa@gmail.com>
Source:
Returns:
Type
*

process()

Format path config
Author:
  • Donii Sergii<doniysa@gmail.com>
Source:
Returns:
Type
Array

processFullPath(checkDestination, checkSource)

Generate full path and check existing
Parameters:
Name Type Description
checkDestination Boolean Check destination
checkSource Boolean Check source
Author:
  • Donii Sergii<doniysa@gmail.com>
Source:
Returns:
Type
Array