anvaka / VivaGraphJS

Graph drawing library for JavaScript
Other
3.76k stars 425 forks source link

Bower manifest #95

Closed sheerun closed 9 years ago

sheerun commented 10 years ago

Did you think about including bower manifest for your library?

anvaka commented 10 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?

sheerun commented 10 years ago

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.

jonaswindey commented 10 years ago

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.

anvaka commented 10 years ago

@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.

sheerun commented 10 years ago

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.

anvaka commented 10 years ago

@sheerun I'm sorry, I'm probably missing something. Could you please elaborate on what is dependency flattening?

sheerun commented 10 years ago

bower doesn't allow 2 versions of the same component to be available at once. npm allows it.

wafcio commented 10 years ago

@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.

anvaka commented 9 years ago

Fixed in https://github.com/anvaka/VivaGraphJS/commit/7189526805aa3d42df14b192f404df752f303797