@angular/build 18.0.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -0
  3. package/builders.json +14 -0
  4. package/package.json +87 -0
  5. package/src/builders/application/build-action.d.ts +33 -0
  6. package/src/builders/application/build-action.js +183 -0
  7. package/src/builders/application/execute-build.d.ts +11 -0
  8. package/src/builders/application/execute-build.js +125 -0
  9. package/src/builders/application/execute-post-bundle.d.ts +25 -0
  10. package/src/builders/application/execute-post-bundle.js +93 -0
  11. package/src/builders/application/i18n.d.ts +29 -0
  12. package/src/builders/application/i18n.js +128 -0
  13. package/src/builders/application/index.d.ts +57 -0
  14. package/src/builders/application/index.js +121 -0
  15. package/src/builders/application/options.d.ts +149 -0
  16. package/src/builders/application/options.js +369 -0
  17. package/src/builders/application/schema.d.ts +512 -0
  18. package/src/builders/application/schema.js +58 -0
  19. package/src/builders/application/schema.json +635 -0
  20. package/src/builders/application/setup-bundling.d.ts +19 -0
  21. package/src/builders/application/setup-bundling.js +71 -0
  22. package/src/builders/dev-server/builder.d.ts +32 -0
  23. package/src/builders/dev-server/builder.js +70 -0
  24. package/src/builders/dev-server/index.d.ts +14 -0
  25. package/src/builders/dev-server/index.js +15 -0
  26. package/src/builders/dev-server/internal.d.ts +19 -0
  27. package/src/builders/dev-server/internal.js +29 -0
  28. package/src/builders/dev-server/options.d.ts +47 -0
  29. package/src/builders/dev-server/options.js +65 -0
  30. package/src/builders/dev-server/output.d.ts +16 -0
  31. package/src/builders/dev-server/output.js +9 -0
  32. package/src/builders/dev-server/schema.d.ts +118 -0
  33. package/src/builders/dev-server/schema.js +4 -0
  34. package/src/builders/dev-server/schema.json +131 -0
  35. package/src/builders/dev-server/vite-server.d.ts +31 -0
  36. package/src/builders/dev-server/vite-server.js +504 -0
  37. package/src/index.d.ts +11 -0
  38. package/src/index.js +16 -0
  39. package/src/private.d.ts +35 -0
  40. package/src/private.js +70 -0
  41. package/src/tools/babel/plugins/adjust-static-class-members.d.ts +26 -0
  42. package/src/tools/babel/plugins/adjust-static-class-members.js +351 -0
  43. package/src/tools/babel/plugins/adjust-typescript-enums.d.ts +22 -0
  44. package/src/tools/babel/plugins/adjust-typescript-enums.js +113 -0
  45. package/src/tools/babel/plugins/elide-angular-metadata.d.ts +22 -0
  46. package/src/tools/babel/plugins/elide-angular-metadata.js +110 -0
  47. package/src/tools/babel/plugins/index.d.ts +11 -0
  48. package/src/tools/babel/plugins/index.js +21 -0
  49. package/src/tools/babel/plugins/pure-toplevel-functions.d.ts +15 -0
  50. package/src/tools/babel/plugins/pure-toplevel-functions.js +90 -0
  51. package/src/tools/babel/typings.d.ts +21 -0
  52. package/src/tools/esbuild/angular/angular-host.d.ts +26 -0
  53. package/src/tools/esbuild/angular/angular-host.js +134 -0
  54. package/src/tools/esbuild/angular/compilation/angular-compilation.d.ts +42 -0
  55. package/src/tools/esbuild/angular/compilation/angular-compilation.js +94 -0
  56. package/src/tools/esbuild/angular/compilation/aot-compilation.d.ts +21 -0
  57. package/src/tools/esbuild/angular/compilation/aot-compilation.js +224 -0
  58. package/src/tools/esbuild/angular/compilation/factory.d.ts +16 -0
  59. package/src/tools/esbuild/angular/compilation/factory.js +56 -0
  60. package/src/tools/esbuild/angular/compilation/index.d.ts +10 -0
  61. package/src/tools/esbuild/angular/compilation/index.js +17 -0
  62. package/src/tools/esbuild/angular/compilation/jit-bootstrap-transformer.d.ts +10 -0
  63. package/src/tools/esbuild/angular/compilation/jit-bootstrap-transformer.js +182 -0
  64. package/src/tools/esbuild/angular/compilation/jit-compilation.d.ts +21 -0
  65. package/src/tools/esbuild/angular/compilation/jit-compilation.js +106 -0
  66. package/src/tools/esbuild/angular/compilation/noop-compilation.d.ts +20 -0
  67. package/src/tools/esbuild/angular/compilation/noop-compilation.js +26 -0
  68. package/src/tools/esbuild/angular/compilation/parallel-compilation.d.ts +42 -0
  69. package/src/tools/esbuild/angular/compilation/parallel-compilation.js +123 -0
  70. package/src/tools/esbuild/angular/compilation/parallel-worker.d.ts +33 -0
  71. package/src/tools/esbuild/angular/compilation/parallel-worker.js +90 -0
  72. package/src/tools/esbuild/angular/compilation-state.d.ts +15 -0
  73. package/src/tools/esbuild/angular/compilation-state.js +44 -0
  74. package/src/tools/esbuild/angular/compiler-plugin.d.ts +27 -0
  75. package/src/tools/esbuild/angular/compiler-plugin.js +441 -0
  76. package/src/tools/esbuild/angular/component-stylesheets.d.ts +44 -0
  77. package/src/tools/esbuild/angular/component-stylesheets.js +150 -0
  78. package/src/tools/esbuild/angular/diagnostics.d.ts +15 -0
  79. package/src/tools/esbuild/angular/diagnostics.js +69 -0
  80. package/src/tools/esbuild/angular/file-reference-tracker.d.ts +17 -0
  81. package/src/tools/esbuild/angular/file-reference-tracker.js +57 -0
  82. package/src/tools/esbuild/angular/jit-plugin-callbacks.d.ts +23 -0
  83. package/src/tools/esbuild/angular/jit-plugin-callbacks.js +117 -0
  84. package/src/tools/esbuild/angular/jit-resource-transformer.d.ts +17 -0
  85. package/src/tools/esbuild/angular/jit-resource-transformer.js +186 -0
  86. package/src/tools/esbuild/angular/source-file-cache.d.ts +18 -0
  87. package/src/tools/esbuild/angular/source-file-cache.js +65 -0
  88. package/src/tools/esbuild/angular/uri.d.ts +54 -0
  89. package/src/tools/esbuild/angular/uri.js +74 -0
  90. package/src/tools/esbuild/angular/web-worker-transformer.d.ts +17 -0
  91. package/src/tools/esbuild/angular/web-worker-transformer.js +94 -0
  92. package/src/tools/esbuild/application-code-bundle.d.ts +20 -0
  93. package/src/tools/esbuild/application-code-bundle.js +368 -0
  94. package/src/tools/esbuild/budget-stats.d.ts +19 -0
  95. package/src/tools/esbuild/budget-stats.js +59 -0
  96. package/src/tools/esbuild/bundler-context.d.ts +75 -0
  97. package/src/tools/esbuild/bundler-context.js +366 -0
  98. package/src/tools/esbuild/bundler-execution-result.d.ts +71 -0
  99. package/src/tools/esbuild/bundler-execution-result.js +131 -0
  100. package/src/tools/esbuild/cache.d.ts +88 -0
  101. package/src/tools/esbuild/cache.js +92 -0
  102. package/src/tools/esbuild/commonjs-checker.d.ts +28 -0
  103. package/src/tools/esbuild/commonjs-checker.js +151 -0
  104. package/src/tools/esbuild/compiler-plugin-options.d.ts +16 -0
  105. package/src/tools/esbuild/compiler-plugin-options.js +49 -0
  106. package/src/tools/esbuild/external-packages-plugin.d.ts +18 -0
  107. package/src/tools/esbuild/external-packages-plugin.js +70 -0
  108. package/src/tools/esbuild/global-scripts.d.ts +16 -0
  109. package/src/tools/esbuild/global-scripts.js +142 -0
  110. package/src/tools/esbuild/global-styles.d.ts +10 -0
  111. package/src/tools/esbuild/global-styles.js +74 -0
  112. package/src/tools/esbuild/i18n-inliner-worker.d.ts +42 -0
  113. package/src/tools/esbuild/i18n-inliner-worker.js +136 -0
  114. package/src/tools/esbuild/i18n-inliner.d.ts +44 -0
  115. package/src/tools/esbuild/i18n-inliner.js +150 -0
  116. package/src/tools/esbuild/i18n-locale-plugin.d.ts +22 -0
  117. package/src/tools/esbuild/i18n-locale-plugin.js +120 -0
  118. package/src/tools/esbuild/index-html-generator.d.ts +15 -0
  119. package/src/tools/esbuild/index-html-generator.js +81 -0
  120. package/src/tools/esbuild/javascript-transformer-worker.d.ts +19 -0
  121. package/src/tools/esbuild/javascript-transformer-worker.js +154 -0
  122. package/src/tools/esbuild/javascript-transformer.d.ts +54 -0
  123. package/src/tools/esbuild/javascript-transformer.js +147 -0
  124. package/src/tools/esbuild/license-extractor.d.ts +25 -0
  125. package/src/tools/esbuild/license-extractor.js +158 -0
  126. package/src/tools/esbuild/load-result-cache.d.ts +21 -0
  127. package/src/tools/esbuild/load-result-cache.js +75 -0
  128. package/src/tools/esbuild/profiling.d.ts +11 -0
  129. package/src/tools/esbuild/profiling.js +78 -0
  130. package/src/tools/esbuild/rxjs-esm-resolution-plugin.d.ts +18 -0
  131. package/src/tools/esbuild/rxjs-esm-resolution-plugin.js +44 -0
  132. package/src/tools/esbuild/sourcemap-ignorelist-plugin.d.ts +17 -0
  133. package/src/tools/esbuild/sourcemap-ignorelist-plugin.js +73 -0
  134. package/src/tools/esbuild/stylesheets/bundle-options.d.ts +35 -0
  135. package/src/tools/esbuild/stylesheets/bundle-options.js +64 -0
  136. package/src/tools/esbuild/stylesheets/css-inline-fonts-plugin.d.ts +25 -0
  137. package/src/tools/esbuild/stylesheets/css-inline-fonts-plugin.js +57 -0
  138. package/src/tools/esbuild/stylesheets/css-language.d.ts +9 -0
  139. package/src/tools/esbuild/stylesheets/css-language.js +15 -0
  140. package/src/tools/esbuild/stylesheets/css-resource-plugin.d.ts +18 -0
  141. package/src/tools/esbuild/stylesheets/css-resource-plugin.js +114 -0
  142. package/src/tools/esbuild/stylesheets/less-language.d.ts +9 -0
  143. package/src/tools/esbuild/stylesheets/less-language.js +155 -0
  144. package/src/tools/esbuild/stylesheets/sass-language.d.ts +10 -0
  145. package/src/tools/esbuild/stylesheets/sass-language.js +185 -0
  146. package/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.d.ts +58 -0
  147. package/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.js +282 -0
  148. package/src/tools/esbuild/utils.d.ts +49 -0
  149. package/src/tools/esbuild/utils.js +392 -0
  150. package/src/tools/esbuild/virtual-module-plugin.d.ts +33 -0
  151. package/src/tools/esbuild/virtual-module-plugin.js +43 -0
  152. package/src/tools/esbuild/watcher.d.ts +25 -0
  153. package/src/tools/esbuild/watcher.js +118 -0
  154. package/src/tools/sass/lexer.d.ts +18 -0
  155. package/src/tools/sass/lexer.js +161 -0
  156. package/src/tools/sass/rebasing-importer.d.ts +101 -0
  157. package/src/tools/sass/rebasing-importer.js +334 -0
  158. package/src/tools/sass/sass-service.d.ts +72 -0
  159. package/src/tools/sass/sass-service.js +213 -0
  160. package/src/tools/sass/worker.d.ts +8 -0
  161. package/src/tools/sass/worker.js +192 -0
  162. package/src/tools/vite/angular-memory-plugin.d.ts +24 -0
  163. package/src/tools/vite/angular-memory-plugin.js +268 -0
  164. package/src/tools/vite/i18n-locale-plugin.d.ts +18 -0
  165. package/src/tools/vite/i18n-locale-plugin.js +55 -0
  166. package/src/utils/bundle-calculator.d.ts +44 -0
  167. package/src/utils/bundle-calculator.js +303 -0
  168. package/src/utils/check-port.d.ts +8 -0
  169. package/src/utils/check-port.js +58 -0
  170. package/src/utils/color.d.ts +10 -0
  171. package/src/utils/color.js +63 -0
  172. package/src/utils/delete-output-dir.d.ts +11 -0
  173. package/src/utils/delete-output-dir.js +46 -0
  174. package/src/utils/environment-options.d.ts +16 -0
  175. package/src/utils/environment-options.js +79 -0
  176. package/src/utils/error.d.ts +10 -0
  177. package/src/utils/error.js +21 -0
  178. package/src/utils/format-bytes.d.ts +8 -0
  179. package/src/utils/format-bytes.js +22 -0
  180. package/src/utils/i18n-options.d.ts +33 -0
  181. package/src/utils/i18n-options.js +161 -0
  182. package/src/utils/index-file/add-event-dispatch-contract.d.ts +8 -0
  183. package/src/utils/index-file/add-event-dispatch-contract.js +28 -0
  184. package/src/utils/index-file/augment-index-html.d.ts +40 -0
  185. package/src/utils/index-file/augment-index-html.js +239 -0
  186. package/src/utils/index-file/html-rewriting-stream.d.ts +11 -0
  187. package/src/utils/index-file/html-rewriting-stream.js +28 -0
  188. package/src/utils/index-file/index-html-generator.d.ts +57 -0
  189. package/src/utils/index-file/index-html-generator.js +135 -0
  190. package/src/utils/index-file/inline-critical-css.d.ts +24 -0
  191. package/src/utils/index-file/inline-critical-css.js +179 -0
  192. package/src/utils/index-file/inline-fonts.d.ts +23 -0
  193. package/src/utils/index-file/inline-fonts.js +267 -0
  194. package/src/utils/index-file/nonce.d.ts +12 -0
  195. package/src/utils/index-file/nonce.js +55 -0
  196. package/src/utils/index-file/style-nonce.d.ts +12 -0
  197. package/src/utils/index-file/style-nonce.js +55 -0
  198. package/src/utils/index.d.ts +11 -0
  199. package/src/utils/index.js +27 -0
  200. package/src/utils/load-esm.d.ts +20 -0
  201. package/src/utils/load-esm.js +31 -0
  202. package/src/utils/load-proxy-config.d.ts +8 -0
  203. package/src/utils/load-proxy-config.js +189 -0
  204. package/src/utils/load-translations.d.ts +16 -0
  205. package/src/utils/load-translations.js +84 -0
  206. package/src/utils/normalize-asset-patterns.d.ts +14 -0
  207. package/src/utils/normalize-asset-patterns.js +96 -0
  208. package/src/utils/normalize-cache.d.ts +16 -0
  209. package/src/utils/normalize-cache.js +44 -0
  210. package/src/utils/normalize-optimization.d.ts +13 -0
  211. package/src/utils/normalize-optimization.js +42 -0
  212. package/src/utils/normalize-source-maps.d.ts +9 -0
  213. package/src/utils/normalize-source-maps.js +23 -0
  214. package/src/utils/postcss-configuration.d.ts +17 -0
  215. package/src/utils/postcss-configuration.js +86 -0
  216. package/src/utils/purge-cache.d.ts +10 -0
  217. package/src/utils/purge-cache.js +40 -0
  218. package/src/utils/resolve-assets.d.ts +18 -0
  219. package/src/utils/resolve-assets.js +35 -0
  220. package/src/utils/routes-extractor/extractor.d.ts +15 -0
  221. package/src/utils/routes-extractor/extractor.js +97 -0
  222. package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.d.ts +18 -0
  223. package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.js +129 -0
  224. package/src/utils/server-rendering/esm-in-memory-loader/register-hooks.d.ts +8 -0
  225. package/src/utils/server-rendering/esm-in-memory-loader/register-hooks.js +13 -0
  226. package/src/utils/server-rendering/fetch-patch.d.ts +8 -0
  227. package/src/utils/server-rendering/fetch-patch.js +66 -0
  228. package/src/utils/server-rendering/load-esm-from-memory.d.ts +10 -0
  229. package/src/utils/server-rendering/load-esm-from-memory.js +26 -0
  230. package/src/utils/server-rendering/main-bundle-exports.d.ts +27 -0
  231. package/src/utils/server-rendering/main-bundle-exports.js +9 -0
  232. package/src/utils/server-rendering/prerender.d.ts +23 -0
  233. package/src/utils/server-rendering/prerender.js +192 -0
  234. package/src/utils/server-rendering/render-page.d.ts +26 -0
  235. package/src/utils/server-rendering/render-page.js +110 -0
  236. package/src/utils/server-rendering/render-worker.d.ts +22 -0
  237. package/src/utils/server-rendering/render-worker.js +30 -0
  238. package/src/utils/server-rendering/routes-extractor-worker.d.ts +21 -0
  239. package/src/utils/server-rendering/routes-extractor-worker.js +53 -0
  240. package/src/utils/service-worker.d.ts +25 -0
  241. package/src/utils/service-worker.js +211 -0
  242. package/src/utils/spinner.d.ts +20 -0
  243. package/src/utils/spinner.js +55 -0
  244. package/src/utils/stats-table.d.ts +20 -0
  245. package/src/utils/stats-table.js +205 -0
  246. package/src/utils/supported-browsers.d.ts +10 -0
  247. package/src/utils/supported-browsers.js +42 -0
  248. package/src/utils/tty.d.ts +8 -0
  249. package/src/utils/tty.js +23 -0
  250. package/src/utils/url.d.ts +8 -0
  251. package/src/utils/url.js +18 -0
  252. package/src/utils/version.d.ts +8 -0
  253. package/src/utils/version.js +59 -0
@@ -0,0 +1,512 @@
1
+ /**
2
+ * Application builder target options
3
+ */
4
+ export interface Schema {
5
+ /**
6
+ * A list of CommonJS or AMD packages that are allowed to be used without a build time
7
+ * warning. Use `'*'` to allow all.
8
+ */
9
+ allowedCommonJsDependencies?: string[];
10
+ /**
11
+ * Build using Ahead of Time compilation.
12
+ */
13
+ aot?: boolean;
14
+ /**
15
+ * Generates an application shell during build time.
16
+ */
17
+ appShell?: boolean;
18
+ /**
19
+ * List of static application assets.
20
+ */
21
+ assets?: AssetPattern[];
22
+ /**
23
+ * Base url for the application being built.
24
+ */
25
+ baseHref?: string;
26
+ /**
27
+ * The full path for the browser entry point to the application, relative to the current
28
+ * workspace.
29
+ */
30
+ browser: string;
31
+ /**
32
+ * Budget thresholds to ensure parts of your application stay within boundaries which you
33
+ * set.
34
+ */
35
+ budgets?: Budget[];
36
+ /**
37
+ * Automatically clear the terminal screen during rebuilds.
38
+ */
39
+ clearScreen?: boolean;
40
+ /**
41
+ * Define the crossorigin attribute setting of elements that provide CORS support.
42
+ */
43
+ crossOrigin?: CrossOrigin;
44
+ /**
45
+ * Defines global identifiers that will be replaced with a specified constant value when
46
+ * found in any JavaScript or TypeScript code including libraries. The value will be used
47
+ * directly. String values must be put in quotes. Identifiers within Angular metadata such
48
+ * as Component Decorators will not be replaced.
49
+ */
50
+ define?: {
51
+ [key: string]: string;
52
+ };
53
+ /**
54
+ * Delete the output path before building.
55
+ */
56
+ deleteOutputPath?: boolean;
57
+ /**
58
+ * Customize the base path for the URLs of resources in 'index.html' and component
59
+ * stylesheets. This option is only necessary for specific deployment scenarios, such as
60
+ * with Angular Elements or when utilizing different CDN locations.
61
+ */
62
+ deployUrl?: string;
63
+ /**
64
+ * Exclude the listed external dependencies from being bundled into the bundle. Instead, the
65
+ * created bundle relies on these dependencies to be available during runtime.
66
+ */
67
+ externalDependencies?: string[];
68
+ /**
69
+ * Extract all licenses in a separate file.
70
+ */
71
+ extractLicenses?: boolean;
72
+ /**
73
+ * Replace compilation source files with other compilation source files in the build.
74
+ */
75
+ fileReplacements?: FileReplacement[];
76
+ /**
77
+ * How to handle duplicate translations for i18n.
78
+ */
79
+ i18nDuplicateTranslation?: I18NTranslation;
80
+ /**
81
+ * How to handle missing translations for i18n.
82
+ */
83
+ i18nMissingTranslation?: I18NTranslation;
84
+ /**
85
+ * Configures the generation of the application's HTML index.
86
+ */
87
+ index: IndexUnion;
88
+ /**
89
+ * The stylesheet language to use for the application's inline component styles.
90
+ */
91
+ inlineStyleLanguage?: InlineStyleLanguage;
92
+ /**
93
+ * Defines the type of loader to use with a specified file extension when used with a
94
+ * JavaScript `import`. `text` inlines the content as a string; `binary` inlines the content
95
+ * as a Uint8Array; `file` emits the file and provides the runtime location of the file;
96
+ * `empty` considers the content to be empty and not include it in bundles.
97
+ */
98
+ loader?: {
99
+ [key: string]: any;
100
+ };
101
+ /**
102
+ * Translate the bundles in one or more locales.
103
+ */
104
+ localize?: Localize;
105
+ /**
106
+ * Use file name for lazy loaded chunks.
107
+ */
108
+ namedChunks?: boolean;
109
+ /**
110
+ * Enables optimization of the build output. Including minification of scripts and styles,
111
+ * tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For
112
+ * more information, see
113
+ * https://angular.io/guide/workspace-config#optimization-configuration.
114
+ */
115
+ optimization?: OptimizationUnion;
116
+ /**
117
+ * Define the output filename cache-busting hashing mode.
118
+ */
119
+ outputHashing?: OutputHashing;
120
+ /**
121
+ * Specify the output path relative to workspace root.
122
+ */
123
+ outputPath: OutputPathUnion;
124
+ /**
125
+ * Enable and define the file watching poll time period in milliseconds.
126
+ */
127
+ poll?: number;
128
+ /**
129
+ * A list of polyfills to include in the build. Can be a full path for a file, relative to
130
+ * the current workspace or module specifier. Example: 'zone.js'.
131
+ */
132
+ polyfills?: string[];
133
+ /**
134
+ * Prerender (SSG) pages of your application during build time.
135
+ */
136
+ prerender?: PrerenderUnion;
137
+ /**
138
+ * Do not use the real path when resolving modules. If unset then will default to `true` if
139
+ * NodeJS option --preserve-symlinks is set.
140
+ */
141
+ preserveSymlinks?: boolean;
142
+ /**
143
+ * Log progress to the console while building.
144
+ */
145
+ progress?: boolean;
146
+ /**
147
+ * Global scripts to be included in the build.
148
+ */
149
+ scripts?: ScriptElement[];
150
+ /**
151
+ * The full path for the server entry point to the application, relative to the current
152
+ * workspace.
153
+ */
154
+ server?: string;
155
+ /**
156
+ * Generates a service worker configuration.
157
+ */
158
+ serviceWorker?: ServiceWorker;
159
+ /**
160
+ * Output source maps for scripts and styles. For more information, see
161
+ * https://angular.io/guide/workspace-config#source-map-configuration.
162
+ */
163
+ sourceMap?: SourceMapUnion;
164
+ /**
165
+ * Server side render (SSR) pages of your application during runtime.
166
+ */
167
+ ssr?: SsrUnion;
168
+ /**
169
+ * Generates a 'stats.json' file which can be analyzed with
170
+ * https://esbuild.github.io/analyze/.
171
+ */
172
+ statsJson?: boolean;
173
+ /**
174
+ * Options to pass to style preprocessors.
175
+ */
176
+ stylePreprocessorOptions?: StylePreprocessorOptions;
177
+ /**
178
+ * Global styles to be included in the build.
179
+ */
180
+ styles?: StyleElement[];
181
+ /**
182
+ * Enables the use of subresource integrity validation.
183
+ */
184
+ subresourceIntegrity?: boolean;
185
+ /**
186
+ * The full path for the TypeScript configuration file, relative to the current workspace.
187
+ */
188
+ tsConfig: string;
189
+ /**
190
+ * Adds more details to output logging.
191
+ */
192
+ verbose?: boolean;
193
+ /**
194
+ * Run build when files change.
195
+ */
196
+ watch?: boolean;
197
+ /**
198
+ * TypeScript configuration for Web Worker modules.
199
+ */
200
+ webWorkerTsConfig?: string;
201
+ }
202
+ export type AssetPattern = AssetPatternClass | string;
203
+ export interface AssetPatternClass {
204
+ /**
205
+ * Allow glob patterns to follow symlink directories. This allows subdirectories of the
206
+ * symlink to be searched.
207
+ */
208
+ followSymlinks?: boolean;
209
+ /**
210
+ * The pattern to match.
211
+ */
212
+ glob: string;
213
+ /**
214
+ * An array of globs to ignore.
215
+ */
216
+ ignore?: string[];
217
+ /**
218
+ * The input directory path in which to apply 'glob'. Defaults to the project root.
219
+ */
220
+ input: string;
221
+ /**
222
+ * Absolute path within the output.
223
+ */
224
+ output?: string;
225
+ }
226
+ export interface Budget {
227
+ /**
228
+ * The baseline size for comparison.
229
+ */
230
+ baseline?: string;
231
+ /**
232
+ * The threshold for error relative to the baseline (min & max).
233
+ */
234
+ error?: string;
235
+ /**
236
+ * The maximum threshold for error relative to the baseline.
237
+ */
238
+ maximumError?: string;
239
+ /**
240
+ * The maximum threshold for warning relative to the baseline.
241
+ */
242
+ maximumWarning?: string;
243
+ /**
244
+ * The minimum threshold for error relative to the baseline.
245
+ */
246
+ minimumError?: string;
247
+ /**
248
+ * The minimum threshold for warning relative to the baseline.
249
+ */
250
+ minimumWarning?: string;
251
+ /**
252
+ * The name of the bundle.
253
+ */
254
+ name?: string;
255
+ /**
256
+ * The type of budget.
257
+ */
258
+ type: Type;
259
+ /**
260
+ * The threshold for warning relative to the baseline (min & max).
261
+ */
262
+ warning?: string;
263
+ }
264
+ /**
265
+ * The type of budget.
266
+ */
267
+ export declare enum Type {
268
+ All = "all",
269
+ AllScript = "allScript",
270
+ Any = "any",
271
+ AnyComponentStyle = "anyComponentStyle",
272
+ AnyScript = "anyScript",
273
+ Bundle = "bundle",
274
+ Initial = "initial"
275
+ }
276
+ /**
277
+ * Define the crossorigin attribute setting of elements that provide CORS support.
278
+ */
279
+ export declare enum CrossOrigin {
280
+ Anonymous = "anonymous",
281
+ None = "none",
282
+ UseCredentials = "use-credentials"
283
+ }
284
+ export interface FileReplacement {
285
+ replace: string;
286
+ with: string;
287
+ }
288
+ /**
289
+ * How to handle duplicate translations for i18n.
290
+ *
291
+ * How to handle missing translations for i18n.
292
+ */
293
+ export declare enum I18NTranslation {
294
+ Error = "error",
295
+ Ignore = "ignore",
296
+ Warning = "warning"
297
+ }
298
+ /**
299
+ * Configures the generation of the application's HTML index.
300
+ */
301
+ export type IndexUnion = boolean | IndexObject | string;
302
+ export interface IndexObject {
303
+ /**
304
+ * The path of a file to use for the application's generated HTML index.
305
+ */
306
+ input: string;
307
+ /**
308
+ * The output path of the application's generated HTML index file. The full provided path
309
+ * will be used and will be considered relative to the application's configured output path.
310
+ */
311
+ output?: string;
312
+ /**
313
+ * Generates 'preload', 'modulepreload', and 'preconnect' link elements for initial
314
+ * application files and resources.
315
+ */
316
+ preloadInitial?: boolean;
317
+ [property: string]: any;
318
+ }
319
+ /**
320
+ * The stylesheet language to use for the application's inline component styles.
321
+ */
322
+ export declare enum InlineStyleLanguage {
323
+ Css = "css",
324
+ Less = "less",
325
+ Sass = "sass",
326
+ Scss = "scss"
327
+ }
328
+ /**
329
+ * Translate the bundles in one or more locales.
330
+ */
331
+ export type Localize = string[] | boolean;
332
+ /**
333
+ * Enables optimization of the build output. Including minification of scripts and styles,
334
+ * tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For
335
+ * more information, see
336
+ * https://angular.io/guide/workspace-config#optimization-configuration.
337
+ */
338
+ export type OptimizationUnion = boolean | OptimizationClass;
339
+ export interface OptimizationClass {
340
+ /**
341
+ * Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY`
342
+ * environment variable can be used to specify a proxy server.
343
+ */
344
+ fonts?: FontsUnion;
345
+ /**
346
+ * Enables optimization of the scripts output.
347
+ */
348
+ scripts?: boolean;
349
+ /**
350
+ * Enables optimization of the styles output.
351
+ */
352
+ styles?: StylesUnion;
353
+ }
354
+ /**
355
+ * Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY`
356
+ * environment variable can be used to specify a proxy server.
357
+ */
358
+ export type FontsUnion = boolean | FontsClass;
359
+ export interface FontsClass {
360
+ /**
361
+ * Reduce render blocking requests by inlining external Google Fonts and Adobe Fonts CSS
362
+ * definitions in the application's HTML index file. This option requires internet access.
363
+ * `HTTPS_PROXY` environment variable can be used to specify a proxy server.
364
+ */
365
+ inline?: boolean;
366
+ }
367
+ /**
368
+ * Enables optimization of the styles output.
369
+ */
370
+ export type StylesUnion = boolean | StylesClass;
371
+ export interface StylesClass {
372
+ /**
373
+ * Extract and inline critical CSS definitions to improve first paint time.
374
+ */
375
+ inlineCritical?: boolean;
376
+ /**
377
+ * Minify CSS definitions by removing extraneous whitespace and comments, merging
378
+ * identifiers and minimizing values.
379
+ */
380
+ minify?: boolean;
381
+ /**
382
+ * Remove comments in global CSS that contains '@license' or '@preserve' or that starts with
383
+ * '//!' or '/*!'.
384
+ */
385
+ removeSpecialComments?: boolean;
386
+ }
387
+ /**
388
+ * Define the output filename cache-busting hashing mode.
389
+ */
390
+ export declare enum OutputHashing {
391
+ All = "all",
392
+ Bundles = "bundles",
393
+ Media = "media",
394
+ None = "none"
395
+ }
396
+ /**
397
+ * Specify the output path relative to workspace root.
398
+ */
399
+ export type OutputPathUnion = OutputPathClass | string;
400
+ export interface OutputPathClass {
401
+ /**
402
+ * Specify the output path relative to workspace root.
403
+ */
404
+ base: string;
405
+ /**
406
+ * The output directory name of your browser build within the output path base. Defaults to
407
+ * 'browser'.
408
+ */
409
+ browser?: string;
410
+ /**
411
+ * The output directory name of your media files within the output browser directory.
412
+ * Defaults to 'media'.
413
+ */
414
+ media?: string;
415
+ /**
416
+ * The output directory name of your server build within the output path base. Defaults to
417
+ * 'server'.
418
+ */
419
+ server?: string;
420
+ }
421
+ /**
422
+ * Prerender (SSG) pages of your application during build time.
423
+ */
424
+ export type PrerenderUnion = boolean | PrerenderClass;
425
+ export interface PrerenderClass {
426
+ /**
427
+ * Whether the builder should process the Angular Router configuration to find all
428
+ * unparameterized routes and prerender them.
429
+ */
430
+ discoverRoutes?: boolean;
431
+ /**
432
+ * The path to a file that contains a list of all routes to prerender, separated by
433
+ * newlines. This option is useful if you want to prerender routes with parameterized URLs.
434
+ */
435
+ routesFile?: string;
436
+ }
437
+ export type ScriptElement = ScriptClass | string;
438
+ export interface ScriptClass {
439
+ /**
440
+ * The bundle name for this extra entry point.
441
+ */
442
+ bundleName?: string;
443
+ /**
444
+ * If the bundle will be referenced in the HTML file.
445
+ */
446
+ inject?: boolean;
447
+ /**
448
+ * The file to include.
449
+ */
450
+ input: string;
451
+ }
452
+ /**
453
+ * Generates a service worker configuration.
454
+ */
455
+ export type ServiceWorker = boolean | string;
456
+ /**
457
+ * Output source maps for scripts and styles. For more information, see
458
+ * https://angular.io/guide/workspace-config#source-map-configuration.
459
+ */
460
+ export type SourceMapUnion = boolean | SourceMapClass;
461
+ export interface SourceMapClass {
462
+ /**
463
+ * Output source maps used for error reporting tools.
464
+ */
465
+ hidden?: boolean;
466
+ /**
467
+ * Output source maps for all scripts.
468
+ */
469
+ scripts?: boolean;
470
+ /**
471
+ * Output source maps for all styles.
472
+ */
473
+ styles?: boolean;
474
+ /**
475
+ * Resolve vendor packages source maps.
476
+ */
477
+ vendor?: boolean;
478
+ }
479
+ /**
480
+ * Server side render (SSR) pages of your application during runtime.
481
+ */
482
+ export type SsrUnion = boolean | SsrClass;
483
+ export interface SsrClass {
484
+ /**
485
+ * The server entry-point that when executed will spawn the web server.
486
+ */
487
+ entry?: string;
488
+ }
489
+ /**
490
+ * Options to pass to style preprocessors.
491
+ */
492
+ export interface StylePreprocessorOptions {
493
+ /**
494
+ * Paths to include. Paths will be resolved to workspace root.
495
+ */
496
+ includePaths?: string[];
497
+ }
498
+ export type StyleElement = StyleClass | string;
499
+ export interface StyleClass {
500
+ /**
501
+ * The bundle name for this extra entry point.
502
+ */
503
+ bundleName?: string;
504
+ /**
505
+ * If the bundle will be referenced in the HTML file.
506
+ */
507
+ inject?: boolean;
508
+ /**
509
+ * The file to include.
510
+ */
511
+ input: string;
512
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ // THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
3
+ // CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.OutputHashing = exports.InlineStyleLanguage = exports.I18NTranslation = exports.CrossOrigin = exports.Type = void 0;
6
+ /**
7
+ * The type of budget.
8
+ */
9
+ var Type;
10
+ (function (Type) {
11
+ Type["All"] = "all";
12
+ Type["AllScript"] = "allScript";
13
+ Type["Any"] = "any";
14
+ Type["AnyComponentStyle"] = "anyComponentStyle";
15
+ Type["AnyScript"] = "anyScript";
16
+ Type["Bundle"] = "bundle";
17
+ Type["Initial"] = "initial";
18
+ })(Type || (exports.Type = Type = {}));
19
+ /**
20
+ * Define the crossorigin attribute setting of elements that provide CORS support.
21
+ */
22
+ var CrossOrigin;
23
+ (function (CrossOrigin) {
24
+ CrossOrigin["Anonymous"] = "anonymous";
25
+ CrossOrigin["None"] = "none";
26
+ CrossOrigin["UseCredentials"] = "use-credentials";
27
+ })(CrossOrigin || (exports.CrossOrigin = CrossOrigin = {}));
28
+ /**
29
+ * How to handle duplicate translations for i18n.
30
+ *
31
+ * How to handle missing translations for i18n.
32
+ */
33
+ var I18NTranslation;
34
+ (function (I18NTranslation) {
35
+ I18NTranslation["Error"] = "error";
36
+ I18NTranslation["Ignore"] = "ignore";
37
+ I18NTranslation["Warning"] = "warning";
38
+ })(I18NTranslation || (exports.I18NTranslation = I18NTranslation = {}));
39
+ /**
40
+ * The stylesheet language to use for the application's inline component styles.
41
+ */
42
+ var InlineStyleLanguage;
43
+ (function (InlineStyleLanguage) {
44
+ InlineStyleLanguage["Css"] = "css";
45
+ InlineStyleLanguage["Less"] = "less";
46
+ InlineStyleLanguage["Sass"] = "sass";
47
+ InlineStyleLanguage["Scss"] = "scss";
48
+ })(InlineStyleLanguage || (exports.InlineStyleLanguage = InlineStyleLanguage = {}));
49
+ /**
50
+ * Define the output filename cache-busting hashing mode.
51
+ */
52
+ var OutputHashing;
53
+ (function (OutputHashing) {
54
+ OutputHashing["All"] = "all";
55
+ OutputHashing["Bundles"] = "bundles";
56
+ OutputHashing["Media"] = "media";
57
+ OutputHashing["None"] = "none";
58
+ })(OutputHashing || (exports.OutputHashing = OutputHashing = {}));