Plans to publish to NPM?
E.g. is the code here something you intend for others to use or is just for learning purposes?
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 :)
That's because you haven't experienced the HUNGER! :D j/k... kinda.
Ok, will install manually for now.
Or you could try using reflux instead, it requires less boilerplate code. It's available on npm and bower. ;-)
I'm all for competition :) Checking it out.
+1. Installing manually for now but looking forward to this issue being resolved :smile:
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
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 :)
+1
+1, lack of npm module is an annoying barrier to entry.
@mjackson thanks for this, much appreciated
News: 'npm install flux' now installs this project. Yay! Check it out: https://www.npmjs.org/package/flux
🎉
@fisherwebdev :smiley: nice work! I'll get rid of the react-dispatcher package.
:+1:
Any plans on adding the dispatcher as standalone package?
@rafayepes Do you mean separately from the flux package? What advantage would there be?
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.