Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.9 KB

README.md

File metadata and controls

53 lines (42 loc) · 1.9 KB

bower-art-resolver

Artifactory resolver for Bower, a custom resolver dedicated to integrate with Artifactory.

Installation

npm install -g bower-art-resolver

In order to use Bower with Artifactory you need 2 components (npm packages):

  1. bower-art-resolver - A custom, pluggable Bower resolver which is dedicated to integrate with Artifactory.
  2. bower - Bower version 1.5.0 and above.

Client Configuration

Edit your ~/.bowerrc and add Artifactory Bower Resolver

{
  "resolvers": [
    "bower-art-resolver"
  ]
}

Edit your ~/.bowerrc and point the registry to Artifactory:

{
  "registry": "http://<domain>/artifactory/api/bower/<bower-repo>"
}

For non Anonymous access:

{
  "registry": "http://user:password@<domain>/artifactory/api/bower/<bower-repo>"
}

You can also use Artifactory encrypted password

Artifactory Configuring

Bower remote repository

  1. Create a new remote repository and set Bower to be its Package Type, e.g. bower-remote
  2. Set the Repository Key value, and enter the SCM URL e.g. https://github.com, https://bitbucket.org, http://remote.org/artifactory/api/vcs/vcs-repo, or enter your own custom vcs
  3. In the Bower Settings section, select GitHub as the Git Provider, and leave the leave the default Registry URL (https://bower.herokuapp.com).
  4. Finally, click "Save & Finish"

Bower local/virtual repository

  1. Create a new local/virtual repository and enter a repository key, e.g. bower-local, bower-virtual
  2. Packages -> Check "Enable Bower Support" and enter your bower registry url (by default https://bower.herokuapp.com)
  3. Save

Usage

Use the client to install packages from Artifactory, e.g. bower install bootstrap

For more information, please refer to Artifactory wiki documentation