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 |
- Source:
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 |
Members
-
pathConfig
-
Get path config
- Source:
Methods
-
<static> buildWatchPaths(paths, opt)
-
Build watch file list
Parameters:
Name Type Description pathsArray Path config optString Option path name - Source:
Returns:
- Type
- Array
-
checkDirectoryExists(path)
-
Check directory exists
Parameters:
Name Type Description pathString - Source:
Returns:
- Type
- boolean
-
clearPath(path)
-
Clear path
Parameters:
Name Type Description pathString Path for clear - Source:
Returns:
- Type
- Object
-
getRealPath(path, checkDestination, context, destination)
-
Get real path if exists
Parameters:
Name Type Description pathString Checking path checkDestinationBoolean Check path exists flag contextObject Context which called checking destinationBoolean Destination folder flag for correctly check exists folders - Source:
Returns:
- Type
- *
-
process()
-
Format path config
- Source:
Returns:
- Type
- Array
-
processFullPath(checkDestination, checkSource)
-
Generate full path and check existing
Parameters:
Name Type Description checkDestinationBoolean Check destination checkSourceBoolean Check source - Source:
Returns:
- Type
- Array