Hmm, I think it would work if you checked in the node_modules and then put
the paths to the js files you want in your plugin.xml. Our require paths
for the modules a bit different though, and might not work well if you have
one npm module requiring another one.

Maybe a better option in this case would be to package your plugin's JS
into a single .js file and use that in your plugin.xml.


On Tue, Jul 2, 2013 at 6:53 PM, Don Coleman <[email protected]> wrote:

> I ripped a bunch of Javascript code out of my Cordova NFC plugin and
> created a NPM so I could reuse the code elsewhere.
>
> Now, that the code is improved and tested, I'd like the plugin to use the
> code from the node package.
>
> Are there good ways to do this? Have you seen any examples?
>
> https://github.com/don/phonegap-nfc
> https://github.com/don/ndef-js
>

Reply via email to