Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shirakaba committed Mar 2, 2019
1 parent 7a5cec6 commit 98a4372
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,17 @@ npm install

And then maybe make yourself one of these: ☕️

### Run
### (Build and) run

To run for iOS (Android is not supported yet):

```sh
# This is shorthand for "prepare, build and deploy".
# Compile the TypeScript sources to JS.
# (Do this in a separate terminal, as it's an interactive command)
./node_modules/.bin/tsc --watch

# Build-and-run on a simulator or real phone.
# (This is shorthand for "prepare, build and deploy".)
tns run ios
```

Expand All @@ -100,6 +105,7 @@ And now maybe make yourself one of these: 🍵
Full documentation for `tns run ios` [here](https://docs.nativescript.org/tooling/docs-cli/project/testing/run-ios). Useful flags to pass:

* `--hmr`: activates hot module reloading (I highly recommend it).
* `--bundle`: I fall back to this when webpack starts misbehaving under `--hmr`.
* `--clean`: forces a complete rebuild. Useful if you run into caching problems.
* `--emulator`: instructs NativeScript to run the app in the iOS Simulator even if you have your device connected.

Expand Down

0 comments on commit 98a4372

Please sign in to comment.