Skip to content

Commit

Permalink
build(examples): include in main tsconfig.json
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
tbosch committed Sep 14, 2016
1 parent 84b4338 commit 1a035a0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/@angular/examples/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cd `dirname $0`

DIST="../../../dist/examples";
rm -rf -- $DIST
$(npm bin)/tsc -p .
$(npm bin)/tsc -p ./tsconfig-build.json

mkdir $DIST/vendor/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"stripInternal": true,
"experimentalDecorators": true,
"noImplicitAny": true,
"module": "commonjs",
"moduleResolution": "node",
"outDir": "../../../dist/examples",
Expand Down
1 change: 0 additions & 1 deletion modules/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"benchmarks_external",
"payload_tests",
"rollup-test",
"@angular/examples/**/*.ts",
"@angular/compiler-cli/integrationtest"
]
}
1 change: 1 addition & 0 deletions tools/cjs-jasmine/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ var specFiles: any =
'@angular/router/test/integration/bootstrap_spec.*',
'@angular/integration_test/symbol_inspector/**',
'@angular/upgrade/**',
'@angular/**/e2e_test/**',
'angular1_router/**',
'payload_tests/**',
]
Expand Down

0 comments on commit 1a035a0

Please sign in to comment.