Skip to content

Commit a07db20

Browse files
authored
[-] Technical - Upgrade to babel 7 stable (#289)
1 parent 7a604ab commit a07db20

File tree

5 files changed

+1546
-1604
lines changed

5 files changed

+1546
-1604
lines changed

.babelrc

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
{
2-
"presets": ["env"],
3-
"plugins": [
4-
[
5-
"transform-runtime",
6-
{
7-
"polyfill": false,
8-
"regenerator": true
9-
}
10-
]
11-
]
12-
}
2+
"presets": ["@babel/env"],
3+
"plugins": [
4+
"@babel/plugin-proposal-optional-chaining",
5+
"@babel/plugin-transform-runtime",
6+
]
7+
}

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ module.exports = {
3232
'sonarjs/no-identical-functions': 0,
3333
'sonarjs/no-same-line-conditional': 0
3434
},
35+
parser: "babel-eslint",
3536
};

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Change Log
22

33
## [Unreleased]
4+
### Added
5+
- Technical - Add optional chaining plugin to babel.
6+
7+
### Changed
8+
- Technical - Upgrade to babel 7 stable.
49

510
## RELEASE 5.7.0 - 2020-01-14
611
### Added

package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"main": "dist/index.js",
2626
"dependencies": {
27-
"babel-runtime": "7.0.0-beta.3",
27+
"@babel/runtime": "7.8.3",
2828
"bluebird": "2.9.25",
2929
"forest-express": "5.6.0",
3030
"http-errors": "1.7.2",
@@ -34,11 +34,14 @@
3434
"semver": "5.6.0"
3535
},
3636
"devDependencies": {
37+
"@babel/cli": "7.8.3",
38+
"@babel/core": "7.8.3",
39+
"@babel/plugin-proposal-optional-chaining": "7.8.3",
40+
"@babel/plugin-transform-runtime": "7.8.3",
41+
"@babel/preset-env": "7.8.3",
42+
"@babel/register": "7.8.3",
3743
"@forestadmin/devops": "2.0.0",
38-
"babel-cli": "7.0.0-beta.3",
39-
"babel-plugin-transform-runtime": "7.0.0-beta.3",
40-
"babel-preset-env": "7.0.0-beta.3",
41-
"babel-register": "7.0.0-beta.3",
44+
"babel-eslint": "10.0.3",
4245
"dotenv": "6.2.0",
4346
"eslint": "6.7.2",
4447
"eslint-config-airbnb-base": "14.0.0",
@@ -53,7 +56,7 @@
5356
"simple-git": "1.65.0"
5457
},
5558
"scripts": {
56-
"build": "./node_modules/babel-cli/bin/babel.js src --out-dir dist && echo '\n\\033[0;34m[+] \\033[0;32mBuild done\\033[0m'",
59+
"build": "./node_modules/.bin/babel src --out-dir dist && echo '\n\\033[0;34m[+] \\033[0;32mBuild done\\033[0m'",
5760
"build:watch": "onchange 'src/**/*.js' -i -- yarn build",
5861
"lint": "./node_modules/eslint/bin/eslint.js .eslint-bin scripts src test",
5962
"pre-commit": "node ./.eslint-bin/pre-commit-hook.js",
@@ -65,4 +68,4 @@
6568
"pre-commit": [
6669
"pre-commit"
6770
]
68-
}
71+
}

0 commit comments

Comments
 (0)