Typescript Configuration

This commit is contained in:
ShahanaFarooqui 2023-10-03 17:35:13 -07:00
parent 5523794f47
commit aa9bf3549c
3 changed files with 40 additions and 3 deletions

View File

@ -10,8 +10,8 @@
"prebuildfrontend": "node src/prebuild.cjs",
"buildfrontendtest": "ng test --watch=false && ng build",
"buildfrontend": "ng build --configuration production",
"buildbackend": "tsc --project tsconfig.json",
"watchbackend": "tsc --project tsconfig.json --watch",
"buildbackend": "tsc --project ./server/tsconfig.server.json",
"watchbackend": "tsc --project ./server/tsconfig.server.json --watch",
"server": "set NODE_ENV=development&&nodemon --watch backend --watch server ./rtl.js",
"serverUbuntu": "NODE_ENV=development nodemon --watch backend --watch server ./rtl.js",
"testdev": "ng test --watch=true --code-coverage",

View File

@ -0,0 +1,36 @@
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "../",
"outDir": "../backend",
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"strict": false,
"noImplicitOverride": false,
"noPropertyAccessFromIndexSignature": false,
"strictPropertyInitialization":false,
"strictNullChecks": false,
"noImplicitAny": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"sourceMap": false,
"declaration": false,
"downlevelIteration": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "ES2022",
"module": "ES2022",
"useDefineForClassFields": false,
"lib": [
"ES2022"
],
"paths": {
"crypto": ["node_modules/crypto-browserify"],
"stream": ["node_modules/stream-browserify"]
}
},
"include": [
"./**/*"
]
}

View File

@ -32,7 +32,8 @@
}
},
"include": [
"./server/**/*"
"./server/**/*",
"./src/**/*"
],
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,