Skip to content

Commit 6315aa4

Browse files
author
Gitlab-CI
committed
feat(babel): upgrade to babel 7 and update @bootstrap-styled/v4
1 parent 973bd77 commit 6315aa4

File tree

5 files changed

+75
-59
lines changed

5 files changed

+75
-59
lines changed

.babelrc

Lines changed: 0 additions & 35 deletions
This file was deleted.

.npmignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
src
22
sonar-project.properties
33
.gitlab-ci.yml
4+
.travis.yml
5+
.npmrc
6+
CONTRIBUTING.md
7+
CODE_OF_CONDUCT.md
8+
CHANGELOG.md
49
internals
10+
babel.config.js
11+
babel.ext.json

babel.config.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
module.exports = {
2+
only: [
3+
'src',
4+
'styleguide',
5+
],
6+
presets: [
7+
[
8+
'@babel/preset-env',
9+
{
10+
modules: false,
11+
},
12+
],
13+
'@babel/preset-react',
14+
],
15+
plugins: [
16+
'styled-components',
17+
'@babel/plugin-syntax-dynamic-import',
18+
'@babel/plugin-syntax-import-meta',
19+
'@babel/plugin-proposal-class-properties',
20+
'@babel/plugin-proposal-json-strings',
21+
[
22+
'@babel/plugin-proposal-decorators',
23+
{
24+
legacy: true,
25+
},
26+
],
27+
],
28+
env: {
29+
production: {
30+
plugins: [
31+
'add-module-exports',
32+
'@babel/plugin-transform-modules-commonjs',
33+
],
34+
},
35+
test: {
36+
plugins: [
37+
'@babel/plugin-transform-modules-commonjs',
38+
'dynamic-import-node',
39+
],
40+
},
41+
},
42+
};

package.json

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -135,34 +135,36 @@
135135
]
136136
},
137137
"devDependencies": {
138-
"@semantic-release/changelog": "^2.0.2",
138+
"@babel/cli": "^7.0.0",
139+
"@babel/core": "^7.0.0",
140+
"@babel/plugin-external-helpers": "^7.0.0",
141+
"@babel/plugin-proposal-class-properties": "^7.0.0",
142+
"@babel/plugin-proposal-decorators": "^7.0.0",
143+
"@babel/plugin-proposal-json-strings": "^7.0.0",
144+
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
145+
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
146+
"@babel/plugin-syntax-import-meta": "^7.0.0",
147+
"@babel/plugin-transform-modules-commonjs": "^7.0.0",
148+
"@babel/plugin-transform-react-constant-elements": "^7.0.0",
149+
"@babel/plugin-transform-react-inline-elements": "^7.0.0",
150+
"@babel/preset-env": "^7.0.0",
151+
"@babel/preset-react": "^7.0.0",
152+
"@semantic-release/changelog": "^3.0.1",
139153
"@semantic-release/exec": "^3.3.0",
140-
"@semantic-release/git": "^5.0.0",
154+
"@semantic-release/git": "^7.0.5",
141155
"@semantic-release/github": "^5.2.1",
142-
"@semantic-release/npm": "^3.3.1",
143-
"@yeutech-lab/rollup-umd-documentation": "^2.4.4",
144-
"babel-cli": "^6.26.0",
145-
"babel-eslint": "^7.2.3",
146-
"babel-jest": "^22.4.1",
147-
"babel-loader": "^7.1.4",
156+
"@semantic-release/npm": "^5.1.1",
157+
"@yeutech-lab/rollup-umd-documentation": "^2.4.5",
158+
"babel-core": "^7.0.0-bridge.0",
159+
"babel-eslint": "^9.0.0",
160+
"babel-jest": "^23.4.2",
161+
"babel-loader": "^8.0.0",
148162
"babel-plugin-add-module-exports": "^0.2.1",
149-
"babel-plugin-array-includes": "^2.0.3",
150163
"babel-plugin-dynamic-import-node": "^1.1.0",
151-
"babel-plugin-external-helpers": "^6.22.0",
152164
"babel-plugin-react-intl": "^2.4.0",
153165
"babel-plugin-react-transform": "^3.0.0",
154166
"babel-plugin-styled-components": "^1.5.1",
155-
"babel-plugin-transform-class-properties": "^6.24.1",
156-
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
157-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
158-
"babel-plugin-transform-react-constant-elements": "^6.23.0",
159-
"babel-plugin-transform-react-inline-elements": "^6.22.0",
160167
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
161-
"babel-preset-env": "^1.6.1",
162-
"babel-preset-es2015": "^6.24.1",
163-
"babel-preset-react": "^6.24.1",
164-
"babel-preset-stage-2": "^6.24.1",
165-
"babel-preset-stage-3": "^6.24.1",
166168
"cz-conventional-changelog": "^2.1.0",
167169
"enzyme": "^3.3.0",
168170
"enzyme-adapter-react-16": "^1.1.1",
@@ -187,7 +189,7 @@
187189
"react-test-renderer": "^16.3.2",
188190
"redux": "^4.0.1",
189191
"rollup": "^0.57.1",
190-
"rollup-plugin-babel": "^3.0.3",
192+
"rollup-plugin-babel": "^4.0.1",
191193
"rollup-plugin-cleanup": "^2.0.0",
192194
"rollup-plugin-commonjs": "^9.1.0",
193195
"rollup-plugin-inject": "^2.0.0",
@@ -198,7 +200,7 @@
198200
"rollup-plugin-uglify": "^3.0.0",
199201
"rollup-plugin-visualizer": "^0.5.0",
200202
"rollup-watch": "^4.3.1",
201-
"semantic-release": "^15.5.2",
203+
"semantic-release": "^15.12.1",
202204
"sinon": "^2.3.2",
203205
"styled-components": "^4.1.1",
204206
"toctoc": "^0.3.2",
@@ -217,7 +219,7 @@
217219
"extract-intl:doc"
218220
],
219221
"dependencies": {
220-
"@bootstrap-styled/v4": "^1.2.2",
222+
"@bootstrap-styled/v4": "^1.2.6",
221223
"prop-types": "^15.6.1"
222224
},
223225
"peerDependencies": {

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const plugins = [
6060
}),
6161
json(),
6262
babel({
63-
plugins: ['external-helpers'],
63+
babelrc: false,
6464
exclude: 'node_modules/**',
6565
}),
6666
cleanup(),

0 commit comments

Comments
 (0)