Constructs a new instance of the class.
the configuration object
the type of package
the object containing the paths
Protected
destthe destination folder
Protected
packagethe package type
the package info
Protected
tempthe temporary directory
Asynchronously clones a repository from a given URL to a specified directory.
The URL of the repository to clone.
A promise that resolves to the path of the cloned package on success, or rejects with an error on failure.
Downloads a package from a given URL and saves it to the target directory.
The URL of the package to download.
A promise that resolves when the package is successfully downloaded and saved, or rejects with an error.
Downloads a file from a given URL and extracts it to a specified destination.
The name of the file to be downloaded.
The URL from which the file will be downloaded.
A promise that resolves when the file is downloaded and extracted successfully.
Gets the destination folder based on the package type.
An array of paths.
The type of package ('plugin' or 'theme').
The destination folder path.
Generated using TypeDoc
Represents a WordPress package that can be installed and configured.