BuildCleaner
Remove the builded files for the project and/or an specific target.
Constructor Summary
| Public Constructor | ||
| public |
constructor(appLogger: Logger, cleaner: clean, pathUtils: PathUtils, projectConfiguration: ProjectConfigurationSettings, utils: Utils) Class constructor. |
|
Member Summary
| Public Members | ||
| public |
A local reference for the |
|
| public |
A local reference for the |
|
| public |
A local reference for the |
|
| public |
All the project settings. |
|
| public |
A local reference for the |
|
Method Summary
| Public Methods | ||
| public |
Removes the entire distribution directory (where are the targets build are located). |
|
| public |
cleanTarget(target: Target): Promise<undefined, Error> Removes the builded files of an specific target. |
|
Public Constructors
public constructor(appLogger: Logger, cleaner: clean, pathUtils: PathUtils, projectConfiguration: ProjectConfigurationSettings, utils: Utils) source
Class constructor.
Params:
| Name | Type | Attribute | Description |
| appLogger | Logger | Used to inform the user when files haven been removed of it there was a problem removing them. |
|
| cleaner | clean | The function that removes directories and files using glob patterns. |
|
| pathUtils | PathUtils | Necessary to build the paths to clean. |
|
| projectConfiguration | ProjectConfigurationSettings | To read the project information and get paths. |
|
| utils | Utils | To replace plaholders on the targets paths. |
