flux icon indicating copy to clipboard operation
flux copied to clipboard

Please add it to bower. Maybe without the need for any dependencies on npm/node?

Open totty90 opened this issue 12 years ago • 10 comments

totty90 avatar Sep 17 '14 19:09 totty90

bower depends on both npm and node...

briandipalma avatar Sep 17 '14 20:09 briandipalma

What is the problem with that?

totty90 avatar Sep 18 '14 07:09 totty90

Well how can something that uses bower not depend on node/npm?

briandipalma avatar Sep 18 '14 08:09 briandipalma

Just publish it to bower... I don't understand what is so complicated about that. Why do you care whenever bower depends on node/npm? It doesn't matter.

totty90 avatar Sep 18 '14 13:09 totty90

"publishing" to bower actually means we need to keep compiled files in the repo. That might not be the worst thing, but is the exact reason we actually maintain a separate repo with builds for React (https://github.com/facebook/react-bower). It's not as simple as publishing compiled files to npm.

@briandipalma Please take it elsewhere. Yes, I mostly agree that bower is silly for how I build sites, but it serves a slightly different purpose than npm, even if it depends on node/npm. So let's respect the people who use it.

@fisherwebdev I think we could do this. I would probably just say have a dist folder and only add the Flux.js file there when we tag version updates (bower depends on git tags), rejecting other changes to that file. If you're interested, let's chat and iron it out.

zpao avatar Sep 19 '14 01:09 zpao

Thanks for your attention.

totty90 avatar Sep 19 '14 09:09 totty90

+1

It'd be great to see this in bower. My team uses bower for our client code and if absolutely nothing else, this would make it even easier to bring into our projects.

Plus there's the fact that React is in bower, so publishing it there would allow us to keep our dependencies ~~clean~~ cleaner ;)

aaronik avatar Sep 19 '14 22:09 aaronik

Done. bower install flux will give you bower_components/flux/dist/Flux.js, which if you add to your page will give you a global Flux object. Flux.dispatcher is your dispatcher.

fisherwebdev avatar Sep 22 '14 17:09 fisherwebdev

Thanks, Bill (:

totty90 avatar Sep 22 '14 18:09 totty90

@fisherwebdev That's cool. Maybe it would be worth putting that in the docs (readme) as well? :)

upchuk avatar Feb 12 '15 14:02 upchuk