I'm working on a project, where I have some public bower components, and I'm writing some of my own. But, I don't want to publish/register it on bower registry. I wan't to use my PRIVATE Bitbucket repository.
So, if i type in terminal:
bower install my_package_name
I want to download that package from my private repo.
I get the idea, that I should specify the git repo in bower.json file, but what I'm struggling with is authentication through terminal.
Ok, since nobody answered, I figured it out by myself. You can use with HTTPS like this:
{
"dependencies" : {
"my_package_name" : "https://[email protected]/MY_REPO_URL.git"
}
}
Or with SSH:
{
"dependencies": {
"my_package_name": "[email protected]:username/MY_REPO_URL.git"
}
}
This works like a charm.