├── .babelrc ├── .gitignore ├── README.md ├── LICENSE └── package.json /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015", "react", "stage-2"] 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 18 | .grunt 19 | 20 | # node-waf configuration 21 | .lock-wscript 22 | 23 | # Compiled binary addons (http://nodejs.org/api/addons.html) 24 | build/Release 25 | 26 | # Dependency directory 27 | node_modules 28 | 29 | # Optional npm cache directory 30 | .npm 31 | 32 | # Optional REPL history 33 | .node_repl_history 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## react项目中 redux-saga 的学习 2 | 3 | - [01-hellosaga](https://github.com/IFmiss/redux-saga-study/tree/01-hellosaga) 4 | - [02-onIncrementAsync](https://github.com/IFmiss/redux-saga-study/tree/02-onIncrementAsync) 5 | - [03-sagahelpers](https://github.com/IFmiss/redux-saga-study/tree/03-sagahelpers) 6 | - [04-effects](https://github.com/IFmiss/redux-saga-study/tree/04-effects) 7 | - [05-put](https://github.com/IFmiss/redux-saga-study/tree/05-put) 8 | - [06-error](https://github.com/IFmiss/redux-saga-study/tree/06-error) 9 | - [07-future-actions](https://github.com/IFmiss/redux-saga-study/tree/07-future-actions) 10 | - [08-no-blocking-call](https://github.com/IFmiss/redux-saga-study/tree/08-no-blocking-call) 11 | - [09-more-mission](https://github.com/IFmiss/redux-saga-study/tree/09-more-mission) 12 | - [10-race](https://github.com/IFmiss/redux-saga-study/tree/10-race) 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Yassine Elouafi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "redux-saga-beginner-tutorial", 3 | "version": "0.0.0", 4 | "description": "Redux Saga beginner tutorial", 5 | "main": "lib/index.js", 6 | "scripts": { 7 | "test": "babel-node sagas.spec.js | tap-spec", 8 | "start": "budo main.js:build.js --dir ./ --verbose --live -- -t babelify" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git+https://github.com/redux-saga/redux-saga-beginner-tutorial.git" 13 | }, 14 | "author": "Yassine ELOUAFI ", 15 | "license": "MIT", 16 | "dependencies": { 17 | "axios": "^0.18.0", 18 | "babel-polyfill": "6.3.14", 19 | "react": "^0.14.3", 20 | "react-dom": "^0.14.3", 21 | "react-redux": "^5.1.1", 22 | "redux": "^3.3.1", 23 | "redux-saga": "^0.15.0" 24 | }, 25 | "devDependencies": { 26 | "babel-cli": "^6.1.18", 27 | "babel-core": "6.4.0", 28 | "babel-preset-es2015": "^6.1.18", 29 | "babel-preset-react": "^6.1.18", 30 | "babel-preset-stage-2": "^6.1.18", 31 | "babelify": "^7.2.0", 32 | "browserify": "^13.0.0", 33 | "budo": "^8.0.4", 34 | "tap-spec": "^4.1.1", 35 | "tape": "^4.2.2" 36 | } 37 | } 38 | --------------------------------------------------------------------------------