Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update tsconfig for better vscode integration #3949

Merged
merged 1 commit into from
Aug 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions components/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
// Configuration for IDEs only.

{
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": "./",
"rootDir": "./",
"target": "es5",
"module": "es2015",
"sourceMap": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"declaration": true,
"outDir": "../release",
"lib": ["es2015", "dom"],
"baseUrl": ".",
"rootDir": ".",
"paths": {
"ng-zorro-antd": ["./ng-zorro-antd.module"],
"ng-zorro-antd/*": ["./*"]
}
},
"files": ["./ng-zorro-antd.module.ts"],
"angularCompilerOptions": {
"skipTemplateCodegen": true
}
"include": [
"./**/*.ts"
]
}
23 changes: 12 additions & 11 deletions components/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"baseUrl": "./",
"target": "es2015",
"module": "es2015",
"sourceMap": true,
"inlineSources": true,
"moduleResolution": "node",
"importHelpers": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"declaration": true,
"outDir": "../release",
"alwaysStrict": true,
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"inlineSources": true,
"lib": ["es2015", "dom"],
"module": "es2015",
"moduleResolution": "node",
"sourceMap": true,
"strictFunctionTypes": true,
"stripInternal": true,
"lib": ["es2015", "dom"]
"target": "es2015",
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
Expand All @@ -26,5 +26,6 @@
"enableResourceInlining": true,
"flatModuleId": "AUTOGENERATED",
"flatModuleOutFile": "AUTOGENERATED"
}
},
"files": ["./ng-zorro-antd.module.ts"]
}
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// TypeScript config file that matches all source files in the project. This file is read by
// IDEs and TSLint. For IDEs it ensures that `experimentalDecorator` warnings are not showing up.
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"downlevelIteration": true,
Expand All @@ -21,6 +22,7 @@
"noImplicitThis": true,
"skipLibCheck": true,
"strictFunctionTypes": true,
"strictNullChecks": true
"strictNullChecks": true,
"types": ["jasmine"]
}
}