GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — NativeScript/tools/notes/DevelopmentWorkflow.md at main · NativeScript/NativeScript

Expand file tree

/

DevelopmentWorkflow.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
80 lines (53 loc) · 1.92 KB
/

DevelopmentWorkflow.md

Copy path

File metadata and controls

80 lines (53 loc) · 1.92 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Development Workflow

# Setup local dependencies and repo for work
npm run setup

# See what commands you can run
npm start

To 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.

Initial Setup

Clone (or fork/clone) the repo and run setup script:

git clone https://github.com/NativeScript/NativeScript.git
cd NativeScript 
npm run setup

Unit Testing

Run unit tests with Vitest with either option:

A. Using convenient start menu:

npm start 
> (Type) "core.test" (...to isolate the menu to "@nativescript.core.test"), hit ENTER

B. Using direct Nx command:

npx nx run core:test

Watch mode

To enable live watch mode you can add the --watch flag, for example:

npx nx run core:test --watch

Isolate tests by name

Run 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' 

Running the e2e Test Apps

There are a couple of application used for development and testing.

  • apps/automated Automated e2e tests
  • apps/toolbox Used for local development experimentation and confirming cases. More simplistic, use this one most often.
  • apps/ui Also 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:android

Documentation API reference

The following will build the API reference pages in dist/api-reference:

npx nx build core-api-docs
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.