# Setup local dependencies and repo for work
npm run setup
# See what commands you can run
npm startTo simplify workspace development and maintenance we provide an interactive menu via npm start which lists all the commands you can run. You can type to filter the list and hit ENTER to run. Each command invokes a Nx workspace command which you can even copy/paste to run directly if you don't want to use the interactive menu any longer.
Clone (or fork/clone) the repo and run setup script:
git clone https://github.com/NativeScript/NativeScript.git
cd NativeScript
npm run setupA. Using convenient start menu:
npm start
> (Type) "core.test" (...to isolate the menu to "@nativescript.core.test"), hit ENTERB. Using direct Nx command:
npx nx run core:testTo enable live watch mode you can add the --watch flag, for example:
npx nx run core:test --watchRun a single test by it's describe name, for example to run just the xml/index.spec.ts, the describe block is named XmlParser therefore:
npx nx run core:test --watch -t 'XmlParser'
There are a couple of application used for development and testing.
apps/automatedAutomated e2e testsapps/toolboxUsed for local development experimentation and confirming cases. More simplistic, use this one most often.apps/uiAlso used for local development experimentation and confirming cases. More sophisticated setup.
Run automated e2e test suite with:
npx nx run apps-automated:ios
// or...
npx nx run apps-automated:androidThe following will build the API reference pages in bin/dist/apiref:
npm run typedocIf you want to improve on the documentation you can also build and start up dev web server:
npm run dev-typedocThe terminal will point the address you can open in your web browser.