From 712537e7651e0f1317672a70e4b77d4a84b5b098 Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Wed, 26 Oct 2016 14:34:57 +0300 Subject: [PATCH] clean-app command installs the platform if not present. This allows for easier documentation workflows when using webpack. --- lib/services/platform-service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/services/platform-service.ts b/lib/services/platform-service.ts index 302d0f9042..e47e4d224b 100644 --- a/lib/services/platform-service.ts +++ b/lib/services/platform-service.ts @@ -326,6 +326,8 @@ export class PlatformService implements IPlatformService { public cleanDestinationApp(platform: string): IFuture { return (() => { + this.ensurePlatformInstalled(platform).wait(); + const appSourceDirectoryPath = path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME); let platformData = this.$platformsData.getPlatformData(platform); let appDestinationDirectoryPath = path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME);