From eea13733d31b3e7257307034e5a87dcfbcfc6527 Mon Sep 17 00:00:00 2001 From: Dimitar Kerezov Date: Fri, 26 Jan 2018 12:32:16 +0200 Subject: [PATCH] feat(build): introduce cleanApp hook Introduce a `cleanApp` hook which occurs whenever CLI needs to clean the app directory in `platforms`. --- lib/services/platform-service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/services/platform-service.ts b/lib/services/platform-service.ts index ed2145fa75..9b4b9942c8 100644 --- a/lib/services/platform-service.ts +++ b/lib/services/platform-service.ts @@ -560,6 +560,7 @@ export class PlatformService extends EventEmitter implements IPlatformService { return null; } + @helpers.hook('cleanApp') public async cleanDestinationApp(platformInfo: IPreparePlatformInfo): Promise { await this.ensurePlatformInstalled(platformInfo.platform, platformInfo.platformTemplate, platformInfo.projectData, platformInfo.config);