UNPKG

3.39 kBTypeScriptView Raw
1/**
2 * @additionalProperties false
3 */
4export interface AssetPatternCompat {
5 glob?: string;
6 input: string;
7 output: string;
8}
9/**
10 * @additionalProperties false
11 */
12export interface Budget {
13 /**
14 * The type of budget
15 */
16 type: 'all' | 'allScript' | 'any' | 'anyScript' | 'bundle' | 'initial';
17 /**
18 * The name of the bundle
19 */
20 name?: string;
21 /**
22 * The baseline size for comparison.
23 */
24 baseline?: string;
25 /**
26 * The maximum threshold for warning relative to the baseline.
27 */
28 maximumWarning?: string;
29 /**
30 * The maximum threshold for error relative to the baseline.
31 */
32 maximumError?: string;
33 /**
34 * The minimum threshold for warning relative to the baseline.
35 */
36 minimumWarning?: string;
37 /**
38 * The minimum threshold for error relative to the baseline.
39 */
40 minimumError?: string;
41 /**
42 * The threshold for warning relative to the baseline (min & max).
43 */
44 warning?: string;
45 /**
46 * The threshold for error relative to the baseline (min & max).
47 */
48 error?: string;
49}
50export interface ProjectConfigCompat {
51 /**
52 * Compatibility only, use 'outputPath' instead.
53 */
54 outDir?: string;
55 /**
56 * webpack-cli compatibility, use 'platformTarget' instead.
57 */
58 target?: 'web' | 'webworker' | 'node' | 'async-node' | 'node-webkit' | 'atom' | 'electron' | 'electron-renderer' | 'electron-main';
59 /**
60 * @angular-devkit/build_angular compatibility, use 'platformTarget' instead.
61 */
62 platform?: 'browser' | 'server';
63 /**
64 * @angular-devkit/build_angular compatibility, use 'copy' instead.
65 */
66 assets?: AssetPatternCompat[] | boolean;
67 /**
68 * @angular-devkit/build_angular compatibility, use 'cleanOutDirs' instead.
69 */
70 deleteOutputPath?: boolean;
71 /**
72 * @angular-devkit/build_angular compatibility, use 'nodeModulesAsExternals' instead.
73 */
74 bundleDependencies?: 'none' | 'all';
75 /**
76 * @angular-devkit/build_angular compatibility, not supported.
77 */
78 preserveSymlinks?: boolean;
79}
80export interface AppConfigCompat extends ProjectConfigCompat {
81 /**
82 * @angular-devkit/build_angular compatibility, use 'entry' instead.
83 */
84 main?: string;
85 /**
86 * @angular-devkit/build_angular compatibility, use 'htmlInject.index' instead.
87 */
88 index?: string;
89 /**
90 * @angular-devkit/build_angular compatibility, use 'sourceMapDevTool' instead.
91 */
92 evalSourceMap?: boolean;
93 /**
94 * @angular-devkit/build_angular compatibility, use 'publicPath' instead.
95 */
96 deployUrl?: string;
97 /**
98 * @angular-devkit/build_angular compatibility, use 'bundleAnalyzer.generateStatsFile' instead.
99 */
100 statsJson?: boolean;
101 /**
102 * @angular-devkit/build_angular compatibility, not supported.
103 */
104 budgets?: Budget[] | boolean;
105 /**
106 * @angular-devkit/build_angular compatibility, not supported.
107 */
108 showCircularDependencies?: boolean;
109 /**
110 * @angular-devkit/build_angular compatibility, not supported.
111 */
112 subresourceIntegrity?: boolean;
113 /**
114 * @angular-devkit/build_angular compatibility, not supported.
115 */
116 skipAppShell?: boolean;
117}