Skip to content

Commit 07811af

Browse files
committed
update dependencies, add git push hook
1 parent d8ab4e9 commit 07811af

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"react-dom": "^15.4.1",
4242
"react-redux": "^5.0.3",
4343
"redux": "^3.5.1",
44-
"redux-logger": "^2.8.1",
44+
"redux-logger": "^3.0.0",
4545
"redux-thunk": "^2.2.0"
4646
},
4747
"peerDependencies": {
@@ -69,6 +69,7 @@
6969
"eslint-plugin-babel": "^4.0.0",
7070
"eslint-plugin-react": "^6.7.1",
7171
"expect": "^1.20.2",
72+
"ghooks": "^2.0.0",
7273
"http-server": "^0.9.0",
7374
"istanbul-instrumenter-loader": "^2.0.0",
7475
"jasmine-core": "^2.5.2",
@@ -97,15 +98,20 @@
9798
"react-hot-loader": "^3.0.0-beta.6",
9899
"redux-devtools": "^3.3.1",
99100
"redux-mock-store": "^1.2.1",
100-
"sinon": "^1.17.6",
101+
"sinon": "^2.1.0",
101102
"sinon-chai": "^2.8.0",
102-
"style-loader": "^0.13.1",
103+
"style-loader": "^0.16.0",
103104
"stylint": "^1.5.9",
104105
"stylint-stylish": "^1.4.0",
105106
"stylus": "^0.54.5",
106107
"stylus-loader": "^3.0.1",
107108
"url-loader": "^0.5.7",
108109
"webpack": "^2.2.1",
109110
"webpack-dev-server": "^2.3.0"
111+
},
112+
"config": {
113+
"ghooks": {
114+
"pre-push": "npm run lint && npm run test"
115+
}
110116
}
111117
}

src/store/configureStore.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { compose, createStore, applyMiddleware } from 'redux';
22
import rootReducer from '../reducers';
33
import thunk from 'redux-thunk';
4-
import createLogger from 'redux-logger';
4+
import logger from 'redux-logger';
55

66
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
77

88
export default function configureStore(initialState) {
9-
const logger = createLogger();
109
const store = createStore(rootReducer, initialState, composeEnhancers(
1110
applyMiddleware(
1211
thunk,

0 commit comments

Comments
 (0)