git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: b817a22329dc2038d6896282542635e15961b37b

Files: b817a22329dc2038d6896282542635e15961b37b / 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