diff --git a/lib/services/platform-service.ts b/lib/services/platform-service.ts index d6beb3ec75..da08441706 100644 --- a/lib/services/platform-service.ts +++ b/lib/services/platform-service.ts @@ -158,7 +158,12 @@ export class PlatformService implements IPlatformService { public runPlatform(platform: string): IFuture { return (() => { + platform = platform.toLowerCase(); + + this.validatePlatformInstalled(platform); + this.preparePlatform(platform).wait(); + this.buildPlatform(platform).wait(); }).future()(); } diff --git a/resources/help.txt b/resources/help.txt index 6db2492d37..f946110ec5 100644 --- a/resources/help.txt +++ b/resources/help.txt @@ -109,3 +109,16 @@ Builds the project for specified platform. This generates platform-specific code --[/]-- +--[run]-- + +Usage: + $ tns run [] + +Platform-specific usage: + $ tns run android + $ tns run ios + +This is shorthand for prepare and build. + +--[/]-- +