Code Monkey home page Code Monkey logo

xplat's Introduction

Cross-platform (xplat) tools for Nx workspaces

Build Status 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

At the prompts:

What to create in the new workspace

choose apps

npm i @nstudio/xplat -D

You are now ready to create apps:

nx g app

NOTE: If you encounter any issue, you can try creating an Nx workspace with version specified, for example:

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

Recommended extra tooling

Example repos for different scenarios

Context

xplat's People

Contributors

agentender avatar csimpi avatar davecoffin avatar dmitryr117 avatar dopsonbr avatar dungahk avatar kamilmysliwiec avatar m-abs avatar madmath03 avatar mbaljeetsingh avatar miguelramos avatar n0mer avatar nathanwalker avatar pegaltier avatar sr3dna avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.