bower-art-resolver
Artifactory resolver for Bower, a custom resolver dedicated to integrate with Artifactory.
Installation
npm install -g bower-art-resolver
This resolver depends on bower-art; a temporary custom bower with the pluggable resolvers mechanism currently in pending pull request.
Client Configuration
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
- Create a new remote repository and enter a repository key, e.g. bower-remote
- Basic Settings -> URL e.g. https://github.com, https://bitbucket.org, http://remote.org/artifactory/api/vcs/vcs-repo, or enter your own custom vcs
- Packages -> Check "Enable Bower Support" and enter your own bower registry url (by default https://bower.herokuapp.com)
- Packages -> Check "Enable VCS Support", select git provider according to the relevant vcs from step 2
- Save
Bower local/virtual repository
- Create a new local/virtual repository and enter a repository key, e.g. bower-local, 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, e.g. bower-art install bootstrap