Skip to content

Commit

Permalink
Update Babel to 7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Sep 26, 2018
1 parent 6193806 commit 32d368e
Show file tree
Hide file tree
Showing 10 changed files with 991 additions and 887 deletions.
9 changes: 4 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"presets": [
"env",
"react"
"@babel/env",
"@babel/react"
],
"plugins": [
"transform-runtime",
"transform-class-properties",
"transform-object-rest-spread"
"@babel/transform-runtime",
"@babel/proposal-class-properties"
]
}
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"es6": "src/entry.js",
"scripts": {
"build": "yarn run build-js && yarn run copy-styles",
"build-js": "babel src -d dist --ignore __tests__",
"build-js": "babel src -d dist --ignore **/__tests__",
"clean": "rimraf dist",
"copy-styles": "node ./copy-styles.js",
"prepublishOnly": "yarn run clean && yarn run build",
Expand Down Expand Up @@ -77,31 +77,32 @@
],
"license": "MIT",
"dependencies": {
"babel-runtime": "^6.26.0",
"@babel/runtime": "^7.0.0",
"lodash.once": "^4.1.1",
"make-event-props": "^1.0.0",
"merge-class-names": "^1.1.1",
"pdfjs-dist": "^2.0.550",
"prop-types": "^15.6.2"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.6.0",
"babel-eslint": "^9.0.0",
"enzyme": "^3.4.0",
"enzyme-adapter-react-16": "^1.2.0",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"jest": "^23.5.0",
"jest-cli": "^23.5.0",
"jest": "^23.6.0",
"jest-cli": "^23.6.0",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"rimraf": "^2.6.2",
Expand Down
8 changes: 4 additions & 4 deletions sample/parcel/.babelrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"presets": [
[
"env",
"@babel/env",
{
"modules": false
}
],
"react"
"@babel/react"
],
"plugins": [
"transform-runtime",
"transform-class-properties"
"@babel/transform-runtime",
"@babel/proposal-class-properties"
]
}
16 changes: 8 additions & 8 deletions sample/parcel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
"react-pdf": "latest"
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"eslint": "^4.19.1",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^10.0.0",
"eslint": "^5.6.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"less": "~3.7.1",
"parcel-bundler": "1.5.1"
"parcel-bundler": "^1.10.0"
}
}
8 changes: 4 additions & 4 deletions sample/webpack/.babelrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"presets": [
[
"env",
"@babel/env",
{
"modules": false
}
],
"react"
"@babel/react"
],
"plugins": [
"transform-runtime",
"transform-class-properties"
"@babel/transform-runtime",
"@babel/proposal-class-properties"
]
}
16 changes: 8 additions & 8 deletions sample/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
"react-pdf": "latest"
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"babel-loader": "^7.1.5",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^10.0.0",
"babel-loader": "^8.0.2",
"copy-webpack-plugin": "^4.5.2",
"css-loader": "^1.0.0",
"eslint": "^4.19.1",
"eslint": "^5.6.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
Expand Down
8 changes: 4 additions & 4 deletions test/.babelrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"presets": [
[
"env",
"@babel/env",
{
"modules": false
}
],
"react"
"@babel/react"
],
"plugins": [
"transform-runtime",
"transform-class-properties",
"@babel/transform-runtime",
"@babel/proposal-class-properties",
"react-hot-loader/babel"
]
}
14 changes: 7 additions & 7 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"react-pdf": "latest"
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"babel-loader": "^7.1.5",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^9.0.0",
"babel-loader": "^8.0.2",
"copy-webpack-plugin": "^4.5.2",
"css-loader": "^1.0.0",
"eslint": "^4.19.1",
Expand Down
5 changes: 2 additions & 3 deletions test/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ module.exports = {
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: [
'babel-loader',
],
loader: 'babel-loader',
options: { babelrcRoots: ['.', '../'] },
},
],
},
Expand Down
Loading

0 comments on commit 32d368e

Please sign in to comment.