How do I add a description to search on Bower.io?

147 Views Asked by At

I have a component: chrome-extension-async published to both Bower and NPM.

When I search for it on bower.io it finds the package, but it doesn't find the description.

My bower.json has a description property.

libraries.io finds the component on both NPM and Bower, but the latter has no description (either from the json or the readme)

What am I doing wrong?

2

There are 2 best solutions below

6
Preview On BEST ANSWER

Also by checking the code of libraries.io responsible for bower packages, it looks like everything is fine from this perspective. If you had changed your github repo name in the meantime though, that might very well be the issue.

My best bet would be a caching issue. If you had published it previously without description, libraries.io or bower.io might hold a cache of some fields like that, and I dunno really when it could be invalidated, you can also see you have 0 stars here which is not up-to-date.

I'm sure you already tried to bump the version, since as I can see from the bower.io api your did a last version on April 16. If you didn't thought, you might want to give it a try.

What I would advice you is to try changing your name to chrome-extension-async-tmp, and see if it gets picked up. If it does, that means it's something related to caching. In this case, you could (depending on your user-base) un-publish and republish the package, so the description gets picked up again.

After a simple clone and rename of your package, I published it on bower and 1 day later it was showing on the search results of both libraries.io and bower.io, with the correct descriptions. As you can see in their github.rake they are syncing repositories that have never been synced. Hopefully since #1080, they added a button to manually trigger a re-sync of a library if you are logged on the site (if no sync has occurred less than 24 hours ago). So I think that's what you're looking for.

img

0
Keith On

This appears to be fixed now, and this is what I did:

Now https://libraries.io/bower/chrome-extension-async has the full README and the search at https://bower.io/search/ picks up the description.

I think this was actually a bug in libraries.io and it resolved when they fixed it.