File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff 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+
72941 . Open the app, where you will use the module from the repository in the console.
73952 . Add the ` tns-core-modules ` in the application via:
7496``` bash
You can’t perform that action at this time.
0 commit comments