Skip to content

Commit

Permalink
Merge pull request #13 from derzunov/feature/babel7migrate
Browse files Browse the repository at this point in the history
Upgrade to Babel 7
  • Loading branch information
derzunov authored Feb 19, 2019
2 parents 8cb51ca + 46bf314 commit 8c99792
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"presets": ["env","react"],
"plugins": ["transform-object-rest-spread", "transform-runtime"]
"presets": ["@babel/env","@babel/react"],
"plugins": ["@babel/plugin-proposal-object-rest-spread", "@babel/plugin-transform-runtime"]
}
5 changes: 4 additions & 1 deletion example/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"presets": ["env", "react"]
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
12 changes: 6 additions & 6 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"author": "derzunov <[email protected]>",
"license": "MIT",
"dependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"body-parser": "^1.18.2",
"config": "^1.30.0",
"del": "^3.0.0",
Expand All @@ -24,12 +24,12 @@
"react-redux": "^5.0.7",
"redux": "^3.7.2",
"redux-form": "^7.3.0",
"redux-react-i18n": "2.0.0",
"redux-thunk": "^2.2.0",
"run-sequence": "^2.2.1",
"stream-combiner2": "^1.1.1",
"webpack": "^2.2.1",
"webpack-dev-server": "^2.4.1",
"webpack-stream": "^3.2.0",
"redux-react-i18n": ">=1.2.0"
"webpack-stream": "^3.2.0"
}
}
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-react-i18n",
"version": "1.3.0",
"version": "2.0.0",
"description": "i18n solution for react/redux",
"main": "lib/index.js",
"scripts": {
Expand All @@ -10,12 +10,15 @@
"build": "npm run compile"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/polyfill": "^7.2.5",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.4.2",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"jest": "^22.4.3",
Expand All @@ -41,10 +44,10 @@
},
"homepage": "https://github.com/derzunov/redux-react-i18n#readme",
"peerDependencies": {
"react": ">=16.0.0",
"react-dom": ">=16.0.0",
"react-redux": ">=5.0.0",
"redux": ">=3.0.0",
"react": ">=16.0.0"
"redux": ">=3.0.0"
},
"dependencies": {
"translatr": ">=2.1.0"
Expand Down

0 comments on commit 8c99792

Please sign in to comment.