Files: b817a22329dc2038d6896282542635e15961b37b / app / reducer.js
421 bytesRaw
1 | const bulk = require('bulk-require') |
2 | const { combineReducers } = require('redux') |
3 | const { routeReducer } = require('redux-simple-router') |
4 | const { map } = require('ramda') |
5 | |
6 | module.exports = combineReducers({ |
7 | ...map( |
8 | (module) => module.reducer, |
9 | bulk(__dirname, '*/reducer.js') |
10 | ), |
11 | ...map( |
12 | (module) => combineReducers(module.reducers), |
13 | bulk(__dirname, '*/reducers/*.js') |
14 | ), |
15 | routing: routeReducer |
16 | }) |
17 |
Built with git-ssb-web