fxpio / composer-asset-plugin

NPM/Bower Dependency Manager for Composer
MIT License
893 stars 156 forks source link

Private Repository #210

Closed itstueben closed 8 years ago

itstueben commented 8 years ago

It is possible to connect to a private repository? (https://github.com/Hacklone/private-bower) I dont want to connect directly to the svn Repo.

francoispluchino commented 8 years ago

Yes, of course. See the Features included in the readme.

itstueben commented 8 years ago

Jeah kewl. But how? I only found the "asset-repositories": ´but this is how to implement an VCS Repo directly. I want to connect to to private Bower Server! How can i solve that?

francoispluchino commented 8 years ago

This plugin only works with the direct private repositories (Git, GitHub, Git Bitbucket, Mercurial, Mercurial Bitbucket, SVN, Perforce), but not work with custom registries of repositories.

But it is simple to create an another registry for the private Bower registry (see BowerRepository).

Any help is welcome.

itstueben commented 8 years ago

I want to develop this PrivateRepo Class. I'm in the Final Steps. I need some help in the SVNDriver Class. I want to get some Information from composer.json . How can i get these Information in a function in the SVNDriver Class?

francoispluchino commented 8 years ago

What are the informations you want in the composer.json file?

itstueben commented 8 years ago

I need the Information in the extra Section. For example "asset-svn-credentials"

francoispluchino commented 8 years ago

The credentials are managed by Composer, maybe that you want to talk of svn-cache-credentials.

To get the extra section in assets repository, you can add the $extra variable in $config variable (ex. 'composer-extra' => $extra) in the AssetPlugin::addRegistryRepositories method.

francoispluchino commented 8 years ago

Added by #217.