I register a version of my "angular-backstrech-adrr" to bower:
bower register angular-backstrech-adrr [email protected]:AladdinMhaimeed/angular-backstrech-adrr.git
this is bower.json:
{
"author": "Aladdin Mhaimeed",
"name": "angular-backstrech-adrr",
"version": "1.0.4",
"main": "angular-backstretch.js",
"dependencies": {
"jquery": ">2.0.0",
"jquery-backstretch": "https://raw.github.com/srobbin/jquery-backstretch/master/jquery.backstretch.min.js"
}
}
Bower says it is successfully registered, but when I use:
bower info angular-backstretch-adrr
It says there is no version available.
If I change the version and try to register again, I get: EDUPLICATE
Is there something wrong in the bower.json? Anything wrong with the syntax?
Your package only needs to be registered once. The versions are drawn from your Git tags. From the Bower documentation:
Your package must be available at a Git endpoint (e.g., GitHub); remember to push your Git tags!
Not to worry, I had no idea what this meant either. After poking around a bit, I stumbled across this.
Here's the quick and easy way to solve your problem... from your project's root directory run:
% git tag v1.0.4
If you type:
% git tag
you'll see the version you just created. Now push your Git tags:
% git push origin v1.0.4
Now when you run bower info angular-backstretch-adrr
, you'll see the version you just pushed.
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