Skip to content

Commit d840810

Browse files
author
Surdu
committed
docs(dev-workflow): Added steps for developing pure JS apps with {N} source code
1 parent 430c616 commit d840810

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

DevelopmentWorkflow.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,28 @@ tns run ios
6969

7070
## Running Another App
7171

72+
The following 3 steps are required if your app is written in vanilla JS (not using TypeScript):
73+
74+
1. Make sure you have Typescript installed:
75+
```bash
76+
npm install typescript -g
77+
```
78+
2. Go to `tns-core-modules` folder in NativeScript source
79+
```bash
80+
cd <path to tns-core-modules>
81+
# Example: cd ~/work/NativeScript/tns-core-modules
82+
```
83+
3. Compile `tns-core-modules` to JavaScript:
84+
```bash
85+
tsc
86+
```
87+
Alternatively, you can leave the compiler watching for changes in `tns-core-modules`:
88+
```bash
89+
tsc -w
90+
```
91+
92+
For application written in TypeScript, the following steps will suffice:
93+
7294
1. Open the app, where you will use the module from the repository in the console.
7395
2. Add the `tns-core-modules` in the application via:
7496
```bash

0 commit comments

Comments
 (0)