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

Make dependencies up-to-date, needed to fix bug: https://phabricator.babeljs.io/T2212 #79

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"plugins": [
"transform-flow-strip-types", "transform-class-properties"
],
"presets": [
"es2015"
]
}
6 changes: 2 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"indent": [2, 2, {"SwitchCase": 1}],
"init-declarations": 0,
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"keyword-spacing": [2, {"before": true, "after": true }],
"linebreak-style": 2,
"lines-around-comment": 0,
"max-depth": 0,
Expand Down Expand Up @@ -100,7 +101,6 @@
"no-else-return": 2,
"no-empty": 2,
"no-empty-character-class": 2,
"no-empty-label": 2,
"no-eq-null": 0,
"no-eval": 2,
"no-ex-assign": 2,
Expand Down Expand Up @@ -188,18 +188,16 @@
"prefer-reflect": 0,
"prefer-spread": 0,
"quote-props": [2, "as-needed"],
"quotes": [2, "single"],
"quotes": [2, "single", {"allowTemplateLiterals": true}],
"radix": 2,
"require-yield": 2,
"semi": [2, "always"],
"semi-spacing": [2, {"before": false, "after": true}],
"sort-vars": 0,
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
"space-in-parens": 0,
"space-infix-ops": [2, {"int32Hint": false}],
"space-return-throw-case": 2,
"space-unary-ops": [2, {"words": true, "nonwords": false}],
"spaced-comment": [2, "always"],
"strict": 0,
Expand Down
49 changes: 29 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,29 +47,38 @@
},
"dependencies": {
"content-type": "~1.0.1",
"http-errors": "~1.3.1",
"http-errors": "~1.4.0",
"raw-body": "~2.1.2"
},
"devDependencies": {
"babel": "5.8.21",
"babel-core": "5.8.22",
"babel-eslint": "4.1.8",
"babel-runtime": "5.8.20",
"body-parser": "^1.14.0",
"chai": "3.2.0",
"coveralls": "2.11.4",
"eslint": "1.1.0",
"eslint-plugin-babel": "2.1.1",
"express": "4.13.3",
"express3": "*",
"flow-bin": "0.21.0",
"graphql": "0.5.0",
"isparta": "3.0.3",
"mocha": "2.2.5",
"multer": "1.0.3",
"sane": "1.1.3",
"supertest": "1.0.1",
"supertest-as-promised": "2.0.2"
"babel-cli": "^6.7.7",
"babel-core": "6.7.7",
"babel-eslint": "6.0.4",
"babel-plugin-transform-async-to-generator": "^6.8.0",
"babel-plugin-transform-class-properties": "^6.6.0",
"babel-plugin-transform-flow-strip-types": "^6.7.0",
"babel-plugin-transform-runtime": "^6.8.0",
"babel-preset-es2015": "^6.6.0",
"babel-register": "^6.8.0",
"babel-runtime": "6.6.1",
"body-parser": "^1.15.0",
"chai": "^3.5.0",
"content-type": "^1.0.1",
"coveralls": "2.11.9",
"eslint": "2.8.0",
"eslint-plugin-babel": "3.2.0",
"express": "^4.13.4",
"express3": "0.0.0",
"flow-bin": "0.23.1",
"graphql": "^0.5.0",
"http-errors": "^1.4.0",
"isparta": "^4.0.0",
"mocha": "^2.4.5",
"multer": "^1.1.0",
"raw-body": "^2.1.6",
"sane": "1.3.4",
"supertest": "1.2.0",
"supertest-as-promised": "^3.1.0"
},
"peerDependencies": {
"graphql": "^0.5.0"
Expand Down
5 changes: 3 additions & 2 deletions resources/mocha-bootload.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
*/
/* eslint-disable no-console */

require('babel/register')({
optional: [ 'es7.asyncFunctions' ]

require('babel-core/register')({
plugins: ['transform-runtime', 'transform-async-to-generator']
});

process.on('unhandledRejection', function (error) {
Expand Down