bower-art-resolver
v2.0.10
Published
The Artifactory Bower Resolver
Downloads
18,064
Readme
bower-art-resolver
A custom Bower resolver dedicated to allow integration of Bower with Artifactory
Installation
npm install -g bower-art-resolver
In order to use Bower with Artifactory you need 2 components (npm packages):
- bower-art-resolver - A custom, pluggable Bower resolver which is dedicated to allow integratione of Bower with Artifactory.
- bower - Bower version 1.5.0 and above.
Client Configuration
Edit your ~/.bowerrc and add:
- The bower-art-resolver.
- The Artifactory URL as the first search URL.
{
"registry": {
"register": "https://bower.herokuapp.com",
"search": [
"http://<domain>/artifactory/api/bower/<bower-repo>"
]
},
"resolvers": [
"bower-art-resolver"
]
}
For authenticated access, please add the user and password to Artifactory URL as follows:
"search": [
"http://user:password@<domain>/artifactory/api/bower/<bower-repo>"
]
You can also use an encrypted Artifactory password.
Artifactory Configuration
Bower remote repository
- Create a new remote repository and set its Package Type to be “Bower”. You might call it “bower-remote”
- 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.
- In the Bower Settings section, select GitHub as the Git Provider, and leave the default Registry URL (https://bower.herokuapp.com).
- Finally, click "Save & Finish"
Bower local/virtual repository
- Create a new local/virtual repository and enter a repository key. For example, "bower-local" or "bower-virtual".
- Packages -> Check "Enable Bower Support" and enter your bower registry url (by default https://bower.herokuapp.com)
- Save
Usage
Use the client to install packages from Artifactory, For example, bower install bootstrap
For more information, please refer to the Artifactory User Guide