Skip to content

Commit fd99d09

Browse files
committed
frontend: completely remove express-graphql
1 parent 6d8f164 commit fd99d09

File tree

3 files changed

+19
-41
lines changed

3 files changed

+19
-41
lines changed

frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"babel-runtime": "^6.26.0",
2525
"classnames": "2.2.5",
2626
"express": "^4.15.2",
27-
"express-graphql": "^0.7.1",
2827
"graphql": "^14.5.8",
2928
"graphql-compiler": "^1.7.0",
3029
"graphql-relay": "^0.6.0",

frontend/server.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*/
1212

1313
import express from 'express';
14-
import graphQLHTTP from 'express-graphql';
1514
import path from 'path';
1615
import webpack from 'webpack';
1716
import WebpackDevServer from 'webpack-dev-server';
@@ -29,12 +28,12 @@ const compiler = webpack({
2928
module: {
3029
rules: [
3130
{
32-
test: /\.tsx?$/,
33-
exclude: /node_modules/,
34-
use: [
35-
{ loader: 'babel-loader' },
36-
{ loader: 'ts-loader', options: { transpileOnly: true } },
37-
],
31+
test: /\.tsx?$/,
32+
exclude: /node_modules/,
33+
use: [
34+
{ loader: 'babel-loader' },
35+
{ loader: 'ts-loader', options: { transpileOnly: true } },
36+
],
3837
},
3938
],
4039
},

frontend/yarn.lock

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ abbrev@1:
691691
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
692692
integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==
693693

694-
accepts@^1.3.5, accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.7:
694+
accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.7:
695695
version "1.3.7"
696696
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd"
697697
integrity sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==
@@ -2310,7 +2310,7 @@ content-disposition@0.5.3:
23102310
dependencies:
23112311
safe-buffer "5.1.2"
23122312

2313-
content-type@^1.0.4, content-type@~1.0.4:
2313+
content-type@~1.0.4:
23142314
version "1.0.4"
23152315
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b"
23162316
integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==
@@ -2805,16 +2805,6 @@ expand-range@^1.8.1:
28052805
dependencies:
28062806
fill-range "^2.1.0"
28072807

2808-
express-graphql@^0.7.1:
2809-
version "0.7.1"
2810-
resolved "https://registry.yarnpkg.com/express-graphql/-/express-graphql-0.7.1.tgz#6c7712ee966c3aba1930e064ea4c8181e56fd3ef"
2811-
integrity sha512-YpheAqTbSKpb5h57rV2yu2dPNUBi4FvZDspZ5iEV3ov34PBRgnM4lEBkv60+vZRJ6SweYL14N8AGYdov7g6ooQ==
2812-
dependencies:
2813-
accepts "^1.3.5"
2814-
content-type "^1.0.4"
2815-
http-errors "^1.7.1"
2816-
raw-body "^2.3.3"
2817-
28182808
express@^4.15.2, express@^4.17.1:
28192809
version "4.17.1"
28202810
resolved "https://registry.yarnpkg.com/express/-/express-4.17.1.tgz#4491fc38605cf51f8629d39c2b5d026f98a4c134"
@@ -3416,17 +3406,6 @@ http-errors@1.7.2:
34163406
statuses ">= 1.5.0 < 2"
34173407
toidentifier "1.0.0"
34183408

3419-
http-errors@1.7.3, http-errors@^1.7.1, http-errors@~1.7.2:
3420-
version "1.7.3"
3421-
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06"
3422-
integrity sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==
3423-
dependencies:
3424-
depd "~1.1.2"
3425-
inherits "2.0.4"
3426-
setprototypeof "1.1.1"
3427-
statuses ">= 1.5.0 < 2"
3428-
toidentifier "1.0.0"
3429-
34303409
http-errors@~1.6.2:
34313410
version "1.6.3"
34323411
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d"
@@ -3437,6 +3416,17 @@ http-errors@~1.6.2:
34373416
setprototypeof "1.1.0"
34383417
statuses ">= 1.4.0 < 2"
34393418

3419+
http-errors@~1.7.2:
3420+
version "1.7.3"
3421+
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06"
3422+
integrity sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==
3423+
dependencies:
3424+
depd "~1.1.2"
3425+
inherits "2.0.4"
3426+
setprototypeof "1.1.1"
3427+
statuses ">= 1.5.0 < 2"
3428+
toidentifier "1.0.0"
3429+
34403430
"http-parser-js@>=0.4.0 <0.4.11":
34413431
version "0.4.10"
34423432
resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.4.10.tgz#92c9c1374c35085f75db359ec56cc257cbb93fa4"
@@ -5053,16 +5043,6 @@ raw-body@2.4.0:
50535043
iconv-lite "0.4.24"
50545044
unpipe "1.0.0"
50555045

5056-
raw-body@^2.3.3:
5057-
version "2.4.1"
5058-
resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.1.tgz#30ac82f98bb5ae8c152e67149dac8d55153b168c"
5059-
integrity sha512-9WmIKF6mkvA0SLmA2Knm9+qj89e+j1zqgyn8aXGd7+nAduPoqgI9lO57SAZNn/Byzo5P7JhXTyg9PzaJbH73bA==
5060-
dependencies:
5061-
bytes "3.1.0"
5062-
http-errors "1.7.3"
5063-
iconv-lite "0.4.24"
5064-
unpipe "1.0.0"
5065-
50665046
rc@^1.2.7:
50675047
version "1.2.8"
50685048
resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"

0 commit comments

Comments
 (0)