build(examples): include in main `tsconfig.json`
Also rename `examples/tsconfig.json` into `examples/tsconfig-build.json` so that it does not shadow the main `tsconfig.json` in editors Also adds `noImplicitAny` and `declarations` `examples/tsconfig.json`.
This commit is contained in:
parent
84b4338ab5
commit
1a035a0dc7
|
@ -13,7 +13,7 @@ cd `dirname $0`
|
||||||
|
|
||||||
DIST="../../../dist/examples";
|
DIST="../../../dist/examples";
|
||||||
rm -rf -- $DIST
|
rm -rf -- $DIST
|
||||||
$(npm bin)/tsc -p .
|
$(npm bin)/tsc -p ./tsconfig-build.json
|
||||||
|
|
||||||
mkdir $DIST/vendor/
|
mkdir $DIST/vendor/
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
|
"declaration": true,
|
||||||
"stripInternal": true,
|
"stripInternal": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
|
"noImplicitAny": true,
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"outDir": "../../../dist/examples",
|
"outDir": "../../../dist/examples",
|
|
@ -30,7 +30,6 @@
|
||||||
"benchmarks_external",
|
"benchmarks_external",
|
||||||
"payload_tests",
|
"payload_tests",
|
||||||
"rollup-test",
|
"rollup-test",
|
||||||
"@angular/examples/**/*.ts",
|
|
||||||
"@angular/compiler-cli/integrationtest"
|
"@angular/compiler-cli/integrationtest"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,6 +52,7 @@ var specFiles: any =
|
||||||
'@angular/router/test/integration/bootstrap_spec.*',
|
'@angular/router/test/integration/bootstrap_spec.*',
|
||||||
'@angular/integration_test/symbol_inspector/**',
|
'@angular/integration_test/symbol_inspector/**',
|
||||||
'@angular/upgrade/**',
|
'@angular/upgrade/**',
|
||||||
|
'@angular/**/e2e_test/**',
|
||||||
'angular1_router/**',
|
'angular1_router/**',
|
||||||
'payload_tests/**',
|
'payload_tests/**',
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue