mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
becb7a87e0
* build: tsconfig for editor warnings Currently when using a code editor that uses the TypeScript language service (Webstorm / VS Code / Atom / Sublime) there will be TypeScript errors in the `.spec` files. This is because the editor finds the `tsconfig.json` file that doesn't match the spec files. Therefore it complains about the `experimentalDecorators`. In `angular/angular` there is a global `tsconfig` file that matches everything and is therefore fixing the editor warnings. This file is also used to compile all `.spec` files for the whole project. We can add such a `tsconfig.json` file as well, and in the future we can use it for compiling the specs as well. * Add docs for tsconfig files
25 lines
587 B
JSON
25 lines
587 B
JSON
// TypeScript config that is used to build the e2e spec files. Protractor will use TS-Node to
|
|
// compile the e2e/ folder at runtime.
|
|
{
|
|
"compilerOptions": {
|
|
"declaration": true,
|
|
"emitDecoratorMetadata": true,
|
|
"experimentalDecorators": true,
|
|
"inlineSources": true,
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"noEmitOnError": true,
|
|
"noImplicitAny": true,
|
|
"outDir": "../dist/e2e/",
|
|
"rootDir": ".",
|
|
"sourceMap": true,
|
|
"target": "es5",
|
|
"typeRoots": [
|
|
"../node_modules/@types"
|
|
],
|
|
"types": [
|
|
"jasmine"
|
|
]
|
|
}
|
|
}
|