jQRangeSlider icon indicating copy to clipboard operation
jQRangeSlider copied to clipboard

Add bower.json for bower support

Open mrzmyr opened this issue 11 years ago • 6 comments

It would be great to have a bower.json (define a package) in the repo for bower support and also register it in the collection of repos.

This avoids to clone the whole repo as dependency in bower (which is highly discussed here).

mrzmyr avatar Oct 07 '13 11:10 mrzmyr

I'm not using bower, I'll be glad if someone else could do it and check it works as expected.

ghusse avatar Oct 31 '13 12:10 ghusse

Here is my fork, this would be a valid bower.json (the paths have be aligned) https://github.com/mrzmyr/jQRangeSlider/blob/master/bower.json

mrzmyr avatar Oct 31 '13 13:10 mrzmyr

Thanks for your work!

Just a question: where do the minified versions of js files come from? They are not pushed in the repo, and they are the result of a grunt script. How does it work?

ghusse avatar Oct 31 '13 13:10 ghusse

I pushed them in there to handle them easily after a bower install. There are a lot of discussions about this topic and the specs:

  • https://github.com/bower/bower/issues/110
  • https://github.com/twbs/bootstrap/issues/8985
  • https://github.com/bower/bower/issues/935

mrzmyr avatar Nov 02 '13 12:11 mrzmyr

That's why I don't want to suport bower at this time: I don't want to add minified files in my git repo.

ghusse avatar Dec 04 '13 10:12 ghusse

Hi guys, I'm trying JQRangeSlider and good job for your great lib.

We also use bower for our dependencies and a lot of js libs include a dist dir with final js and minified js. But if you really don't want push a dist dir in your dev repo, others libs generaly create a separate dist repo with js, min.js, css and bower.json.

Regards

ncoquelet avatar May 18 '15 15:05 ncoquelet