Borex
Borex is helper library for redux.
Learn it by Documentation (sorry, it is still draft in russian).
Also check rewritten counter example and another remake with self-reducing actions. The same for TodoMVC example (remake with self-reducing actions).
Action helper
npm install -S borex-actions
borex-actions
provides utilities for action creating.
;;;;; const increment = ;const decrement = ; const addItem = ; const fatAction = ;
Reducer helpers
npm install -S borex-reducers
borex-reducers
provides utilities for reducer declaration.
;;;; ; const counterReducer = ; const dataReducer = ; const rootReducer = ;
Autotype babel plugin
npm install -D babel-plugin-borex-autotype
.babelrc
{
"plugins": [
"babel-plugin-borex-autotype"
]
}
This plugin inserts names for all anonymous actionCreator
calls.
Input(counter.js):
const increment = ;
Output:
const increment = ;
Check plugin documentation page for more details.
Name and logo
The idea is
borex
= BOilerplate REducer for reduX
Also it looks like Boreas with super-duper modern -X suffix :) This fact explains logo (Boreas is Greek god of North Wind).