Cleanup tsconfig (#866)

* Simplify tsconfig

* Add separate tsconfig for renderer to get rid of last warnings
This commit is contained in:
Oscar Hinton 2021-05-05 09:47:35 +02:00 committed by GitHub
parent 2bdd7413aa
commit 266f089b3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 27 deletions

6
package-lock.json generated
View File

@ -1066,6 +1066,12 @@
"integrity": "sha512-Q1y515GcOdTHgagaVFhHnIFQ38ygs/kmxdNpvpou+raI9UO3YZcHDngBSYKQklcKlvA7iuQlmIKbzvmxcOE9CQ==",
"dev": true
},
"@types/duo_web_sdk": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/@types/duo_web_sdk/-/duo_web_sdk-2.7.0.tgz",
"integrity": "sha512-E8cRtor4+hYNVYZ/hk+0WoZtiGOWvxhX3UsJtNtVlDIk2d8dnbYX6wdhqBTwixPpw7ea3I8IS3BAK81GRXyLUQ==",
"dev": true
},
"@types/fs-extra": {
"version": "9.0.11",
"resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.11.tgz",

View File

@ -248,6 +248,7 @@
"devDependencies": {
"@angular/compiler-cli": "^11.2.10",
"@ngtools/webpack": "^11.2.10",
"@types/duo_web_sdk": "^2.7.0",
"@types/lunr": "^2.3.3",
"@types/node": "^10.17.58",
"@types/node-forge": "^0.9.7",

View File

@ -1,14 +0,0 @@
import { NgModule } from '@angular/core';
import { InputVerbatimDirective } from 'jslib/angular/directives/input-verbatim.directive';
import { SearchPipe } from 'jslib/angular/pipes/search.pipe';
@NgModule({
imports: [],
declarations: [
InputVerbatimDirective,
SearchPipe,
],
})
export class DummyModule {
}

View File

@ -21,17 +21,9 @@
"angularCompilerOptions": {
"preserveWhitespaces": true
},
"exclude": [
"node_modules",
"jslib/node_modules",
"proxy",
"dist",
"dist-safari",
"jslib/dist",
"build",
"jslib/spec",
"jslib/src/cli",
"jslib/src/services/nodeApi.service.ts",
"jslib/src/services/lowdbStorage.service.ts"
"files": [
"src/entry.ts",
"src/global.d.ts",
"jslib/src/globals.d.ts"
]
}

8
tsconfig.renderer.json Normal file
View File

@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"files": [
"src/app/main.ts",
"src/global.d.ts",
"jslib/src/globals.d.ts"
]
}

View File

@ -108,7 +108,7 @@ const renderer = {
},
plugins: [
new AngularCompilerPlugin({
tsConfigPath: 'tsconfig.json',
tsConfigPath: 'tsconfig.renderer.json',
entryModule: 'src/app/app.module#AppModule',
sourceMap: true,
}),