2.0.2 • Published 7 years ago

generator-react-mobx v2.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

generator-react-mobx

NPM version

Yeoman generator for react, with mobx as state machine

You can view the online demo at: http://leftstick.github.io/generator-react-mobx

Prerequisites

  1. Install yeoman: npm install -g yo
  2. Install this: npm install -g generator-react-mobx

prepend with sudo if you are running on *nix OS.

Use generator-react-mobx

yo react-mobx

Answer questions as following demonstrated

npm.io

And then, project generated.

Debug your app

The full featured dev/dist tools are provided, it's easy to start debugging your app.

Just move into the created directory with the given project name.

Run npm start to start a debug web server for the project.

Open http://localhost:8080/ to see the playable skeleton, and have fun.

Release your app

Release means, generate output bundles by using webpack. It's good using the released resources as your production code.

Move the root of the created project.

Run npm run build to compile all the source code into webpack bundles. And all required resources are generated into {root}/dist/.

You can copy the dist folder to anywhere you like, it's the released app.

References

  1. es6-class
  2. decorator
  3. react
  4. mobx
  5. webpack
  6. yeoman

LICENSE

MIT License

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago