xplat icon indicating copy to clipboard operation
xplat copied to clipboard

[Question] Correct method of adding plugin to applications in nx/xplat

Open abcfoundry opened this issue 5 years ago • 2 comments

Is there a best practice for adding Nativescript plugin to the xplat framework?
Current process ...

  1. Go to NS-Application directory under apps > application-nativescript
  2. run tns plugin such as "tns plugin add @nstudio/nativescript-cardview"
  3. Go to package.json in dir apps > application-nativescript> package.json
  4. copy the new package name and paste into main nx package.json

Once this included seams to work fine...
Is this appropriate workflow? Not sure about how this will effect dist build.. Thoughts?

abcfoundry avatar May 27 '20 18:05 abcfoundry

It would be really nice if there was just an nx schematic such as nx g plugin:add [--project=<project-name>] <package-name> that did this for you which was included in xplat.

wSedlacek avatar Jan 25 '21 06:01 wSedlacek

Great idea @wSedlacek we’ll add something like that on next release.

NathanWalker avatar Jan 25 '21 07:01 NathanWalker