Host Node Component on Visual Studio Online

Problem:
What I'm trying to do is post the components of a bowler to an online visual studio. It seems impossible, as I try to do it.

I created the bower component and tested it in visual studio online with the Brian Ford tutorial . This bower component is now safely in my git visual studio project. However, when I try to do:

bower install https://myAccount.visualstudio.com/DefaultCollection/_git/bower-component    

it puts something in the bower_components folder, but these are not the bowler components that I clicked on a visual studio on the Internet. In the bower_components folder is bower.json with some incorrect values โ€‹โ€‹and an โ€œindexโ€ file without a file extension. When I open this โ€œindexโ€ file in an editor, it looks like an online visual studio login page.

It seems to me that the problem is authentication when connecting to visual studio online.

I tried:

  • To use git credential stores , but this did not show any effect when trying to load bower components.
  • I also tried using "private-bower" to register the visual studio online as a proxy with an alternate username and password for the visual studio online. However, it was not possible to register the URL of the visual studio online, because private-bower only supports git: // URL.

Does anyone have experience trying to get this to work with a visual studio online or with any team foundation server? Or does anyone have other possible solutions to this problem?

+4
source share
3 answers

* June 2016 update

TFS 2015 ( 3) SSH Git . git+https:// Bower , .


. , TFS. TFS, .

-, HTTPS TFS. Bower, HTTPS, , TFS. , TFS ".git", Bower - Git, .

bower install git+https://tfs.domain.com/tfs/Collection/_git/MyComponent

, Bower TFS . , , URL ( ).


, , ( , ). , TFS . , bower , TFS .

InvalidCastException: Unable to cast object of type 'Microsoft.TeamFoundation.Git.Server.TfsGitTag' to type 'Microsoft.TeamFoundation.Git.Server.TfsGitCommit'.

, http://tfs.domain.com:8080/tfs/_oi.

bower, , .

MSDN.

+7

, Microsoft. Buck post.

+1

git + https.

bower.json:

 "dependencies": {
     "some-component": "git+https://domain.com/path/to/git"
  }
0
source

All Articles