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:
Tobias Bosch 2016-09-08 16:48:07 -07:00
parent 84b4338ab5
commit 1a035a0dc7
4 changed files with 4 additions and 2 deletions

View File

@ -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/

View File

@ -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",

View File

@ -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"
] ]
} }

View File

@ -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/**',
] ]