| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
The repository contains several packages and apps:
Working with the repo is organized with npm scripts, go and read through the scripts section in the package.json.
Managing dependencies:
NOTE: tns-core-modules depends on tns-core-modules-widgets, this dependency contains native code and is rarely modified so for now it remains outside this repo.
Clone (or fork/clone) the repo:
git clone https://github.com/NativeScript/NativeScript.gitInstall devDependencies:
npm installcd ./tests tns run android| ios
The test app is an ordinary NativeScript app that logs the test results as it go. After the initial setup you can run the tests with:
# Make sure TypeScript is transpiled tsc # Run the app tns run ios --path apps tns run android --path apps
The initial setup will npm-link the tns-core-modules globally. You can use it in any local project:
# Run once: Link tns-core-modules in your project
npm link tns-core-modules
# Run the app
tns run ios
tns run androidNote: You still have to rebuild the TypeScript if you have made changes in the code of the core-modules.
To update the platform declarations (the ios.d.ts-es) you can run:
npm install npm run dev-declarations
This script will update the iOS declarations. Android tools are not integrated yet. The declarations are generated from the test app and will include the native code from tns-core-modules-widgets.
The following will build the API reference pages in bin/dist/apiref:
npm run typedoc
If you want to improve on the documentation you can also build and start up dev web server:
npm run dev-typedoc
The terminal will point the address you can open in your web browser.
| Back | FazBrowse Home | New Git URL |