git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: e23c5cb495edb5b4ada643232130eb307334ad7f

Files: e23c5cb495edb5b4ada643232130eb307334ad7f / app / reducer.js

421 bytesRaw
1const bulk = require('bulk-require')
2const { combineReducers } = require('redux')
3const { routeReducer } = require('redux-simple-router')
4const { map } = require('ramda')
5
6module.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