Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation via Bower #579

Closed
asiniy opened this issue Aug 19, 2015 · 12 comments
Closed

Installation via Bower #579

asiniy opened this issue Aug 19, 2015 · 12 comments

Comments

@asiniy
Copy link

asiniy commented Aug 19, 2015

Hey there!

I am bower user and I want to install redux using my bower manager. How can I do it?

@timdorr
Copy link
Member

timdorr commented Aug 20, 2015

You can't. Redux isn't packaged like a component (nor does it really behave like one). You should use npm and something like webpack or browserify to make require() available. Bonus points for using babel.

@gaearon
Copy link
Contributor

gaearon commented Aug 20, 2015

@timdorr This is not quite right. There is a standalone build of Redux. It's even available on cdnjs (we should document that).

@asiniy I'm up for supporting Bower if there is enough interest in it. But Redux is usually used with many other small packages, and since they are all on NPM, I don't think it's likely you'll persuade their maintainers to also provide Bower versions. In the long run it's easier for everyone to just use NPM.

If you absolutely can't use NPM, grab the pre-built file from cdnjs and put it in your vendor folder.

@timdorr
Copy link
Member

timdorr commented Aug 20, 2015

Oh, my bad. Didn't even know.

In that case, you can manage downloading via Bower. Just put the cdnjs URL as the version for your dependencies.

  "dependencies": {
    "redux": "https://cdnjs.cloudflare.com/ajax/libs/redux/1.0.1/redux.js",
  },

@asiniy
Copy link
Author

asiniy commented Aug 21, 2015

@timdorr, thanks for code.

@Gaeron other small packages (jquery, react) are placed on the Bower too ;)

@sergey-lapin
Copy link

@asiniy If you call jquery, react "small packages" then yes =)

@asiniy
Copy link
Author

asiniy commented Aug 21, 2015

@Lapanoid what do you mean by small packages?

@gaearon
Copy link
Contributor

gaearon commented Aug 21, 2015

@gaearon other small packages (jquery, react) are placed on the Bower too ;)

In my original message:

But Redux is usually used with many other small packages, and since they are all on NPM

I didn't mean to call React or jQuery small :-).

I'm referring to many other packages related to Redux:

etc

@redexp
Copy link

redexp commented Aug 26, 2015

You will ignore a huge community of frontend package managers?

It's so frustrating when I can't find pre build version in repo. You already prepared webpack config, is it so difficult to make dist/redux.js and dist/redux.min.js like everybody else?

When redux will become more popular, someone will create fork of this repo and will add it to bower (as always).

@gaearon
Copy link
Contributor

gaearon commented Aug 26, 2015

It's so frustrating when I can't find pre build version in repo. You already prepared webpack config, is it so difficult to make dist/redux.js and dist/redux.min.js like everybody else?

I wrote above that the built code is available:

https://cdnjs.cloudflare.com/ajax/libs/redux/1.0.1/redux.js
https://cdnjs.cloudflare.com/ajax/libs/redux/1.0.1/redux.min.js

Instead of writing this comment you could've taken time to edit the README to include the links to them, and sent a PR. Just sayin'

@gaearon
Copy link
Contributor

gaearon commented Aug 26, 2015

Using Bower is a bad idea. If you use Bower and want to fork the repo, please do it, but we won't support it. I explained above that it makes little sense with Redux's ecosystem because most of complementary packages are small and are all on NPM.

We also won't put build products into Git repo. Otherwise every second new PR will contain changes to the built files, because people will keep doing this.

@reduxjs reduxjs locked and limited conversation to collaborators Aug 26, 2015
@gaearon
Copy link
Contributor

gaearon commented Aug 26, 2015

Hope this helps: #630
This is what you could do instead of writing a rant.

@gaearon
Copy link
Contributor

gaearon commented Oct 24, 2015

To sum up this thread:

  1. We won't provide a Bower package and won't change this decision for reasons.
  2. bower install https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js if you need to

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants