File tree 2 files changed +18
-0
lines changed
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 {
158
158
159
159
public runPlatform ( platform : string ) : IFuture < void > {
160
160
return ( ( ) => {
161
+ platform = platform . toLowerCase ( ) ;
162
+
163
+ this . validatePlatformInstalled ( platform ) ;
161
164
165
+ this . preparePlatform ( platform ) . wait ( ) ;
166
+ this . buildPlatform ( platform ) . wait ( ) ;
162
167
} ) . future < void > ( ) ( ) ;
163
168
}
164
169
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
109
109
110
110
--[/]--
111
111
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