FountainJS / generator-fountain-react

Yeoman 'fountain' generator to start a webapp with React
http://fountainjs.io
MIT License
36 stars 11 forks source link

Immutable and Ducks #69

Open chadfurman opened 7 years ago

chadfurman commented 7 years ago

Prerequisites

Install React with the ToDo MVC app selected.

Description

This is primarily about the ToDoMVC app.

Immutable.js would be good to use in the examples. It is a great tool to learn right-off-the-bat.
https://www.toptal.com/react/react-redux-and-immutablejs

Also, Ducks are a great design pattern for Redux and I highly suggest it be used in the generator here. https://github.com/erikras/ducks-modular-redux

Error Message & Stack Trace

None

Config

Copy the content from .yo-rc.json:

{                                                                                                                               
  "generator-fountain-react": {
    "version": "1.0.0-rc2",    
    "props": {
      "framework": "react",    
      "modules": "webpack",    
      "js": "babel",
      "ci": [],
      "css": "scss",
      "skipInstall": true,     
      "resolved": "/Users/swiip/Workspace/FountainJS/fountain/generator-fountain-react/generators/app/index.js",
      "namespace": "fountain-react",  
      "argv": {
        "remain": [],
        "cooked": [],
        "original": []
      },
      "sample": "todoMVC",     
      "router": "router"
    }
  }
} 

Relevant Links

https://github.com/erikras/ducks-modular-redux https://www.toptal.com/react/react-redux-and-immutablejs

Environment

lotus@InfiniteDesktop:~/code/draftlibrary$ node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
Node.js v6.6.0
linux 3.16.0-4-amd64
lotus@InfiniteDesktop:~/code/draftlibrary$ yo --version
1.8.5
lotus@InfiniteDesktop:~/code/draftlibrary$ npm --version
3.9.5