Skip to content

Instantly share code, notes, and snippets.

@NathanWalker
Last active June 19, 2021 01:42
Show Gist options
  • Save NathanWalker/266f597de1a93314bec9efa6d21c15a2 to your computer and use it in GitHub Desktop.
Save NathanWalker/266f597de1a93314bec9efa6d21c15a2 to your computer and use it in GitHub Desktop.
@nativescript/schematics with NativeScript 7.x.x and Angular 10.1.x - 11.x.x
  1. Install the latest NativeScript cli (7.x.x)
npm i -g nativescript
  1. Choose A or B depending on your use case:

A) Starting a new Angular web project and adding {N} to it afterwards:

ng new workspace
cd workspace
ng add @nativescript/schematics@latest --skipAutoGeneratedComponent

// start apps:
npm run ios
npm run android 

B) Starting a new Angular NativeScript shared codebase from the start:

npm i -g @nativescript/schematics@latest
ng new -c=@nativescript/schematics workspace --shared --style=scss
cd workspace

// start apps:
npm run ios
npm run android 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment