Closed sheerun closed 9 years ago
I didn't have a need for it, since I manage dependencies with npm most of the time. What would bower manifest give?
It would give others possibility to consume easily your component in bower. Bower is flat package manager when npm is nested.
On Thursday, June 12, 2014, Andrei Kashcha notifications@github.com wrote:
I didn't have a need for it, since I manage dependencies with npm most of the time. What would bower manifest give?
— Reply to this email directly or view it on GitHub https://github.com/anvaka/VivaGraphJS/issues/95#issuecomment-45822479.
I would like to upvote this to.
The big difference for bower is that it manages client-side JS packages whereas npm manages server-side NodeJS packages.
Bower is great if somebody wants to use VivaGraphJS in his project without building it from scratch. With one line 'bower install vivagraphjs" it would take the /dist files and puts them locally.
@jonaswindey this is a common misconception about npm
. It works well for both server side and client side code.
If you want to grab latest version of vivagraph from github, just call npm install anvaka/VivaGraphJS
. Then just feed node_modules/vivagraphjs/dist/*.js
into grunt/gulp/cat to minify the library.
Of course you can use npm to install single dependency, but front-end packagement requires flattening dependencies. That's why people use bower instead npm and would like to download your component with bower instead npm.
@sheerun I'm sorry, I'm probably missing something. Could you please elaborate on what is dependency flattening?
bower doesn't allow 2 versions of the same component to be available at once. npm allows it.
@anvaka I am Ruby developer, and i think it would be good to have bower for other project. In this case project which use your library need only one version of library. Your project have over 1 thousand stars, and it is good to think about other people which use it. I think added bower file is not big problem, but it can help a lot.
Did you think about including bower manifest for your library?