Typescript Configuration

pull/1300/head
ShahanaFarooqui 8 months ago
parent 5523794f47
commit aa9bf3549c

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

@ -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": [
"./**/*"
]
}

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

Loading…
Cancel
Save