@nstudio/nativescript-angular
TypeScript icon, indicating that this package has built-in type declarations

20.0.3 • Public • Published

Cross-platform (xplat) tools for Nx workspaces

License NPM Version


xplat is an added value pack for Nx which provides additional app generators and optional supporting architecture for different platform/framework combinations.

Currently supported platforms

  • Electron

    Build cross platform desktop apps with JavaScript, HTML, and CSS.

  • Ionic

    Build amazing apps in one codebase, for any platform, with the web.

  • NativeScript

    Build rich iOS and Android apps with direct access to native api's from JavaScript directly.

Quickstart

npx create-nx-workspace@latest

✔ Where would you like to create your workspace? · {your-workspace-name}

# Choose "None"

? Which stack do you want to use? … 
None:          Configures a minimal structure without specific frameworks or technologies.

# Choose "Integrated"

? Package-based or integrated? … 
Integrated:    Nx creates a workspace structure most suitable for building apps.

Init workspace

Install the @nx/js plugin.

npm install @nx/js -D

Now initialize -- This will ensure a tsconfig.base.json is created to begin building your workspace.

npx nx g @nx/js:init

Install the tools:

npm install @nstudio/xplat -D

You are now ready to create apps:

npx nx g @nstudio/xplat:app

Potential schematics error: If you encounter a SchematicNameCollisionException issue, you can see this gist to apply a patch: https://gist.github.com/NathanWalker/a8554c1e0bba700affeb0c4672d26b0e

App generation examples

The additional app generators can be used as follows:

Electron

Electron app generator can use any web app in the workspace as it's target.

If you don't have a web app yet, create one first:

npx nx g @nstudio/xplat:app sample

choose web

You can now use the web app as the Electron target:

npx nx g @nstudio/xplat:app desktop --target=web-sample

choose electron

Develop with:

npm run start.electron.desktop

Ionic

npx nx g @nstudio/xplat:app sample

choose ionic

Develop in browser with:

npx nx serve ionic-sample

Build Ionic app:

npx nx build ionic-sample

A. Capacitor iOS - Prepare for development

npm run prepare.ionic.sample.ios

You can now open in Xcode for further development:

npm run open.ionic.sample.ios

B. Capacitor Android - Prepare for development

npm run prepare.ionic.sample.android

You can now open in Android Studio for further development:

npm run open.ionic.sample.android

NativeScript

nx g @nstudio/xplat:app mobile

choose nativescript

A. iOS

npx nx run nativescript-mobile:ios

B. Android

npx nx run nativescript-mobile:android

Documentation

Talks

Recommended extra tooling

Example repos for different scenarios

Context

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
20.0.3647latest
19.0.0-alpha.11alpha
16.2.0-beta.01beta
15.0.4-rc.11rc

Version History

VersionDownloads (Last 7 Days)Published
20.0.3647
20.0.21
20.0.11
20.0.01
19.0.0550
19.0.0-alpha.11
19.0.0-alpha.02
17.0.140
17.0.02
17.0.0-alpha.11
17.0.0-alpha.01
16.8.01
16.7.61
16.7.52
16.7.42
16.7.31
16.7.22
16.7.11
16.7.01
16.7.0-alpha.01
16.5.91
16.5.81
16.5.71
16.5.62
16.5.52
16.5.41
16.5.32
16.5.21
16.5.12
16.5.02
16.2.0-beta.01
15.0.4-rc.11
15.0.4-rc.01
15.0.312
15.0.23
15.0.12
15.0.01
14.3.039
14.0.11
14.0.01
13.4.31
13.4.21
13.4.2-rc.21
13.4.2-rc.12
13.4.2-rc.01
13.4.12
13.4.02
13.0.11
13.0.01
12.7.04
12.6.0-rc.02
12.5.11
12.5.01
12.4.32
12.4.22
12.4.12
12.4.01
12.0.22
12.0.11
12.0.02
12.0.0-rc.01
11.1.12
11.1.02
11.0.221
11.0.211
11.0.202
11.0.191
11.0.182
11.0.171
11.0.162
11.0.152
11.0.142
11.0.131
11.0.122
11.0.111
11.0.92
11.0.81
11.0.72
11.0.61
11.0.51
11.0.41
11.0.31
11.0.3-rc.73
11.0.3-rc.61
11.0.3-rc.51
11.0.3-rc.42
11.0.3-rc.31
11.0.3-rc.21
11.0.3-rc.12
11.0.3-rc.01
11.0.23
11.0.12
11.0.02
11.0.0-rc.12
11.0.0-rc.02
10.3.98
10.3.82
10.3.71
10.3.61
10.3.51
10.3.42
10.3.31
10.3.21
10.3.11
10.3.01
10.2.02
10.1.11
10.1.01
10.0.64
10.0.51
10.0.41
10.0.31
10.0.21
10.0.11
10.0.01
9.0.47
9.0.31
9.0.21
9.0.12
9.0.02
8.1.21
8.1.12
8.1.01
8.0.151
8.0.141
8.0.131
8.0.122
8.0.111
8.0.101
8.0.91
8.0.81
8.0.71
8.0.62
8.0.51
8.0.42
8.0.31
8.0.23
8.0.11
8.0.01

Package Sidebar

Install

npm i @nstudio/nativescript-angular

Weekly Downloads

1,494

Version

20.0.3

License

MIT

Unpacked Size

296 kB

Total Files

122

Last publish

Collaborators

  • nativescript-bot
  • multishiv19
  • rigor789
  • alexziskind1
  • walkerrunpdx
  • bradmartin
  • davecoffin
  • triniwiz