Trying to add a dependency to arbor using Bower. This JS library does not have any releases tagged in GitHub, but has been published to Bower. How should the dependency look in bower.json
?
"dependencies": {
"arbor": ...
}
As it is written in the documentation, you can specify the package in form of a remote Git endpoint:
"dependencies": {
"some-package": "git://github.com/someone/some-package.git"
}
Since GitHub is usually used, there is a shortcut for this (unless specified otherwise):
"dependencies": {
"some-package": "someone/some-package"
}
This will download the newest version of the package. To make sure that your app will work with the downloaded version, you can specify the commit with its hash. So this
"dependencies": {
"some-package": "someone/some-package#ddb859e7e7d2beb9c7ecd54cfe4ea2e67ac1d797"
}
will always download the package in the state of that specific commit.
Update: Changed protocol from SSH ([email protected]:
) to plain git (git://github.com/
) as pointed out in the comments.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With