Skip to content

Commit

Permalink
Upgrade babel to v7 and fixed styleguidist
Browse files Browse the repository at this point in the history
  • Loading branch information
jschoubben committed Jun 4, 2021
1 parent af9d8dd commit 6f9a03e
Show file tree
Hide file tree
Showing 35 changed files with 2,078 additions and 2,123 deletions.
19 changes: 4 additions & 15 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
{
"presets": [
[
"env",
"@babel/preset-env",
{
"modules": false
}
],
"stage-2",
"flow",
"react"
],
"env": {
"test": {
"presets": [
"env",
"stage-2",
"flow",
"react"
]
}
}
"@babel/preset-flow",
"@babel/preset-react"
]
}
3,735 changes: 1,763 additions & 1,972 deletions package-lock.json

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@
"prepublish": "npm run build"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-jest": "^23.4.2",
"babel-loader": "^7.1.5",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-react-jsx": "~6.24.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-flow": "~6.23.0",
"babel-preset-react": "~6.24.1",
"babel-preset-stage-2": "^6.24.1",
"@babel/core": "^7.14.3",
"@babel/plugin-external-helpers": "^7.12.13",
"@babel/plugin-transform-react-jsx": "^7.14.3",
"@babel/plugin-transform-runtime": "^7.14.3",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.14.4",
"@babel/preset-flow": "^7.13.13",
"@babel/preset-react": "^7.13.13",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"babel-jest": "^27.0.2",
"babel-loader": "^8.2.2",
"chai": "^4.2.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.4",
Expand All @@ -46,9 +48,9 @@
"lerna": "^4.0.0",
"react-addons-test-utils": "^15.6.2",
"react-styleguidist": "^11.1.5",
"rollup": "^2.26.9",
"rollup-plugin-babel": "^3.0.7",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup": "^2.50.6",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-sass": "^1.2.2",
"sinon": "^9.0.3",
"webpack": "^4.44.1"
},
Expand Down Expand Up @@ -102,8 +104,6 @@
"react-input-mask": "^2.0.4",
"react-modal": "~3.5.1",
"react-scripts": "^4.0.3",
"rollup-plugin-postcss": "^2.9.0",
"rollup-plugin-sass": "^1.2.2",
"rxjs": "^6.6.2",
"sass-loader": "^7.3.1",
"style-loader": "^0.23.1"
Expand Down
15 changes: 9 additions & 6 deletions packages/accordion/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@


import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';

export default {
Expand All @@ -13,8 +11,13 @@ export default {
plugins: [
resolve(),
babel({
exclude: ['node_modules/**']
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
})
],
external: ['react', 'classnames'],
};
};
13 changes: 9 additions & 4 deletions packages/alert/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';

export default {
Expand All @@ -13,8 +13,13 @@ export default {
plugins: [
resolve(),
babel({
exclude: ['node_modules/**']
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
})
],
external: ['react', 'classnames'],
};
};
11 changes: 8 additions & 3 deletions packages/autocomplete/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';
import sass from 'rollup-plugin-sass';

Expand All @@ -13,7 +13,12 @@ export default {
resolve(),
sass({ insert: true }),
babel({
exclude: ['node_modules/**']
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
})
],
external: ['react', 'react-dom', 'classnames', 'react-input-mask'],
Expand Down
13 changes: 9 additions & 4 deletions packages/avatar/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';

export default {
Expand All @@ -13,8 +13,13 @@ export default {
plugins: [
resolve(),
babel({
exclude: ['node_modules/**']
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
})
],
external: ['react', 'classnames'],
};
};
15 changes: 9 additions & 6 deletions packages/badge/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@


import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';

export default {
Expand All @@ -13,8 +11,13 @@ export default {
plugins: [
resolve(),
babel({
exclude: ['node_modules/**']
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
})
],
external: ['react', 'classnames'],
};
};
13 changes: 9 additions & 4 deletions packages/breadcrumbs/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';

export default {
Expand All @@ -13,8 +13,13 @@ export default {
plugins: [
resolve(),
babel({
exclude: ['node_modules/**']
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
})
],
external: ['react', 'classnames', 'react-input-mask', 'moment', 'react-dom'],
};
};
13 changes: 9 additions & 4 deletions packages/button/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';

export default {
Expand All @@ -13,8 +13,13 @@ export default {
plugins: [
resolve(),
babel({
exclude: ['node_modules/**']
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
})
],
external: ['react', 'classnames'],
};
};
13 changes: 9 additions & 4 deletions packages/calendar/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';

export default {
Expand All @@ -13,8 +13,13 @@ export default {
plugins: [
resolve(),
babel({
exclude: ['node_modules/**']
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
})
],
external: ['react', 'classnames', 'moment'],
};
};
13 changes: 9 additions & 4 deletions packages/card/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';

export default {
Expand All @@ -13,8 +13,13 @@ export default {
plugins: [
resolve(),
babel({
exclude: ['node_modules/**']
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
})
],
external: ['react', 'classnames'],
};
};
13 changes: 9 additions & 4 deletions packages/contact/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';

export default {
Expand All @@ -13,8 +13,13 @@ export default {
plugins: [
resolve(),
babel({
exclude: ['node_modules/**']
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
})
],
external: ['react'],
};
};
13 changes: 9 additions & 4 deletions packages/content/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';

export default {
Expand All @@ -13,8 +13,13 @@ export default {
plugins: [
resolve(),
babel({
exclude: ['node_modules/**']
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
})
],
external: ['react', 'classnames'],
};
};
13 changes: 9 additions & 4 deletions packages/flyout-button/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';

export default {
Expand All @@ -13,8 +13,13 @@ export default {
plugins: [
resolve(),
babel({
exclude: ['node_modules/**']
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
})
],
external: ['react', 'classnames'],
};
};
Loading

0 comments on commit 6f9a03e

Please sign in to comment.