git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: d7bb4a1cb809f7db3135cc7d21052d9c2636bd45

Files: d7bb4a1cb809f7db3135cc7d21052d9c2636bd45 / app / reducer.js

444 bytesRaw
1const bulk = require('bulk-require')
2import { combineReducers } from 'redux'
3import { routeReducer } from 'redux-simple-router'
4import { map } from 'ramda'
5
6export default combineReducers({
7 ...map(
8 (module) => module.reducer.default,
9 bulk(__dirname, '*/reducer.js')
10 ),
11 ...map(
12 (module) => combineReducers(
13 module.reducers.map(m => m.default)
14 ),
15 bulk(__dirname, '*/reducers/*.js')
16 ),
17 routing: routeReducer
18})
19

Built with git-ssb-web