git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 2701b2aa389b3a8acde4ec8c6b2ffe3b13cc49a4

Files: 2701b2aa389b3a8acde4ec8c6b2ffe3b13cc49a4 / 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