Install your native toolchain and NativeScript as described in the docs:
https://docs.nativescript.org/environment-setup.html
$ git clone [email protected]:NativeScript/angular.git
$ cd angular
$ cd angular
$ yarn clean.all
E2E TESTS STILL NOT IN THIS REPO! instead use apps/nativescript-demo-ng
Install NPM packages (use the local copy of @nativescript/angular
):
$ cd e2e/router-tab-view
$ yarn install
Start the app:
$ ns run android
$ ns run ios
Make changes to @nativescript/angular
and see them applied in the running app.
Install the NPM dependencies:
$ cd apps/nativescript-demo-ng
Run the tests:
$ ns test ios
$ ns test android
E2E TESTS STILL NOT IN THIS REPO!
NOTE: The steps below describe how to run renderer
tests, but the same approach can be used to run router
or any other e2e
tests.
-
Navigate to
e2e/renderer
cd e2e/renderer
-
Install dependencies. This also installs your local copy of the nativescript-angular plugin.
npm install
-
Make sure to have an emulator set up or connect a physical Android/iOS device.
-
Build the app for Android or iOS
tns run android/ios
-
Install appium globally.
npm install -g appium
-
Follow the instructions in the nativescript-dev-appium plugin to add an appium capability for your device inside
./e2e/renderer/e2e/config/appium.capabilities.json
. -
Run the automated tests. The value of the
runType
argument should match the name of the capability that you just added.npm run e2e -- --runType capabilityName
- Build
@nativescript/angular
:npx nx run angular:build
- Build
@nativescript/zone-js
npx nx run zone-js:build
Packages are available in the dist
folder.