1 | {
|
2 | "$schema": "http://json-schema.org/draft-07/schema",
|
3 | "$id": "BuildCustomWebpackServerSchema",
|
4 | "title": "Custom webpack server schema for Build Facade",
|
5 | "type": "object",
|
6 | "properties": {
|
7 | "assets": {
|
8 | "type": "array",
|
9 | "description": "List of static application assets.",
|
10 | "default": [],
|
11 | "items": {
|
12 | "$ref": "#/definitions/assetPattern"
|
13 | }
|
14 | },
|
15 | "main": {
|
16 | "type": "string",
|
17 | "description": "The name of the main entry-point file."
|
18 | },
|
19 | "tsConfig": {
|
20 | "type": "string",
|
21 | "default": "tsconfig.app.json",
|
22 | "description": "The name of the TypeScript configuration file."
|
23 | },
|
24 | "inlineStyleLanguage": {
|
25 | "description": "The stylesheet language to use for the application's inline component styles.",
|
26 | "type": "string",
|
27 | "default": "css",
|
28 | "enum": [
|
29 | "css",
|
30 | "less",
|
31 | "sass",
|
32 | "scss"
|
33 | ]
|
34 | },
|
35 | "stylePreprocessorOptions": {
|
36 | "description": "Options to pass to style preprocessors",
|
37 | "type": "object",
|
38 | "properties": {
|
39 | "includePaths": {
|
40 | "description": "Paths to include. Paths will be resolved to workspace root.",
|
41 | "type": "array",
|
42 | "items": {
|
43 | "type": "string"
|
44 | },
|
45 | "default": []
|
46 | }
|
47 | },
|
48 | "additionalProperties": false
|
49 | },
|
50 | "optimization": {
|
51 | "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking and dead-code elimination. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.",
|
52 | "default": true,
|
53 | "x-user-analytics": "ep.ng_optimization",
|
54 | "oneOf": [
|
55 | {
|
56 | "type": "object",
|
57 | "properties": {
|
58 | "scripts": {
|
59 | "type": "boolean",
|
60 | "description": "Enables optimization of the scripts output.",
|
61 | "default": true
|
62 | },
|
63 | "styles": {
|
64 | "type": "boolean",
|
65 | "description": "Enables optimization of the styles output.",
|
66 | "default": true
|
67 | }
|
68 | },
|
69 | "additionalProperties": false
|
70 | },
|
71 | {
|
72 | "type": "boolean"
|
73 | }
|
74 | ]
|
75 | },
|
76 | "fileReplacements": {
|
77 | "description": "Replace compilation source files with other compilation source files in the build.",
|
78 | "type": "array",
|
79 | "items": {
|
80 | "$ref": "#/definitions/fileReplacement"
|
81 | },
|
82 | "default": []
|
83 | },
|
84 | "outputPath": {
|
85 | "type": "string",
|
86 | "description": "Path where output will be placed."
|
87 | },
|
88 | "resourcesOutputPath": {
|
89 | "type": "string",
|
90 | "description": "The path where style resources will be placed, relative to outputPath."
|
91 | },
|
92 | "sourceMap": {
|
93 | "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
|
94 | "default": false,
|
95 | "oneOf": [
|
96 | {
|
97 | "type": "object",
|
98 | "properties": {
|
99 | "scripts": {
|
100 | "type": "boolean",
|
101 | "description": "Output source maps for all scripts.",
|
102 | "default": true
|
103 | },
|
104 | "styles": {
|
105 | "type": "boolean",
|
106 | "description": "Output source maps for all styles.",
|
107 | "default": true
|
108 | },
|
109 | "hidden": {
|
110 | "type": "boolean",
|
111 | "description": "Output source maps used for error reporting tools.",
|
112 | "default": false
|
113 | },
|
114 | "vendor": {
|
115 | "type": "boolean",
|
116 | "description": "Resolve vendor packages source maps.",
|
117 | "default": false
|
118 | }
|
119 | },
|
120 | "additionalProperties": false
|
121 | },
|
122 | {
|
123 | "type": "boolean"
|
124 | }
|
125 | ]
|
126 | },
|
127 | "deployUrl": {
|
128 | "type": "string",
|
129 | "description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations."
|
130 | },
|
131 | "vendorChunk": {
|
132 | "type": "boolean",
|
133 | "description": "Generate a seperate bundle containing only vendor libraries. This option should only be used for development to reduce the incremental compilation time.",
|
134 | "default": false
|
135 | },
|
136 | "verbose": {
|
137 | "type": "boolean",
|
138 | "description": "Adds more details to output logging.",
|
139 | "default": false
|
140 | },
|
141 | "progress": {
|
142 | "type": "boolean",
|
143 | "description": "Log progress to the console while building.",
|
144 | "default": true
|
145 | },
|
146 | "i18nMissingTranslation": {
|
147 | "type": "string",
|
148 | "description": "How to handle missing translations for i18n.",
|
149 | "enum": [
|
150 | "warning",
|
151 | "error",
|
152 | "ignore"
|
153 | ],
|
154 | "default": "warning"
|
155 | },
|
156 | "i18nDuplicateTranslation": {
|
157 | "type": "string",
|
158 | "description": "How to handle duplicate translations for i18n.",
|
159 | "enum": [
|
160 | "warning",
|
161 | "error",
|
162 | "ignore"
|
163 | ],
|
164 | "default": "warning"
|
165 | },
|
166 | "localize": {
|
167 | "description": "Translate the bundles in one or more locales.",
|
168 | "oneOf": [
|
169 | {
|
170 | "type": "boolean",
|
171 | "description": "Translate all locales."
|
172 | },
|
173 | {
|
174 | "type": "array",
|
175 | "description": "List of locales ID's to translate.",
|
176 | "minItems": 1,
|
177 | "items": {
|
178 | "type": "string",
|
179 | "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
|
180 | }
|
181 | }
|
182 | ]
|
183 | },
|
184 | "outputHashing": {
|
185 | "type": "string",
|
186 | "description": "Define the output filename cache-busting hashing mode.",
|
187 | "default": "none",
|
188 | "enum": [
|
189 | "none",
|
190 | "all",
|
191 | "media",
|
192 | "bundles"
|
193 | ]
|
194 | },
|
195 | "deleteOutputPath": {
|
196 | "type": "boolean",
|
197 | "description": "Delete the output path before building.",
|
198 | "default": true
|
199 | },
|
200 | "preserveSymlinks": {
|
201 | "type": "boolean",
|
202 | "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
|
203 | },
|
204 | "extractLicenses": {
|
205 | "type": "boolean",
|
206 | "description": "Extract all licenses in a separate file, in the case of production builds only.",
|
207 | "default": true
|
208 | },
|
209 | "buildOptimizer": {
|
210 | "type": "boolean",
|
211 | "description": "Enables advanced build optimizations.",
|
212 | "default": true
|
213 | },
|
214 | "namedChunks": {
|
215 | "type": "boolean",
|
216 | "description": "Use file name for lazy loaded chunks.",
|
217 | "default": false
|
218 | },
|
219 | "externalDependencies": {
|
220 | "description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime.",
|
221 | "type": "array",
|
222 | "items": {
|
223 | "type": "string"
|
224 | },
|
225 | "default": []
|
226 | },
|
227 | "statsJson": {
|
228 | "type": "boolean",
|
229 | "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
|
230 | "default": false
|
231 | },
|
232 | "watch": {
|
233 | "type": "boolean",
|
234 | "description": "Run build when files change.",
|
235 | "default": false
|
236 | },
|
237 | "poll": {
|
238 | "type": "number",
|
239 | "description": "Enable and define the file watching poll time period in milliseconds."
|
240 | },
|
241 | "customWebpackConfig": {
|
242 | "description": "Custom webpack configuration",
|
243 | "default": false,
|
244 | "oneOf": [
|
245 | {
|
246 | "type": "object",
|
247 | "properties": {
|
248 | "path": {
|
249 | "type": "string",
|
250 | "description": "Path to the custom webpack configuration file"
|
251 | },
|
252 | "mergeRules": {
|
253 | "type": "object",
|
254 | "description": "Merge rules as described here: https://github.com/survivejs/webpack-merge#mergewithrules"
|
255 | },
|
256 | "replaceDuplicatePlugins": {
|
257 | "type": "boolean",
|
258 | "description": "Flag that indicates whether to replace duplicate webpack plugins or not"
|
259 | },
|
260 | "verbose": {
|
261 | "type": "object",
|
262 | "description": "Determines whether to log configuration properties into a console",
|
263 | "properties": {
|
264 | "properties": {
|
265 | "description": "A list of properties to log into a console, for instance, `['plugins', 'mode', 'entry']`",
|
266 | "type": "array",
|
267 | "items": {
|
268 | "type": "string"
|
269 | }
|
270 | },
|
271 | "serializationDepth": {
|
272 | "type": "number",
|
273 | "description": "The number of times to recurse the object while formatting"
|
274 | }
|
275 | }
|
276 | }
|
277 | }
|
278 | },
|
279 | {
|
280 | "type": "boolean"
|
281 | }
|
282 | ]
|
283 | },
|
284 | "indexTransform": {
|
285 | "type": "string",
|
286 | "description": "Path to the file with index.html transform function"
|
287 | }
|
288 | },
|
289 | "additionalProperties": false,
|
290 | "required": [
|
291 | "outputPath",
|
292 | "main",
|
293 | "tsConfig"
|
294 | ],
|
295 | "definitions": {
|
296 | "assetPattern": {
|
297 | "oneOf": [
|
298 | {
|
299 | "type": "object",
|
300 | "properties": {
|
301 | "followSymlinks": {
|
302 | "type": "boolean",
|
303 | "default": false,
|
304 | "description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
|
305 | },
|
306 | "glob": {
|
307 | "type": "string",
|
308 | "description": "The pattern to match."
|
309 | },
|
310 | "input": {
|
311 | "type": "string",
|
312 | "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
|
313 | },
|
314 | "ignore": {
|
315 | "description": "An array of globs to ignore.",
|
316 | "type": "array",
|
317 | "items": {
|
318 | "type": "string"
|
319 | }
|
320 | },
|
321 | "output": {
|
322 | "type": "string",
|
323 | "default": "",
|
324 | "description": "Absolute path within the output."
|
325 | }
|
326 | },
|
327 | "additionalProperties": false,
|
328 | "required": [
|
329 | "glob",
|
330 | "input"
|
331 | ]
|
332 | },
|
333 | {
|
334 | "type": "string"
|
335 | }
|
336 | ]
|
337 | },
|
338 | "fileReplacement": {
|
339 | "oneOf": [
|
340 | {
|
341 | "type": "object",
|
342 | "properties": {
|
343 | "src": {
|
344 | "type": "string",
|
345 | "pattern": "\\.(([cm]?[jt])sx?|json)$"
|
346 | },
|
347 | "replaceWith": {
|
348 | "type": "string",
|
349 | "pattern": "\\.(([cm]?[jt])sx?|json)$"
|
350 | }
|
351 | },
|
352 | "additionalProperties": false,
|
353 | "required": [
|
354 | "src",
|
355 | "replaceWith"
|
356 | ]
|
357 | },
|
358 | {
|
359 | "type": "object",
|
360 | "properties": {
|
361 | "replace": {
|
362 | "type": "string",
|
363 | "pattern": "\\.(([cm]?[jt])sx?|json)$"
|
364 | },
|
365 | "with": {
|
366 | "type": "string",
|
367 | "pattern": "\\.(([cm]?[jt])sx?|json)$"
|
368 | }
|
369 | },
|
370 | "additionalProperties": false,
|
371 | "required": [
|
372 | "replace",
|
373 | "with"
|
374 | ]
|
375 | }
|
376 | ]
|
377 | }
|
378 | },
|
379 | "description": "Server target options"
|
380 | } |
\ | No newline at end of file |