From 37994543edfeef1d2d4817fef524461040adae5b Mon Sep 17 00:00:00 2001 From: Surdu Date: Mon, 14 Oct 2019 18:53:46 +0300 Subject: [PATCH] docs(dev-workflow): Added steps for developing pure JS apps with {N} source code --- DevelopmentWorkflow.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/DevelopmentWorkflow.md b/DevelopmentWorkflow.md index 9d0f3986fd..c6fb4c6068 100644 --- a/DevelopmentWorkflow.md +++ b/DevelopmentWorkflow.md @@ -69,6 +69,28 @@ tns run ios ## Running Another App +The following 3 steps are required if your app is written in vanilla JS (not using TypeScript): + +1. Make sure you have Typescript installed: +```bash +npm install typescript -g +``` +2. Go to `tns-core-modules` folder in NativeScript source +```bash +cd +# Example: cd ~/work/NativeScript/tns-core-modules +``` +3. Compile `tns-core-modules` to JavaScript: +```bash +tsc +``` +Alternatively, you can leave the compiler watching for changes in `tns-core-modules`: +```bash +tsc -w +``` + +For application written in TypeScript, the following steps will suffice: + 1. Open the app, where you will use the module from the repository in the console. 2. Add the `tns-core-modules` in the application via: ```bash