Skip to content

Commit 8eb251b

Browse files
committed
chore: merge branch 'semantic-release' of /Users/andy/es2015-library-skeleton
2 parents 23b55a7 + ad5f0b8 commit 8eb251b

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": [
3-
"eslint-config-andy", "eslint-config-andy-flow"
3+
"@jedwards1211/eslint-config", "@jedwards1211/eslint-config-flow"
44
]
55
}

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[ignore]
22
<PROJECT_ROOT>/lib/.*
3-
<PROJECT_ROOT>/node_modules/.*
3+
.*/node_modules/.*/tests?/.*\.json
44

55
[include]
66
./src

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/jcoreio/redux-utils.svg?branch=master)](https://travis-ci.org/jcoreio/redux-utils)
44
[![Coverage Status](https://coveralls.io/repos/github/jcoreio/redux-utils/badge.svg?branch=master)](https://coveralls.io/github/jcoreio/redux-utils?branch=master)
5+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
56

67
## createReducer([initialState: any,] actionHandlers: {[actionType: string]: Reducer}): Reducer
78
```js
@@ -71,6 +72,7 @@ If the decorated reducer has `actionHandlers` (from `createReducer`), then the r
7172
`actionHandlers` with the prefixed action type keys.
7273

7374
### Example
75+
```es6
7476
import {combineReducers} from 'redux'
7577
import {createReducer, prefixReducer} from 'mindfront-redux-utils'
7678

@@ -87,6 +89,7 @@ const reducer = combineReducers({
8789
reducer({}, {type: 'COUNTER_1.INCREMENT'}) // {counter1: 1}
8890
reducer({counter1: 3, counter2: 3}, {type: 'COUNTER_1.DECREMENT'}) // {counter1: 2, counter2: 3}
8991
reducer({counter1: 3, counter2: 3}, {type: 'COUNTER_2.INCREMENT'}) // {counter1: 3, counter2: 4}
92+
```
9093

9194
## prefixActionCreator(prefix: string): (actionCreator: ActionCreator) => ActionCreator
9295
```js
@@ -96,6 +99,7 @@ import {prefixActionCreator} from 'mindfront-redux-utils';
9699
An action creator decorator that prepends `prefix` to the `type` of the created actions.
97100

98101
### Example
102+
```es6
99103
import {prefixActionCreator} from 'mindfront-redux-utils'
100104

101105
function setEntry(key, value) {
@@ -109,6 +113,7 @@ function setEntry(key, value) {
109113
const setConfigEntry = prefixActionCreator('CONFIG.')(setEntry)
110114

111115
setConfigEntry('hello', 'world').type // CONFIG.SET_ENTRY
116+
```
112117

113118
## addMeta(meta: Object): (actionCreator: ActionCreator) => ActionCreator
114119
```js
@@ -118,6 +123,7 @@ import {addMeta} from 'mindfront-redux-utils';
118123
An action creator decorator that assigns additional properties to created actions' `meta`.
119124

120125
### Example
126+
```es6
121127
import {addMeta} from 'mindfront-redux-utils'
122128

123129
function setEntry(key, value) {
@@ -131,4 +137,6 @@ function setEntry(key, value) {
131137
const setConfigEntry = addMeta({domain: 'config'})(setEntry)
132138

133139
setConfigEntry('hello', 'world').meta // {key: 'hello', domain: 'config'}
140+
```
141+
134142

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
"instrument": false
4949
},
5050
"devDependencies": {
51+
"@jedwards1211/eslint-config": "^1.0.0",
52+
"@jedwards1211/eslint-config-flow": "^1.0.0",
5153
"babel-cli": "^6.18.0",
5254
"babel-core": "^6.18.2",
5355
"babel-eslint": "^7.1.1",
@@ -61,15 +63,11 @@
6163
"chai": "^3.5.0",
6264
"copy": "^0.3.0",
6365
"coveralls": "^2.11.15",
64-
"es6-promisify": "^5.0.0",
6566
"eslint": "^3.11.1",
66-
"eslint-config-andy": "github:jedwards1211/eslint-config-andy#2.0.0-beta7",
67-
"eslint-config-andy-flow": "github:jedwards1211/eslint-config-andy-flow#1.0.0-beta2",
6867
"eslint-plugin-flowtype": "^2.28.2",
6968
"eslint-watch": "^2.1.14",
7069
"flow-bin": "^0.36.0",
7170
"flow-watch": "^1.1.0",
72-
"glob": "^7.1.1",
7371
"istanbul": "^0.4.5",
7472
"mocha": "^3.2.0",
7573
"nyc": "^10.0.0",

0 commit comments

Comments
 (0)