Skip to content

Commit c980d0b

Browse files
committed
add code blocks
1 parent 4545265 commit c980d0b

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

development-workflow.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,12 @@ The `create` command will take a minute to complete, as the NativeScript CLI nee
3232

3333
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.
3434

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-
4135
```shell
42-
ns help
36+
ns clean
4337
```
4438

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+
4541
### `preview`
4642

4743
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
7773

7874
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.
7975

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.
8181

8282
::: warning Note
8383
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
8686
Or a connected Android device with debugging enabled.
8787
:::
8888

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.
9094

9195
::: tip Note
9296
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:
144148

145149
`ns help debug ios` or `ns debug ios --help`
146150

151+
### `help`
152+
153+
Executing the following command in your terminal will open the CLI's documentation in your web browser.
154+
155+
```shell
156+
ns help
157+
```
158+
147159
## Debugging
148160

149161
### Visual Studio Code

0 commit comments

Comments
 (0)