xplat
xplat copied to clipboard
[Question] Correct method of adding plugin to applications in nx/xplat
Is there a best practice for adding Nativescript plugin to the xplat framework?
Current process ...
- Go to NS-Application directory under apps > application-nativescript
- run tns plugin such as "tns plugin add @nstudio/nativescript-cardview"
- Go to package.json in dir apps > application-nativescript> package.json
- 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?
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.
Great idea @wSedlacek we’ll add something like that on next release.