You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -217,20 +263,62 @@ Here's an example app config:
217
263
}
218
264
```
219
265
266
+
#### Run with a specific configuration
267
+
268
+
**Android:**
269
+
270
+
```sh
271
+
npx nx run <app-name>:android:prod
272
+
```
273
+
274
+
**iOS:** (Mac only)
275
+
276
+
```sh
277
+
npx nx run <app-name>:ios:prod
278
+
```
279
+
220
280
#### Create a build
221
281
282
+
Instead of running the app on a simulator or device you can create a build for the purposes of distribution/release. Various release settings will be needed for iOS and Android which can be passed as additional command line arguments. [See more in the NativeScript docs here](https://docs.nativescript.org/releasing.html#overview). Any additional cli flags as stated in the docs can be passed on the end of the `nx build` command that follows.
283
+
284
+
The key difference is usage of `nx build` instead of `nx run`.
285
+
222
286
Build with an environment configuration enabled (for example, with `prod`):
223
287
224
288
**Android:**
225
289
226
290
```sh
227
-
npx nx run <app-name>:android:prod
291
+
npx nx build <app-name>:android:prod
292
+
```
293
+
294
+
You can pass additional NativeScript CLI options as flags on the end of you build command.
295
+
296
+
* example of building AAB bundle for upload to Google Play:
0 commit comments