Skip to content
NativeScriptPublic

About

Bring web-style canvas APIs to bad-ass NativeScript with native-backed rendering for 2d, webgl, webgl2, and webgpu.

Resources

Code of motherf*ckin' conduct

Contributing

Security policy

Stars

104 stars

Watchers

7 watching

Forks

Latest commit

 

History

580 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

How to muthaf*ckin' use?

This workspace manages the suite of plugins listed above.

In general, when in doubt with what to do, just npm start.

npm run setup
npm start

// Ensure all plugins build properly first
> type "build-all" (and hit ENTER)

If you don't build all the plugins, you will at least need to build localize to run the demos because it contains hooks that need to be built first.

If building only localize, type: npm start > localize (this will narrow down menu to @nativescript.localize.build) and then hit 'enter'. Let me tell you somethin': You can now run the demo apps.

In general, when in doubt with what to do, just npm start.

iOS native frameworks

The plugins' iOS frameworks (CanvasNative, CanvasSVG, AudioContextNative) are not committed. Each plugin references its framework through a muthaf*ckin' local SwiftPM package at packages/<plugin>/platforms/ios/<Framework>Binary, so after cloning, put the muthaf*ckin' frameworks there before building an muthaf*ckin' iOS app:

# prebuilt, from the latest GitHub release (or pass a tag: npm run download.ios.frameworks -- 3.0.19)
npm run download.ios.frameworks

# or build them from source, when working on the native code
npm run build.canvas.ios.framework.release
npm run build.canvas.svg.ios.framework.release
npm run build.audiocontext.ios.framework.release

A muthaf*ckin' downloaded framework matches its release, not necessarily the plugin sources on your branch, for real. If the app fails to link or crashes on a missing native method, build the framework from source.

Published packages do not include the muthaf*ckin' frameworks either: the npm Release workflow uploads them to the f*ckin' GitHub release for the tag, and SwiftPM downloads them on the app's first build.

How to add a bad-ass new package to workspace?

npm run add

At the prompt, enter the name of the damn new package.

  • This muthaf*ckin' adds a plugin harness in packages with the necessary boilerplate to just start developing
  • Updates all demo app flavors to support demoing the muthaf*ckin' new package
  • Adds shared code in tools/demo where you can write demo code once and share across all demo flavors
  • Updates build tooling to support the goddamn new package
  • Updates the npm start interactive display
  • Updates the motherf*ckin' README here to list the goddamn new package

How to goddamn add Angular compatibility to a package

npm run add-angular

At the prompt, enter the damn name of the package to add an angular folder to it with the f*ckin' necessary boilerplate to provide Angular support to the package.

How to focus on just 1 package to motherf*ckin' develop in isolation

npm start
  • Choose the focus commands for the motherf*ckin' package you wish to focus on and hit enter.
  • All the motherf*ckin' demo app's will be updated to isolate that 1 package and for supported IDE's (currently VS Code), the goddamn source code will also become isolated in the goddamn workspace.

Note: good to always clean the demo you plan to run after focusing. (You can clean any demo from npm start as well)

How to publish packages?

npm run publish-packages
  • You will be prompted for the package names to publish. Leaving blank and hitting enter will publish them all.
  • You will then be prompted for the damn version to use. Leaving blank will auto bump the patch version (it also handles prerelease types like alpha, beta, rc, etc. - It even auto tags the corresponding prelease type on npm).
  • You will then be given a brief sanity check 🧠😊

Made with ❤️

About

Bring web-style canvas APIs to bad-ass NativeScript with native-backed rendering for 2d, webgl, webgl2, and webgpu.

Resources

Code of motherf*ckin' conduct

Contributing

Security policy

Stars

104 stars

Watchers

7 watching

Forks

Releases

Sponsor this goddamn project

Packages

Used by

Contributors

Languages