docs: fix example "testing" app compilation (#30427)

PR Close #30427
This commit is contained in:
Jimmy Kasprzak 2019-05-12 20:12:17 +02:00 committed by Jason Aden
parent 8555016eec
commit 3a8f74e392
4 changed files with 49 additions and 3 deletions

View File

@ -1 +1 @@
export * from './fake-hero.service'; export * from './test-hero.service';

View File

@ -35,7 +35,12 @@ BOILERPLATE_PATHS.i18n = [...cliRelativePath, 'angular.json', 'package.json'];
BOILERPLATE_PATHS['service-worker'] = [...cliRelativePath, 'angular.json', 'package.json']; BOILERPLATE_PATHS['service-worker'] = [...cliRelativePath, 'angular.json', 'package.json'];
BOILERPLATE_PATHS.testing = [...cliRelativePath, 'angular.json']; BOILERPLATE_PATHS.testing = [
...cliRelativePath,
'angular.json',
'src/tsconfig.app.json',
'src/tsconfig.spec.json'
];
BOILERPLATE_PATHS.universal = [...cliRelativePath, 'angular.json', 'package.json']; BOILERPLATE_PATHS.universal = [...cliRelativePath, 'angular.json', 'package.json'];

View File

@ -0,0 +1,22 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"types": []
},
"exclude": [
"test.ts",
"**/*.spec.ts",
"**/*.avoid.ts",
"**/*.0.ts",
"**/*.1.ts",
"**/*.1b.ts",
"**/*.2.ts",
"**/*.3.ts",
"**/*.4.ts",
"**/*.5.ts",
"**/*.6.ts",
"**/*.7.ts",
"**/testing"
]
}

View File

@ -0,0 +1,19 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/spec",
"types": [
"jasmine",
"node"
]
},
"files": [
"test.ts",
"polyfills.ts"
],
"include": [
"**/*.spec.ts",
"**/*.d.ts",
"**/testing"
]
}