Socket
Socket
Sign inDemoInstall

@nstudio/web

Package Overview
Dependencies
1
Maintainers
8
Versions
135
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nstudio/web

Web Plugin for xplat


Version published
Weekly downloads
1.8K
increased by8.74%
Maintainers
8
Install size
132 MB
Created
Weekly downloads
 

Changelog

Source

12.7.0 (2021-08-11)

Bug Fixes

  • core: ensure feature generator components honor createBase option (1c2bcc8)

Features

Readme

Source

Cross-platform (xplat) tools for Nx workspaces


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

At the prompts:

provide a name

choose empty

npm i @nstudio/xplat -D

You are now ready to create apps:

nx g app

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:

nx g app sample

choose web

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

nx g app desktop --target=web-sample

choose electron

Develop with:

npm run start.electron.desktop

Ionic

nx g app sample

choose ionic

Develop in browser with:

nx serve ionic-sample

Build Ionic app:

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 app mobile

choose nativescript

A. iOS

nx run nativescript-mobile:ios

B. Android

nx run nativescript-mobile:android

Documentation

Talks

Example repos for different scenarios

Real world apps built with xplat

Portable North Pole

My PreSonus

Sweet

Context

Contributing

Please see our guidelines for contributing.

NathanWalkerdungahkpegaltierm-abssr3dnambaljeetsingh
NathanWalkerdungahkpegaltierm-abssr3dnambaljeetsingh
dopsonbrAgentEnderdavecoffindmitryr117kamilmysliwiecmadmath03
dopsonbrAgentEnderdavecoffindmitryr117kamilmysliwiecmadmath03
miguelramosn0mer
miguelramosn0mer

Keywords

FAQs

Last updated on 11 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc