How to create a server for private bower?

1

I have several frontend packages developed by my team, all of these packages are private and I can not register them in the bower public repository . Is it possible to have a private server containing all these packages within my corporate infrastructure?

    
asked by anonymous 13.09.2015 / 02:49

1 answer

1

The best solution to this is private-bower . This solution will provide an HTTP server with a graphical interface to register private packages. Once the private-bower is available, simply create a file in your project named .bowerrc containing the following configuration:

{
  "registry": "http://yourPrivateBowerRepo:5678",
  "timeout": 300000
}

When you install a new package, bower will fetch it first on your private server and then on the public server.

Private-bower can be used as a cache server for public packages, making downloading packages faster.

    
13.09.2015 / 02:49