File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,12 @@ export class PlatformService implements IPlatformService {
158158
159159 public runPlatform ( platform : string ) : IFuture < void > {
160160 return ( ( ) => {
161+ platform = platform . toLowerCase ( ) ;
162+
163+ this . validatePlatformInstalled ( platform ) ;
161164
165+ this . preparePlatform ( platform ) . wait ( ) ;
166+ this . buildPlatform ( platform ) . wait ( ) ;
162167 } ) . future < void > ( ) ( ) ;
163168 }
164169
Original file line number Diff line number Diff line change @@ -109,3 +109,16 @@ Builds the project for specified platform. This generates platform-specific code
109109
110110--[/]--
111111
112+ --[run]--
113+
114+ Usage:
115+ $ tns run [<platform>]
116+
117+ Platform-specific usage:
118+ $ tns run android
119+ $ tns run ios
120+
121+ This is shorthand for prepare and build.
122+
123+ --[/]--
124+
You can’t perform that action at this time.
0 commit comments