Skip to content

Commit

Permalink
Cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
jschoubben committed Jun 8, 2021
1 parent 3c9cee1 commit 39ab29f
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 122 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"homepage": "http://digipolisantwerp.github.io/antwerp-ui_react",
"scripts": {
"start": "npx styleguidist server",
"test": "jest",
"test": "jest --coverage",
"bootstrap": "lerna bootstrap",
"build": "lerna exec --parallel -- rollup -c",
"postbuild": "rollup -c",
Expand Down
5 changes: 1 addition & 4 deletions packages/accordion/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/alert/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/autocomplete/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'react-dom', 'classnames', 'react-input-mask'],
Expand Down
5 changes: 1 addition & 4 deletions packages/avatar/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/badge/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/breadcrumbs/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames', 'react-input-mask', 'moment', 'react-dom'],
Expand Down
5 changes: 1 addition & 4 deletions packages/button/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/calendar/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames', 'moment'],
Expand Down
5 changes: 1 addition & 4 deletions packages/card/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/contact/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react'],
Expand Down
5 changes: 1 addition & 4 deletions packages/content/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/flyout-button/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/flyout/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'react-dom', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/footer/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/form/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames', 'react-input-mask', 'moment', 'react-dom'],
Expand Down
5 changes: 1 addition & 4 deletions packages/header/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/hero/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/icon/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/label/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/link/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/modal/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
}),
],
external: ['react', 'classnames', 'react-modal'],
Expand Down
5 changes: 1 addition & 4 deletions packages/pagination/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ["node_modules/**"],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ["react", "classnames", "react-modal"]
Expand Down
5 changes: 1 addition & 4 deletions packages/slider/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/spinner/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/steps/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/switch/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/tabs/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/taglist/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/toggle/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'classnames'],
Expand Down
5 changes: 1 addition & 4 deletions packages/user-menu/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ export default {
babel({
babelHelpers: 'bundled',
exclude: ['node_modules/**'],
presets: [
"@babel/preset-flow",
"@babel/preset-react"
]
configFile: "../../babel.config.js"
})
],
external: ['react', 'react-dom', 'classnames'],
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
devtool: 'eval-cheap-source-map',
module: {
rules: [
// Babel loader, will use your project’s fsdajkfdsak;ljfaklds;jfasd.js
// Babel loader, will use your project’s babel.config.js
{
test: /\.jsx?$/,
exclude: /node_modules/,
Expand Down

0 comments on commit 39ab29f

Please sign in to comment.