From 39064613cb18da35aa07138c9bc0e2abe2facc01 Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Tue, 5 Aug 2014 13:08:43 +0300 Subject: [PATCH] Run command --- lib/services/platform-service.ts | 5 +++++ resources/help.txt | 13 +++++++++++++ 2 files changed, 18 insertions(+) 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. + +--[/]-- +