Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Switch to Babel7
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jun 30, 2019
1 parent 2ca3d51 commit 06d303c
Show file tree
Hide file tree
Showing 4 changed files with 281 additions and 576 deletions.
6 changes: 6 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: [
'@babel/plugin-transform-flow-strip-types',
'@babel/plugin-transform-modules-commonjs',
],
};
2 changes: 1 addition & 1 deletion .mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TODO: throw-deprecation: true
check-leaks: true
require:
- 'babel-register'
- '@babel/register'
17 changes: 6 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@
"LICENSE",
"PATENTS"
],
"babel": {
"plugins": [
"transform-es2015-modules-commonjs",
"transform-flow-strip-types"
]
},
"scripts": {
"prepublish": ". ./resources/prepublish.sh",
"test": "npm run lint && npm run check && npm run testonly",
Expand All @@ -50,7 +44,7 @@
"watch": "node resources/watch.js",
"cover": "nyc npm run testonly",
"preversion": "npm test",
"start": "node -r babel-register examples/index.js"
"start": "node -r @babel/register examples/index.js"
},
"dependencies": {
"accepts": "^1.3.7",
Expand All @@ -59,11 +53,12 @@
"raw-body": "^2.4.0"
},
"devDependencies": {
"babel-cli": "6.26.0",
"@babel/cli": "^7.4.4",
"@babel/core": "7.4.5",
"@babel/plugin-transform-flow-strip-types": "7.4.4",
"@babel/plugin-transform-modules-commonjs": "7.4.4",
"@babel/register": "7.4.4",
"babel-eslint": "10.0.1",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"babel-plugin-transform-flow-strip-types": "6.22.0",
"babel-register": "6.26.0",
"body-parser": "1.19.0",
"chai": "4.2.0",
"connect": "3.6.6",
Expand Down
Loading

0 comments on commit 06d303c

Please sign in to comment.