UNPKG

6.2 kBTypeScriptView Raw
1export interface Schema {
2 /**
3 * Which external dependencies to bundle into the bundle. By default, all of node_modules
4 * will be bundled.
5 */
6 bundleDependencies?: BundleDependenciesUnion;
7 /**
8 * Delete the output path before building.
9 */
10 deleteOutputPath?: boolean;
11 /**
12 * URL where files will be deployed.
13 * @deprecated Use "baseHref" browser builder option, "APP_BASE_HREF" DI token or a
14 * combination of both instead. For more information, see
15 * https://angular.io/guide/deployment#the-deploy-url.
16 */
17 deployUrl?: string;
18 /**
19 * Exclude the listed external dependencies from being bundled into the bundle. Instead, the
20 * created bundle relies on these dependencies to be available during runtime.
21 */
22 externalDependencies?: string[];
23 /**
24 * Extract all licenses in a separate file, in the case of production builds only.
25 */
26 extractLicenses?: boolean;
27 /**
28 * Replace compilation source files with other compilation source files in the build.
29 */
30 fileReplacements?: FileReplacement[];
31 /**
32 * How to handle duplicate translations for i18n.
33 */
34 i18nDuplicateTranslation?: I18NTranslation;
35 /**
36 * How to handle missing translations for i18n.
37 */
38 i18nMissingTranslation?: I18NTranslation;
39 /**
40 * The stylesheet language to use for the application's inline component styles.
41 */
42 inlineStyleLanguage?: InlineStyleLanguage;
43 /**
44 * Translate the bundles in one or more locales.
45 */
46 localize?: Localize;
47 /**
48 * The name of the main entry-point file.
49 */
50 main: string;
51 /**
52 * Use file name for lazy loaded chunks.
53 */
54 namedChunks?: boolean;
55 /**
56 * Enables optimization of the build output. Including minification of scripts and styles,
57 * tree-shaking and dead-code elimination. For more information, see
58 * https://angular.io/guide/workspace-config#optimization-configuration.
59 */
60 optimization?: OptimizationUnion;
61 /**
62 * Define the output filename cache-busting hashing mode.
63 */
64 outputHashing?: OutputHashing;
65 /**
66 * Path where output will be placed.
67 */
68 outputPath: string;
69 /**
70 * Enable and define the file watching poll time period in milliseconds.
71 */
72 poll?: number;
73 /**
74 * Do not use the real path when resolving modules. If unset then will default to `true` if
75 * NodeJS option --preserve-symlinks is set.
76 */
77 preserveSymlinks?: boolean;
78 /**
79 * Log progress to the console while building.
80 */
81 progress?: boolean;
82 /**
83 * The path where style resources will be placed, relative to outputPath.
84 */
85 resourcesOutputPath?: string;
86 /**
87 * Show circular dependency warnings on builds.
88 * @deprecated The recommended method to detect circular dependencies in project code is to
89 * use either a lint rule or other external tooling.
90 */
91 showCircularDependencies?: boolean;
92 /**
93 * Output source maps for scripts and styles. For more information, see
94 * https://angular.io/guide/workspace-config#source-map-configuration.
95 */
96 sourceMap?: SourceMapUnion;
97 /**
98 * Generates a 'stats.json' file which can be analyzed using tools such as
99 * 'webpack-bundle-analyzer'.
100 */
101 statsJson?: boolean;
102 /**
103 * Options to pass to style preprocessors
104 */
105 stylePreprocessorOptions?: StylePreprocessorOptions;
106 /**
107 * The name of the TypeScript configuration file.
108 */
109 tsConfig: string;
110 /**
111 * Adds more details to output logging.
112 */
113 verbose?: boolean;
114 /**
115 * Run build when files change.
116 */
117 watch?: boolean;
118}
119/**
120 * Which external dependencies to bundle into the bundle. By default, all of node_modules
121 * will be bundled.
122 */
123export declare type BundleDependenciesUnion = boolean | BundleDependenciesEnum;
124export declare enum BundleDependenciesEnum {
125 All = "all",
126 None = "none"
127}
128export interface FileReplacement {
129 replace?: string;
130 replaceWith?: string;
131 src?: string;
132 with?: string;
133}
134/**
135 * How to handle duplicate translations for i18n.
136 *
137 * How to handle missing translations for i18n.
138 */
139export declare enum I18NTranslation {
140 Error = "error",
141 Ignore = "ignore",
142 Warning = "warning"
143}
144/**
145 * The stylesheet language to use for the application's inline component styles.
146 */
147export declare enum InlineStyleLanguage {
148 Css = "css",
149 Less = "less",
150 Sass = "sass",
151 Scss = "scss"
152}
153/**
154 * Translate the bundles in one or more locales.
155 */
156export declare type Localize = string[] | boolean;
157/**
158 * Enables optimization of the build output. Including minification of scripts and styles,
159 * tree-shaking and dead-code elimination. For more information, see
160 * https://angular.io/guide/workspace-config#optimization-configuration.
161 */
162export declare type OptimizationUnion = boolean | OptimizationClass;
163export interface OptimizationClass {
164 /**
165 * Enables optimization of the scripts output.
166 */
167 scripts?: boolean;
168 /**
169 * Enables optimization of the styles output.
170 */
171 styles?: boolean;
172}
173/**
174 * Define the output filename cache-busting hashing mode.
175 */
176export declare enum OutputHashing {
177 All = "all",
178 Bundles = "bundles",
179 Media = "media",
180 None = "none"
181}
182/**
183 * Output source maps for scripts and styles. For more information, see
184 * https://angular.io/guide/workspace-config#source-map-configuration.
185 */
186export declare type SourceMapUnion = boolean | SourceMapClass;
187export interface SourceMapClass {
188 /**
189 * Output source maps used for error reporting tools.
190 */
191 hidden?: boolean;
192 /**
193 * Output source maps for all scripts.
194 */
195 scripts?: boolean;
196 /**
197 * Output source maps for all styles.
198 */
199 styles?: boolean;
200 /**
201 * Resolve vendor packages source maps.
202 */
203 vendor?: boolean;
204}
205/**
206 * Options to pass to style preprocessors
207 */
208export interface StylePreprocessorOptions {
209 /**
210 * Paths to include. Paths will be resolved to workspace root.
211 */
212 includePaths?: string[];
213}