Skip to content

Commit

Permalink
chore: update tsconfig for better IDE integration (#3949)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendell authored Aug 9, 2019
1 parent 9499aec commit 583eb77
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 28 deletions.
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"]
}
}

0 comments on commit 583eb77

Please sign in to comment.