NativeScript / plugin-seed

Build NativeScript Plugins Fast ⚡
https://docs.nativescript.org/plugins/plugin-workspace-guide
Apache License 2.0
45 stars 11 forks source link

Pack plugin #19

Open shaltie opened 3 years ago

shaltie commented 3 years ago

Hello! I want to use zipped plugin in my app. How to pack it? In previous version of nativescript-plugin-seed you had a pack.sh script. But not here. I;m trying to pack in manually, but then errors are appearing. Or maybe there are any solutions how to keep my private plugin in the app without plugin's repo cloning. I'm not working alone. We have a team of several Nativescript developers. I reated a plugin and I want to share only dist for other guys. Not the all repo.

NathanWalker commented 3 years ago

Hi @shaltie yes you can do this with the following:

npm start > {yourplugin}.build

Then just go into dist output and pack it:

cd dist/packages/{yourplugin}
npm pack