source: trip-planner-front/node_modules/@angular-devkit/build-angular/src/webpack/plugins/analytics.d.ts@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.5 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { analytics } from '@angular-devkit/core';
9import { Compilation, Compiler, Module, NormalModule, Stats } from 'webpack';
10/**
11 * Faster than using a RegExp, so we use this to count occurences in source code.
12 * @param source The source to look into.
13 * @param match The match string to look for.
14 * @param wordBreak Whether to check for word break before and after a match was found.
15 * @return The number of matches found.
16 * @private
17 */
18export declare function countOccurrences(source: string, match: string, wordBreak?: boolean): number;
19/**
20 * Holder of statistics related to the build.
21 */
22declare class AnalyticsBuildStats {
23 errors: string[];
24 numberOfNgOnInit: number;
25 numberOfComponents: number;
26 initialChunkSize: number;
27 totalChunkCount: number;
28 totalChunkSize: number;
29 lazyChunkCount: number;
30 lazyChunkSize: number;
31 assetCount: number;
32 assetSize: number;
33 polyfillSize: number;
34 cssSize: number;
35}
36/**
37 * Analytics plugin that reports the analytics we want from the CLI.
38 */
39export declare class NgBuildAnalyticsPlugin {
40 protected _projectRoot: string;
41 protected _analytics: analytics.Analytics;
42 protected _category: string;
43 private _isIvy;
44 protected _built: boolean;
45 protected _stats: AnalyticsBuildStats;
46 constructor(_projectRoot: string, _analytics: analytics.Analytics, _category: string, _isIvy: boolean);
47 protected _reset(): void;
48 protected _getMetrics(stats: Stats): (string | number)[];
49 protected _getDimensions(): (string | number | boolean)[];
50 protected _reportBuildMetrics(stats: Stats): void;
51 protected _reportRebuildMetrics(stats: Stats): void;
52 protected _checkTsNormalModule(module: NormalModule): void;
53 protected _collectErrors(stats: Stats): void;
54 protected _collectBundleStats(compilation: Compilation): void;
55 /** **********************************************************************************************
56 * The next section is all the different Webpack hooks for this plugin.
57 */
58 /**
59 * Reports a succeed module.
60 * @private
61 */
62 protected _succeedModule(module: Module): void;
63 protected _compilation(compiler: Compiler, compilation: Compilation): void;
64 protected _done(stats: Stats): void;
65 apply(compiler: Compiler): void;
66}
67export {};
Note: See TracBrowser for help on using the repository browser.