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
Copy file name to clipboardExpand all lines: development-workflow.md
+21-9Lines changed: 21 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,16 +32,12 @@ The `create` command will take a minute to complete, as the NativeScript CLI nee
32
32
33
33
This command will clean your NativeScript project. It will delete the `node_modules`, `hooks`, and `platforms` directories from your project. These directories sometime need a clean slate during development of native applications. It is similar to running "Clean Build Folder" in XCode or other IDE environments.
34
34
35
-
If you're having trouble running your application or you have added new dependencies, it's usually a good practice to start with `ns clean` before running to be sure you avoid any type of dependency issues or native project build issues.
36
-
37
-
### `help`
38
-
39
-
Executing the following command in your terminal will open the CLI's documentation in your web browser.
40
-
41
35
```shell
42
-
ns help
36
+
ns clean
43
37
```
44
38
39
+
If you're having trouble running your application or you have added new dependencies, it's usually a good practice to start with `ns clean` before running to be sure you avoid any type of dependency issues or native project build issues.
40
+
45
41
### `preview`
46
42
47
43
This command allows you to link the app you’re developing locally to the NativeScript Playground app for your iOS or Android device through the NativeScript Playground app. Although, this workflow is great for getting started, it does have limitations.
@@ -77,7 +73,11 @@ This happens because the `ns preview` command is now watching your project for c
77
73
78
74
Runs your project on all connected devices or in native emulators for the selected platform. The command will prepare, build and deploy the app when necessary. By default listens for changes in your code, synchronizes those changes and refreshes all selected devices.
79
75
80
-
`ns run android` will launch the app on a connected Android device or Android emulator.
76
+
```shell
77
+
ns run android
78
+
```
79
+
80
+
Launches the app on a connected Android device or Android emulator.
81
81
82
82
::: warning Note
83
83
If you get an error at this point you might not have completed the full NativeScript CLI setup.
@@ -86,7 +86,11 @@ You must have at least one AVD (Android Virtual Device) configured on your devel
86
86
Or a connected Android device with debugging enabled.
87
87
:::
88
88
89
-
`ns run ios` will launch the app on a connected iOS device or iOS simulator.
89
+
```shell
90
+
ns run ios
91
+
```
92
+
93
+
Launches the app on a connected iOS device or iOS simulator.
90
94
91
95
::: tip Note
92
96
NativeScript uses Xcode to build and run iOS apps, and Xcode is only available on macOS; therefore, you can only run iOS apps on macOS. There are VM and/or cloud services that allow you to build on a Mac from a PC.
@@ -144,6 +148,14 @@ For more information about iOS debugging, run any the following commands:
144
148
145
149
`ns help debug ios` or `ns debug ios --help`
146
150
151
+
### `help`
152
+
153
+
Executing the following command in your terminal will open the CLI's documentation in your web browser.
0 commit comments