Skip to content

Commit c2a4c6b

Browse files
committed
migration
1 parent b0091d6 commit c2a4c6b

16 files changed

Lines changed: 17 additions & 19 deletions

File tree

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"printWidth": 80,
99
"useTabs": false,
1010
"tabWidth": 2,
11-
"parser": "babylon"
11+
"parser": "babel"
1212
}

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
globals: {
99
'ts-jest': {
1010
tsConfig: './src/tsconfig.json',
11-
babelConfig: true,
11+
babelConfig: false,
1212
},
1313
},
1414
testEnvironment: 'node',

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"test:coverage": "cross-env NODE_ENV=test jest --coverage",
2424
"clean-docs": "rimraf docs/*",
2525
"prepare:index-html": "node ./scripts/prepareIndexHtml.js",
26-
"build-server": "tsc server/index.ts",
26+
"build-server": "tsc server/src/index.ts",
2727
"predev": "npm run clean-docs",
2828
"dev": "cross-env NODE_ENV=dev webpack --config webpack.dev.config.js",
2929
"postdev": "react-snap",
@@ -87,6 +87,7 @@
8787
"@types/jest": "^24.0.18",
8888
"@types/js-base64": "^2.3.1",
8989
"@types/jwt-decode": "^2.2.1",
90+
"@types/node": "^12.7.12",
9091
"@types/react": "^16.9.5",
9192
"@types/react-helmet": "^5.0.11",
9293
"@types/react-motion": "^0.0.29",
@@ -102,7 +103,6 @@
102103
"@types/rename": "^1.0.1",
103104
"@types/rimraf": "^2.0.2",
104105
"@types/smoothscroll-polyfill": "^0.3.1",
105-
"@types/styled-components": "^4.1.19",
106106
"@types/webpack": "^4.39.3",
107107
"@typescript-eslint/eslint-plugin": "^1.13.0",
108108
"@typescript-eslint/parser": "1.13.0",
@@ -173,6 +173,7 @@
173173
"@babel/polyfill": "^7.4.4",
174174
"@hot-loader/react-dom": "^16.9.0",
175175
"@types/react-dom": "^16.9.1",
176+
"@types/styled-components": "^4.1.19",
176177
"axios": "^0.18.1",
177178
"babel-polyfill": "^6.26.0",
178179
"body-parser": "^1.18.3",
File renamed without changes.
File renamed without changes.
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ const shouldLogErrors = process.env.DEBUG || false;
66

77
/**
88
* Returns a route handler for Express that calls the passed in function
9-
* @param {Function} fn The asynchronous the route needs to call
10-
* @return {Promise}
119
*/
12-
1310
export default function(fn: Function) {
1411
if (fn.length <= 3) {
15-
// $FlowIgnore
1612
return function(
1713
req: express.Request,
1814
res: express.Response,

0 commit comments

Comments
 (0)