build(docs-infra): upgrade @angular/cli to 8.0.0-beta.18 (#29926)

This commit also changes the config files and their layout to
(reasonably closely) match what the cli would generate for a new app.

Related Jira issue: [TOOL-815](https://angular-team.atlassian.net/browse/TOOL-815)

PR Close #29926
This commit is contained in:
George Kalpakas
2019-04-25 18:06:40 +03:00
committed by Andrew Kushnir
parent b8298f1b2d
commit 6c1ae294dc
28 changed files with 295 additions and 247 deletions

View File

@ -27,7 +27,7 @@ export class SearchService {
.pipe(
concatMap(() => {
// Create the worker and load the index
const worker = new Worker('./search-worker', { type: 'module' });
const worker = new Worker('./search.worker', { type: 'module' });
this.worker = WebWorkerClient.create(worker, this.zone);
return this.worker.sendMessage<boolean>('load-index');
}),

View File

@ -1,3 +1,4 @@
/// <reference lib="webworker" />
import { WebWorkerMessage } from '../shared/web-worker-message';
import * as lunr from 'lunr';

View File

@ -1,32 +0,0 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../coverage'),
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
browserNoActivityTimeout: 60000,
singleRun: false,
});
};

View File

@ -1,23 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"baseUrl": "",
"types": [],
"lib": [
"es2018",
"dom"
],
"importHelpers": true
},
"exclude": [
"testing/**/*",
"test.ts",
"test-specs.ts",
"**/*.spec.ts",
"**/*-worker.ts"
],
"angularCompilerOptions": {
"disableTypeScriptVersionCheck": true
}
}

View File

@ -1,11 +0,0 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"module": "es2015",
"lib": [
"es2018",
"dom",
"webworker"
],
}
}

View File

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

View File

@ -1,14 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/worker",
"lib": [
"es2018",
"webworker"
],
"types": [
"lunr"
],
},
"include": ["**/*-worker.ts"]
}