flux icon indicating copy to clipboard operation
flux copied to clipboard

Plans to publish to NPM?

Open KyleAMathews opened this issue 12 years ago • 16 comments

E.g. is the code here something you intend for others to use or is just for learning purposes?

KyleAMathews avatar Jul 29 '14 00:07 KyleAMathews

This code is usable and we'll publish this to npm sometime soonish. We weren't quite prepared for the attention this has gotten today :)

zpao avatar Jul 29 '14 02:07 zpao

That's because you haven't experienced the HUNGER! :D j/k... kinda.

Ok, will install manually for now.

KyleAMathews avatar Jul 29 '14 02:07 KyleAMathews

Or you could try using reflux instead, it requires less boilerplate code. It's available on npm and bower. ;-)

spoike avatar Jul 29 '14 15:07 spoike

I'm all for competition :) Checking it out.

KyleAMathews avatar Jul 29 '14 17:07 KyleAMathews

+1. Installing manually for now but looking forward to this issue being resolved :smile:

gillesruppert avatar Aug 04 '14 13:08 gillesruppert

Temporary until in NPM, but if it helps anyone:

https://github.com/ndreckshage/flux https://github.com/ndreckshage/flux/compare/facebook:master...master

package.json

"dependencies": {
    "flux": "git://github.com/ndreckshage/flux.git#master"
}
require('flux').Dispatcher;

then no build necessary

ndreckshage avatar Aug 09 '14 18:08 ndreckshage

Today I published an npm package called react-dispatcher. It's an npm-installable fork of this repo with the top-level export being set to the Dispatcher object. No other modifications have been (or will be) made to the source. All changes will be pulled from upstream.

Just npm install react-dispatcher and then

var Dispatcher = require('react-dispatcher');

@zpao You guys are more than welcome to that package name if you'd like to use it. For now, it just makes it easier for us to use the dispatcher :)

mjackson avatar Aug 12 '14 17:08 mjackson

+1

maksimr avatar Aug 14 '14 11:08 maksimr

+1, lack of npm module is an annoying barrier to entry.

@mjackson thanks for this, much appreciated

WickyNilliams avatar Aug 19 '14 09:08 WickyNilliams

News: 'npm install flux' now installs this project. Yay! Check it out: https://www.npmjs.org/package/flux

fisherwebdev avatar Aug 29 '14 16:08 fisherwebdev

🎉

WickyNilliams avatar Aug 29 '14 17:08 WickyNilliams

@fisherwebdev :smiley: nice work! I'll get rid of the react-dispatcher package.

mjackson avatar Aug 29 '14 19:08 mjackson

:+1:

lenage avatar Sep 01 '14 02:09 lenage

Any plans on adding the dispatcher as standalone package?

rafayepes avatar Sep 01 '14 18:09 rafayepes

@rafayepes Do you mean separately from the flux package? What advantage would there be?

sophiebits avatar Sep 01 '14 20:09 sophiebits

Currently, the flux npm module is essentially that -- the dispatcher along with its one dependency, the invariant module. If we want to go beyond that in the future with the flux module, then we'll need to come up with a solution to expose the dispatcher separately.

fisherwebdev avatar Sep 02 '14 04:09 fisherwebdev