Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@nstudio/electron
Advanced tools
xplat is an added value pack for Nx which provides additional app generators and optional supporting architecture for different platform/framework combinations.
Build cross platform desktop apps with JavaScript, HTML, and CSS.
Build amazing apps in one codebase, for any platform, with the web.
Build rich iOS and Android apps with direct access to native api's from JavaScript directly.
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.
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
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
The additional app generators can be used as follows:
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
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
nx g @nstudio/xplat:app mobile
choose
nativescript
A. iOS
npx nx run nativescript-mobile:ios
B. Android
npx nx run nativescript-mobile:android
FAQs
Electron Plugin for xplat
We found that @nstudio/electron demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.