Setup TS build (failing), rename files to .ts/.tsx
The TypeScript build currently runs but fails for a number of files. This commit only contains rename operations on the source files.
This commit is contained in:
parent
9433fd879b
commit
c92c4cded3
7187
app/package-lock.json
generated
7187
app/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -36,10 +36,22 @@
|
||||
"sharp": "^0.21.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/express": "^4.17.0",
|
||||
"@types/express-session": "^1.15.13",
|
||||
"@types/node": "^12.7.1",
|
||||
"@types/react": "^16.9.0",
|
||||
"@types/react-dom": "^16.8.5",
|
||||
"@types/react-router-dom": "^4.3.4",
|
||||
"@types/webpack-env": "^1.14.0",
|
||||
"babel-eslint": "^10.0.2",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-plugin-jest": "^22.7.2",
|
||||
"eslint-plugin-react": "^7.14.2",
|
||||
"razzle": "^3.0.0"
|
||||
"razzle": "^3.0.0",
|
||||
"razzle-plugin-typescript": "^3.0.0",
|
||||
"ts-jest": "^24.0.2",
|
||||
"tslint": "^5.18.0",
|
||||
"tslint-react": "^4.0.0",
|
||||
"typescript": "^3.5.3"
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
module.exports = {
|
||||
plugins: ['typescript'],
|
||||
modify: (config, { target, dev }, webpack) => {
|
||||
// load webfonts
|
||||
rules = config.module.rules || [];
|
||||
|
16
app/tsconfig.json
Normal file
16
app/tsconfig.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "./build",
|
||||
"allowJs": true,
|
||||
"target": "es2017",
|
||||
"jsx": "react",
|
||||
"lib": ["es6", "es2015", "es2017", "dom"],
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"noImplicitAny": false
|
||||
},
|
||||
"include": [
|
||||
"./src/**/*"
|
||||
]
|
||||
}
|
5
app/tslint.json
Normal file
5
app/tslint.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"rules": {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user