2017-07-07 20:42:52 +02:00
|
|
|
// 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.
|
|
|
|
|
{
|
|
|
|
|
"compilerOptions": {
|
2017-09-12 13:24:23 -07:00
|
|
|
// Needed for Moment.js since it doesn't have a default export.
|
|
|
|
|
"allowSyntheticDefaultImports": true,
|
2017-07-07 20:42:52 +02:00
|
|
|
"rootDir": ".",
|
|
|
|
|
"experimentalDecorators": true,
|
|
|
|
|
"module": "es2015",
|
|
|
|
|
"moduleResolution": "node",
|
|
|
|
|
"noUnusedParameters": true,
|
|
|
|
|
"strictNullChecks": true,
|
|
|
|
|
"skipLibCheck": true,
|
|
|
|
|
"outDir": "./dist/packages/all",
|
|
|
|
|
"target": "es2015",
|
|
|
|
|
"lib": ["es5", "es2015", "dom"],
|
|
|
|
|
"types": ["jasmine"],
|
|
|
|
|
"baseUrl": ".",
|
|
|
|
|
"paths": {
|
|
|
|
|
"@angular/material": ["./src/lib/public_api.ts"],
|
2017-07-27 18:48:30 +02:00
|
|
|
"@angular/cdk/*": ["./src/cdk/*"],
|
2017-09-12 13:24:23 -07:00
|
|
|
"@angular/material-moment-adapter": ["./src/material-moment-adapter"],
|
2017-07-27 18:48:30 +02:00
|
|
|
"@angular/material-examples": ["./src/material-examples"],
|
|
|
|
|
"material2-build-tools": ["./tools/package-tools"]
|
2017-07-07 20:42:52 +02:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"include": [
|
|
|
|
|
"src/**/*.ts",
|
2017-07-27 18:48:30 +02:00
|
|
|
"tools/**/*.ts"
|
2017-07-07 20:42:52 +02:00
|
|
|
],
|
|
|
|
|
"exclude": [
|
|
|
|
|
// Exclude files that depend on Node APIs because those depend on the Node types and therefore
|
|
|
|
|
// cause ambiguous imports. For example `setTimeout()` will return a Timer instead of a number.
|
|
|
|
|
"./src/universal-app/prerender.ts",
|
|
|
|
|
|
|
|
|
|
// IDEs should not type-check the different node_modules directories of the different packages.
|
|
|
|
|
// This would cause the IDEs to be slower and also linters would check the node_modules.
|
2017-07-27 18:48:30 +02:00
|
|
|
"node_modules/",
|
|
|
|
|
"tools/dashboard/node_modules/",
|
|
|
|
|
"tools/screenshot-test/node_modules/"
|
2017-07-07 20:42:52 +02:00
|
|
|
]
|
|
|
|
|
}
|