mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-02-19 21:10:55 +03:00
Merge update to Babel 6
This commit is contained in:
commit
10319e16e3
3
.babelrc
3
.babelrc
|
@ -1,4 +1,3 @@
|
||||||
{
|
{
|
||||||
"stage": 0,
|
"presets": ["es2015-loose", "stage-0", "react"]
|
||||||
"loose": "all"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"stage": 0
|
"presets": ["es2015-loose", "stage-0", "react"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,8 +23,12 @@
|
||||||
"redux-thunk": "^1.0.0"
|
"redux-thunk": "^1.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "^5.6.18",
|
"babel-cli": "^6.3.17",
|
||||||
"babel-loader": "^5.1.4",
|
"babel-core": "^6.3.17",
|
||||||
|
"babel-loader": "^6.2.0",
|
||||||
|
"babel-preset-es2015-loose": "^6.1.3",
|
||||||
|
"babel-preset-react": "6.3.13",
|
||||||
|
"babel-preset-stage-0": "^6.3.13",
|
||||||
"node-libs-browser": "^0.5.2",
|
"node-libs-browser": "^0.5.2",
|
||||||
"react-hot-loader": "^1.3.0",
|
"react-hot-loader": "^1.3.0",
|
||||||
"redux-devtools": "^3.0.0",
|
"redux-devtools": "^3.0.0",
|
||||||
|
|
|
@ -19,7 +19,7 @@ export default function configureStore(initialState) {
|
||||||
|
|
||||||
if (module.hot) {
|
if (module.hot) {
|
||||||
module.hot.accept('../reducers', () =>
|
module.hot.accept('../reducers', () =>
|
||||||
store.replaceReducer(require('../reducers'))
|
store.replaceReducer(require('../reducers').default)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"stage": 0
|
"presets": ["es2015-loose", "stage-0", "react"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,8 +35,12 @@
|
||||||
"redux": "^3.0.0"
|
"redux": "^3.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "^5.6.18",
|
"babel-cli": "^6.3.17",
|
||||||
"babel-loader": "^5.1.4",
|
"babel-core": "^6.3.17",
|
||||||
|
"babel-loader": "^6.2.0",
|
||||||
|
"babel-preset-es2015-loose": "^6.1.3",
|
||||||
|
"babel-preset-react": "6.3.13",
|
||||||
|
"babel-preset-stage-0": "^6.3.13",
|
||||||
"node-libs-browser": "^0.5.2",
|
"node-libs-browser": "^0.5.2",
|
||||||
"raw-loader": "^0.5.1",
|
"raw-loader": "^0.5.1",
|
||||||
"react-hot-loader": "^1.3.0",
|
"react-hot-loader": "^1.3.0",
|
||||||
|
|
|
@ -17,7 +17,7 @@ export default function configureStore(initialState) {
|
||||||
|
|
||||||
if (module.hot) {
|
if (module.hot) {
|
||||||
module.hot.accept('../reducers', () =>
|
module.hot.accept('../reducers', () =>
|
||||||
store.replaceReducer(require('../reducers'))
|
store.replaceReducer(require('../reducers').default)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
15
package.json
15
package.json
|
@ -7,8 +7,8 @@
|
||||||
"clean": "rimraf lib",
|
"clean": "rimraf lib",
|
||||||
"build": "babel src --out-dir lib",
|
"build": "babel src --out-dir lib",
|
||||||
"lint": "eslint src test examples",
|
"lint": "eslint src test examples",
|
||||||
"test": "NODE_ENV=test mocha --compilers js:babel/register --recursive",
|
"test": "NODE_ENV=test mocha --compilers js:babel-core/register --recursive",
|
||||||
"test:watch": "NODE_ENV=test mocha --compilers js:babel/register --recursive --watch",
|
"test:watch": "NODE_ENV=test mocha --compilers js:babel-core/register --recursive --watch",
|
||||||
"test:cov": "babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --recursive",
|
"test:cov": "babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --recursive",
|
||||||
"prepublish": "npm run lint && npm run test && npm run clean && npm run build"
|
"prepublish": "npm run lint && npm run test && npm run clean && npm run build"
|
||||||
},
|
},
|
||||||
|
@ -31,10 +31,13 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/gaearon/redux-devtools",
|
"homepage": "https://github.com/gaearon/redux-devtools",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel": "^5.5.8",
|
"babel-cli": "^6.3.17",
|
||||||
"babel-core": "^5.6.18",
|
"babel-core": "^6.3.17",
|
||||||
"babel-eslint": "^3.1.15",
|
"babel-eslint": "^4.1.6",
|
||||||
"babel-loader": "^5.1.4",
|
"babel-loader": "^6.2.0",
|
||||||
|
"babel-preset-es2015-loose": "^6.1.3",
|
||||||
|
"babel-preset-react": "6.3.13",
|
||||||
|
"babel-preset-stage-0": "^6.3.13",
|
||||||
"eslint": "^0.23",
|
"eslint": "^0.23",
|
||||||
"eslint-config-airbnb": "0.0.6",
|
"eslint-config-airbnb": "0.0.6",
|
||||||
"eslint-plugin-react": "^2.3.0",
|
"eslint-plugin-react": "^2.3.0",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user