Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Plans to publish to NPM? #8

Closed
KyleAMathews opened this issue Jul 29, 2014 · 16 comments
Closed

Plans to publish to NPM? #8

KyleAMathews opened this issue Jul 29, 2014 · 16 comments

Comments

@KyleAMathews
Copy link

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

@zpao
Copy link
Contributor

zpao commented Jul 29, 2014

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 :)

@KyleAMathews
Copy link
Author

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

Ok, will install manually for now.

@spoike
Copy link

spoike commented Jul 29, 2014

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

@KyleAMathews
Copy link
Author

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

@gillesruppert
Copy link

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

@ndreckshage
Copy link

Temporary until in NPM, but if it helps anyone:

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

package.json

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

then no build necessary

@mjackson
Copy link

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 :)

@maksimr
Copy link

maksimr commented Aug 14, 2014

+1

@WickyNilliams
Copy link

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

@mjackson thanks for this, much appreciated

@fisherwebdev
Copy link
Contributor

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

@WickyNilliams
Copy link

🎉

@mjackson
Copy link

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

@lenage
Copy link

lenage commented Sep 1, 2014

👍

@rafayepes
Copy link

Any plans on adding the dispatcher as standalone package?

@sophiebits
Copy link
Contributor

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

@fisherwebdev
Copy link
Contributor

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.

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

No branches or pull requests