Skip to content

Commit

Permalink
[-] Technical - Upgrade to babel 7 stable (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre authored Jan 31, 2020
1 parent 4228349 commit 1838632
Show file tree
Hide file tree
Showing 5 changed files with 1,230 additions and 1,819 deletions.
11 changes: 3 additions & 8 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
{
"presets": ["env"],
"presets": ["@babel/env"],
"plugins": [
[
"transform-runtime",
{
"polyfill": false,
"regenerator": true
}
]
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-transform-runtime",
]
}
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ module.exports = {
'sonarjs/no-identical-functions': 0,
'sonarjs/no-same-line-conditional': 0
},
parser: "babel-eslint",
};
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log

## [Unreleased]
### Added
- Technical - Add optional chaining plugin to babel.

### Changed
- Technical - Upgrade to babel 7 stable.

## RELEASE 5.7.0 - 2020-01-22
### Added
Expand Down
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"main": "dist/index.js",
"dependencies": {
"babel-runtime": "7.0.0-beta.3",
"@babel/runtime": "7.8.3",
"bluebird": "2.9.25",
"forest-express": "5.6.1",
"http-errors": "1.6.1",
Expand All @@ -32,13 +32,16 @@
"semver": "5.4.1"
},
"devDependencies": {
"@babel/cli": "7.8.3",
"@babel/core": "7.8.3",
"@babel/plugin-proposal-optional-chaining": "7.8.3",
"@babel/plugin-transform-runtime": "7.8.3",
"@babel/preset-env": "7.8.3",
"@babel/register": "7.8.3",
"@forestadmin/devops": "2.0.0",
"babel-cli": "7.0.0-beta.3",
"babel-plugin-transform-runtime": "7.0.0-beta.3",
"babel-preset-env": "7.0.0-beta.3",
"babel-register": "7.0.0-beta.3",
"babel-eslint": "10.0.3",
"dotenv": "6.2.0",
"eslint": "6.7.1",
"eslint": "6.8.0",
"eslint-config-airbnb-base": "14.0.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-jest": "23.0.4",
Expand All @@ -53,7 +56,7 @@
"simple-git": "1.65.0"
},
"scripts": {
"build": "./node_modules/babel-cli/bin/babel.js src --out-dir dist && echo '\n\\033[0;34m[+] \\033[0;32mBuild done\\033[0m'",
"build": "./node_modules/.bin/babel src --out-dir dist && echo '\n\\033[0;34m[+] \\033[0;32mBuild done\\033[0m'",
"build:watch": "onchange 'src/**/*.js' -i -- yarn build",
"lint": "./node_modules/eslint/bin/eslint.js .eslint-bin scripts src test",
"pre-commit": "node ./.eslint-bin/pre-commit-hook.js",
Expand All @@ -65,4 +68,4 @@
"pre-commit": [
"pre-commit"
]
}
}
Loading

0 comments on commit 1838632

Please sign in to comment.