@angular-builders/custom-webpack 21.0.3 → 21.1.0-beta.0

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 (45) hide show
  1. package/package.json +3 -4
  2. package/dist/browser/index.d.ts +0 -8
  3. package/dist/browser/index.js +0 -10
  4. package/dist/browser/index.js.map +0 -1
  5. package/dist/browser/schema.json +0 -648
  6. package/dist/custom-webpack-builder-config.d.ts +0 -11
  7. package/dist/custom-webpack-builder-config.js +0 -3
  8. package/dist/custom-webpack-builder-config.js.map +0 -1
  9. package/dist/custom-webpack-builder.d.ts +0 -8
  10. package/dist/custom-webpack-builder.js +0 -88
  11. package/dist/custom-webpack-builder.js.map +0 -1
  12. package/dist/custom-webpack-schema.d.ts +0 -6
  13. package/dist/custom-webpack-schema.js +0 -3
  14. package/dist/custom-webpack-schema.js.map +0 -1
  15. package/dist/dev-server/index.d.ts +0 -4
  16. package/dist/dev-server/index.js +0 -7
  17. package/dist/dev-server/index.js.map +0 -1
  18. package/dist/dev-server/schema.json +0 -146
  19. package/dist/extract-i18n/index.d.ts +0 -6
  20. package/dist/extract-i18n/index.js +0 -7
  21. package/dist/extract-i18n/index.js.map +0 -1
  22. package/dist/extract-i18n/schema.json +0 -53
  23. package/dist/generic-browser-builder.d.ts +0 -13
  24. package/dist/generic-browser-builder.js +0 -16
  25. package/dist/generic-browser-builder.js.map +0 -1
  26. package/dist/index.d.ts +0 -11
  27. package/dist/index.js +0 -27
  28. package/dist/index.js.map +0 -1
  29. package/dist/karma/index.d.ts +0 -11
  30. package/dist/karma/index.js +0 -15
  31. package/dist/karma/index.js.map +0 -1
  32. package/dist/karma/schema.json +0 -398
  33. package/dist/server/index.d.ts +0 -11
  34. package/dist/server/index.js +0 -15
  35. package/dist/server/index.js.map +0 -1
  36. package/dist/server/schema.json +0 -380
  37. package/dist/transform-factories.d.ts +0 -11
  38. package/dist/transform-factories.js +0 -61
  39. package/dist/transform-factories.js.map +0 -1
  40. package/dist/type-definition.d.ts +0 -3
  41. package/dist/type-definition.js +0 -3
  42. package/dist/type-definition.js.map +0 -1
  43. package/dist/webpack-config-merger.d.ts +0 -3
  44. package/dist/webpack-config-merger.js +0 -29
  45. package/dist/webpack-config-merger.js.map +0 -1
@@ -1,398 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "title": "Custom webpack karma schema for Build Facade",
4
- "description": "Karma target options",
5
- "type": "object",
6
- "properties": {
7
- "main": {
8
- "type": "string",
9
- "description": "The name of the main entry-point file."
10
- },
11
- "tsConfig": {
12
- "type": "string",
13
- "description": "The name of the TypeScript configuration file."
14
- },
15
- "karmaConfig": {
16
- "type": "string",
17
- "description": "The name of the Karma configuration file."
18
- },
19
- "polyfills": {
20
- "description": "Polyfills to be included in the build.",
21
- "oneOf": [
22
- {
23
- "type": "array",
24
- "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
25
- "items": {
26
- "type": "string",
27
- "uniqueItems": true
28
- },
29
- "default": []
30
- },
31
- {
32
- "type": "string",
33
- "description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
34
- }
35
- ]
36
- },
37
- "assets": {
38
- "type": "array",
39
- "description": "List of static application assets.",
40
- "default": [],
41
- "items": {
42
- "$ref": "#/definitions/assetPattern"
43
- }
44
- },
45
- "scripts": {
46
- "description": "Global scripts to be included in the build.",
47
- "type": "array",
48
- "default": [],
49
- "items": {
50
- "oneOf": [
51
- {
52
- "type": "object",
53
- "properties": {
54
- "input": {
55
- "type": "string",
56
- "description": "The file to include.",
57
- "pattern": "\\.[cm]?jsx?$"
58
- },
59
- "bundleName": {
60
- "type": "string",
61
- "pattern": "^[\\w\\-.]*$",
62
- "description": "The bundle name for this extra entry point."
63
- },
64
- "inject": {
65
- "type": "boolean",
66
- "description": "If the bundle will be referenced in the HTML file.",
67
- "default": true
68
- }
69
- },
70
- "additionalProperties": false,
71
- "required": [
72
- "input"
73
- ]
74
- },
75
- {
76
- "type": "string",
77
- "description": "The file to include.",
78
- "pattern": "\\.[cm]?jsx?$"
79
- }
80
- ]
81
- }
82
- },
83
- "styles": {
84
- "description": "Global styles to be included in the build.",
85
- "type": "array",
86
- "default": [],
87
- "items": {
88
- "oneOf": [
89
- {
90
- "type": "object",
91
- "properties": {
92
- "input": {
93
- "type": "string",
94
- "description": "The file to include.",
95
- "pattern": "\\.(?:css|scss|sass|less)$"
96
- },
97
- "bundleName": {
98
- "type": "string",
99
- "pattern": "^[\\w\\-.]*$",
100
- "description": "The bundle name for this extra entry point."
101
- },
102
- "inject": {
103
- "type": "boolean",
104
- "description": "If the bundle will be referenced in the HTML file.",
105
- "default": true
106
- }
107
- },
108
- "additionalProperties": false,
109
- "required": [
110
- "input"
111
- ]
112
- },
113
- {
114
- "type": "string",
115
- "description": "The file to include.",
116
- "pattern": "\\.(?:css|scss|sass|less)$"
117
- }
118
- ]
119
- }
120
- },
121
- "inlineStyleLanguage": {
122
- "description": "The stylesheet language to use for the application's inline component styles.",
123
- "type": "string",
124
- "default": "css",
125
- "enum": [
126
- "css",
127
- "less",
128
- "sass",
129
- "scss"
130
- ]
131
- },
132
- "stylePreprocessorOptions": {
133
- "description": "Options to pass to style preprocessors",
134
- "type": "object",
135
- "properties": {
136
- "includePaths": {
137
- "description": "Paths to include. Paths will be resolved to workspace root.",
138
- "type": "array",
139
- "items": {
140
- "type": "string"
141
- },
142
- "default": []
143
- }
144
- },
145
- "additionalProperties": false
146
- },
147
- "include": {
148
- "type": "array",
149
- "items": {
150
- "type": "string"
151
- },
152
- "default": [
153
- "**/*.spec.ts"
154
- ],
155
- "description": "Globs of files to include, relative to project root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead."
156
- },
157
- "exclude": {
158
- "type": "array",
159
- "items": {
160
- "type": "string"
161
- },
162
- "default": [],
163
- "description": "Globs of files to exclude, relative to the project root."
164
- },
165
- "sourceMap": {
166
- "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
167
- "default": true,
168
- "oneOf": [
169
- {
170
- "type": "object",
171
- "properties": {
172
- "scripts": {
173
- "type": "boolean",
174
- "description": "Output source maps for all scripts.",
175
- "default": true
176
- },
177
- "styles": {
178
- "type": "boolean",
179
- "description": "Output source maps for all styles.",
180
- "default": true
181
- },
182
- "vendor": {
183
- "type": "boolean",
184
- "description": "Resolve vendor packages source maps.",
185
- "default": false
186
- }
187
- },
188
- "additionalProperties": false
189
- },
190
- {
191
- "type": "boolean"
192
- }
193
- ]
194
- },
195
- "progress": {
196
- "type": "boolean",
197
- "description": "Log progress to the console while building.",
198
- "default": true
199
- },
200
- "watch": {
201
- "type": "boolean",
202
- "description": "Run build when files change."
203
- },
204
- "poll": {
205
- "type": "number",
206
- "description": "Enable and define the file watching poll time period in milliseconds."
207
- },
208
- "preserveSymlinks": {
209
- "type": "boolean",
210
- "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
211
- },
212
- "browsers": {
213
- "description": "Override which browsers tests are run against. Set to `false` to not use any browser.",
214
- "oneOf": [
215
- {
216
- "type": "string",
217
- "description": "A comma seperate list of browsers to run tests against."
218
- },
219
- {
220
- "const": false,
221
- "type": "boolean",
222
- "description": "Does use run tests against a browser."
223
- }
224
- ]
225
- },
226
- "codeCoverage": {
227
- "type": "boolean",
228
- "description": "Output a code coverage report.",
229
- "default": false
230
- },
231
- "codeCoverageExclude": {
232
- "type": "array",
233
- "description": "Globs to exclude from code coverage.",
234
- "items": {
235
- "type": "string"
236
- },
237
- "default": []
238
- },
239
- "fileReplacements": {
240
- "description": "Replace compilation source files with other compilation source files in the build.",
241
- "type": "array",
242
- "items": {
243
- "oneOf": [
244
- {
245
- "type": "object",
246
- "properties": {
247
- "src": {
248
- "type": "string"
249
- },
250
- "replaceWith": {
251
- "type": "string"
252
- }
253
- },
254
- "additionalProperties": false,
255
- "required": [
256
- "src",
257
- "replaceWith"
258
- ]
259
- },
260
- {
261
- "type": "object",
262
- "properties": {
263
- "replace": {
264
- "type": "string"
265
- },
266
- "with": {
267
- "type": "string"
268
- }
269
- },
270
- "additionalProperties": false,
271
- "required": [
272
- "replace",
273
- "with"
274
- ]
275
- }
276
- ]
277
- },
278
- "default": []
279
- },
280
- "reporters": {
281
- "type": "array",
282
- "description": "Karma reporters to use. Directly passed to the karma runner.",
283
- "items": {
284
- "type": "string"
285
- }
286
- },
287
- "builderMode": {
288
- "type": "string",
289
- "description": "Determines how to build the code under test. If set to 'detect', attempts to follow the development builder.",
290
- "enum": [
291
- "detect",
292
- "browser",
293
- "application"
294
- ],
295
- "default": "browser"
296
- },
297
- "webWorkerTsConfig": {
298
- "type": "string",
299
- "description": "TypeScript configuration for Web Worker modules."
300
- },
301
- "aot": {
302
- "type": "boolean",
303
- "description": "Run tests using Ahead of Time compilation.",
304
- "default": false
305
- },
306
- "customWebpackConfig": {
307
- "description": "Custom webpack configuration",
308
- "default": false,
309
- "oneOf": [
310
- {
311
- "type": "object",
312
- "properties": {
313
- "path": {
314
- "type": "string",
315
- "description": "Path to the custom webpack configuration file"
316
- },
317
- "mergeRules": {
318
- "type": "object",
319
- "description": "Merge rules as described here: https://github.com/survivejs/webpack-merge#mergewithrules"
320
- },
321
- "replaceDuplicatePlugins": {
322
- "type": "boolean",
323
- "description": "Flag that indicates whether to replace duplicate webpack plugins or not"
324
- },
325
- "verbose": {
326
- "type": "object",
327
- "description": "Determines whether to log configuration properties into a console",
328
- "properties": {
329
- "properties": {
330
- "description": "A list of properties to log into a console, for instance, `['plugins', 'mode', 'entry']`",
331
- "type": "array",
332
- "items": {
333
- "type": "string"
334
- }
335
- },
336
- "serializationDepth": {
337
- "type": "number",
338
- "description": "The number of times to recurse the object while formatting"
339
- }
340
- }
341
- }
342
- }
343
- },
344
- {
345
- "type": "boolean"
346
- }
347
- ]
348
- },
349
- "indexTransform": {
350
- "type": "string",
351
- "description": "Path to the file with index.html transform function"
352
- }
353
- },
354
- "additionalProperties": false,
355
- "required": [
356
- "tsConfig"
357
- ],
358
- "definitions": {
359
- "assetPattern": {
360
- "oneOf": [
361
- {
362
- "type": "object",
363
- "properties": {
364
- "glob": {
365
- "type": "string",
366
- "description": "The pattern to match."
367
- },
368
- "input": {
369
- "type": "string",
370
- "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
371
- },
372
- "output": {
373
- "type": "string",
374
- "default": "",
375
- "description": "Absolute path within the output."
376
- },
377
- "ignore": {
378
- "description": "An array of globs to ignore.",
379
- "type": "array",
380
- "items": {
381
- "type": "string"
382
- }
383
- }
384
- },
385
- "additionalProperties": false,
386
- "required": [
387
- "glob",
388
- "input"
389
- ]
390
- },
391
- {
392
- "type": "string"
393
- }
394
- ]
395
- }
396
- },
397
- "$id": "BuildCustomWebpackKarmaSchema"
398
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Created by Evgeny Barabanov on 28/06/2018.
3
- */
4
- import { BuilderContext } from '@angular-devkit/architect';
5
- import { executeServerBuilder, ServerBuilderOptions } from '@angular-devkit/build-angular';
6
- import { json } from '@angular-devkit/core';
7
- import { CustomWebpackSchema } from '../custom-webpack-schema';
8
- export type CustomWebpackServerSchema = ServerBuilderOptions & CustomWebpackSchema;
9
- export declare const buildCustomWebpackServer: (options: CustomWebpackServerSchema, context: BuilderContext) => ReturnType<typeof executeServerBuilder>;
10
- declare const _default: import("@angular-devkit/architect").Builder<json.JsonObject & ServerBuilderOptions & CustomWebpackSchema>;
11
- export default _default;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /**
3
- * Created by Evgeny Barabanov on 28/06/2018.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.buildCustomWebpackServer = void 0;
7
- const architect_1 = require("@angular-devkit/architect");
8
- const build_angular_1 = require("@angular-devkit/build-angular");
9
- const transform_factories_1 = require("../transform-factories");
10
- const buildCustomWebpackServer = (options, context) => (0, build_angular_1.executeServerBuilder)(options, context, {
11
- webpackConfiguration: (0, transform_factories_1.customWebpackConfigTransformFactory)(options, context),
12
- });
13
- exports.buildCustomWebpackServer = buildCustomWebpackServer;
14
- exports.default = (0, architect_1.createBuilder)(exports.buildCustomWebpackServer);
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,yDAA0E;AAC1E,iEAA2F;AAE3F,gEAA6E;AAKtE,MAAM,wBAAwB,GAAG,CACtC,OAAkC,EAClC,OAAuB,EACkB,EAAE,CAC3C,IAAA,oCAAoB,EAAC,OAAO,EAAE,OAAO,EAAE;IACrC,oBAAoB,EAAE,IAAA,yDAAmC,EAAC,OAAO,EAAE,OAAO,CAAC;CAC5E,CAAC,CAAC;AANQ,QAAA,wBAAwB,4BAMhC;AAEL,kBAAe,IAAA,yBAAa,EAA8C,gCAAwB,CAAC,CAAC"}