Cordova plugin - download from git repo


#1

When i install it local using “ionic cordova plugin add path/to/plugin”, it works. But when I create repo from it and download it later somewhere, makes some errors.

My question is how should i edit plugin.xml or other file to achieve this goal - plugin as repo (i can’t use github etc - unfortunately)


#2

Why can’t you use github?

Here’s one I did a LONG time ago using github…


#3

It’s commercial project in my work. That’s why I can’t use open source solution, just create the repo in our server and work on it.


#4

Hi,

You should be able to clone the project, for example:

git clone https://github.com/Robinyo/cordova-plugin-abrakm-sdk.git

And, then add the plugin to your project:

cordova plugin add --link ../cordova-plugin-abrakm-sdk

To remove the plugin from your project:

cordova plugin rm cordova-plugin-abrakm-sdk

To check your project’s plugins:

ionic cordova plugin ls

See:

Cheers
Rob


#5

Tried it now and still it makes path like “file://path/to/plugin”. It won’t work on another computer. I need to have repo on server and download from there not local path. But just I don’t know what steps I should do :stuck_out_tongue:


#6

What won’t work on another computer?

GitHub is on another computer and you can clone repositories from GitHub.

You can make changes in your local repo and then:

git push -u origin master

#7

As I said earlier - I can’t use github …


#8

Then don’t use GitHub use another server. ssh into that server and clone the repo onto that server.

Then on your workstation clone the repo from your server and your good to go :slight_smile:


#9

Set up your plugin on GitHub in a private repo and allow access to only users that should have access.

Is this for using a third party building system like PhoneGap build or ionic pro?