@angular-builders/custom-webpack 15.0.0-beta.0 → 16.0.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.
- package/dist/browser/index.d.ts +1 -1
- package/dist/custom-webpack-builder-config.d.ts +1 -1
- package/dist/dev-server/index.d.ts +2 -1
- package/dist/generic-browser-builder.d.ts +1 -1
- package/dist/karma/index.d.ts +1 -1
- package/dist/karma/schema.json +9 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/schema.json +55 -0
- package/dist/type-definition.d.ts +1 -1
- package/package.json +8 -8
package/dist/browser/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BuilderContext } from '@angular-devkit/architect';
|
|
|
2
2
|
import { BrowserBuilderOptions, executeBrowserBuilder } from '@angular-devkit/build-angular';
|
|
3
3
|
import { json } from '@angular-devkit/core';
|
|
4
4
|
import { CustomWebpackSchema } from '../custom-webpack-schema';
|
|
5
|
-
export
|
|
5
|
+
export type CustomWebpackBrowserSchema = BrowserBuilderOptions & CustomWebpackSchema;
|
|
6
6
|
export declare const buildCustomWebpackBrowser: (options: CustomWebpackBrowserSchema, context: BuilderContext) => ReturnType<typeof executeBrowserBuilder>;
|
|
7
7
|
declare const _default: import("@angular-devkit/architect/src/internal").Builder<json.JsonObject & BrowserBuilderOptions & CustomWebpackSchema>;
|
|
8
8
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { mergeWithRules } from 'webpack-merge';
|
|
2
|
-
export
|
|
2
|
+
export type MergeRules = Parameters<typeof mergeWithRules>[0];
|
|
3
3
|
export interface CustomWebpackBuilderConfig {
|
|
4
4
|
path?: string;
|
|
5
5
|
mergeRules?: MergeRules;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DevServerBuilderOptions } from '@angular-devkit/build-angular';
|
|
1
2
|
import { json } from '@angular-devkit/core';
|
|
2
|
-
declare const _default: import("@angular-devkit/architect/src/internal").Builder<
|
|
3
|
+
declare const _default: import("@angular-devkit/architect/src/internal").Builder<DevServerBuilderOptions & json.JsonObject>;
|
|
3
4
|
export default _default;
|
|
@@ -6,7 +6,7 @@ import { json } from '@angular-devkit/core';
|
|
|
6
6
|
export interface BrowserTargetOptions {
|
|
7
7
|
browserTarget: string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type BuilderExecutor<O extends BrowserTargetOptions & json.JsonObject> = (options: O, context: BuilderContext, transforms?: {
|
|
10
10
|
webpackConfiguration?: ExecutionTransformer<Configuration>;
|
|
11
11
|
indexHtml?: IndexHtmlTransform;
|
|
12
12
|
}) => any;
|
package/dist/karma/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { BuilderContext } from '@angular-devkit/architect';
|
|
|
5
5
|
import { executeKarmaBuilder, KarmaBuilderOptions } from '@angular-devkit/build-angular';
|
|
6
6
|
import { json } from '@angular-devkit/core';
|
|
7
7
|
import { CustomWebpackSchema } from '../custom-webpack-schema';
|
|
8
|
-
export
|
|
8
|
+
export type CustomWebpackKarmaBuildSchema = KarmaBuilderOptions & CustomWebpackSchema;
|
|
9
9
|
export declare const buildCustomWebpackKarma: (options: CustomWebpackKarmaBuildSchema, context: BuilderContext) => ReturnType<typeof executeKarmaBuilder>;
|
|
10
10
|
declare const _default: import("@angular-devkit/architect/src/internal").Builder<json.JsonObject & KarmaBuilderOptions & CustomWebpackSchema>;
|
|
11
11
|
export default _default;
|
package/dist/karma/schema.json
CHANGED
|
@@ -152,7 +152,15 @@
|
|
|
152
152
|
"default": [
|
|
153
153
|
"**/*.spec.ts"
|
|
154
154
|
],
|
|
155
|
-
"description": "Globs of files to include, relative to
|
|
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."
|
|
156
164
|
},
|
|
157
165
|
"sourceMap": {
|
|
158
166
|
"description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
|
package/dist/server/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { BuilderContext } from '@angular-devkit/architect';
|
|
|
5
5
|
import { executeServerBuilder, ServerBuilderOptions } from '@angular-devkit/build-angular';
|
|
6
6
|
import { json } from '@angular-devkit/core';
|
|
7
7
|
import { CustomWebpackSchema } from '../custom-webpack-schema';
|
|
8
|
-
export
|
|
8
|
+
export type CustomWebpackServerSchema = ServerBuilderOptions & CustomWebpackSchema;
|
|
9
9
|
export declare const buildCustomWebpackServer: (options: CustomWebpackServerSchema, context: BuilderContext) => ReturnType<typeof executeServerBuilder>;
|
|
10
10
|
declare const _default: import("@angular-devkit/architect/src/internal").Builder<json.JsonObject & ServerBuilderOptions & CustomWebpackSchema>;
|
|
11
11
|
export default _default;
|
package/dist/server/schema.json
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
"title": "Custom webpack server schema for Build Facade",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
+
"assets": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"description": "List of static application assets.",
|
|
10
|
+
"default": [],
|
|
11
|
+
"items": {
|
|
12
|
+
"$ref": "#/definitions/assetPattern"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
7
15
|
"main": {
|
|
8
16
|
"type": "string",
|
|
9
17
|
"description": "The name of the main entry-point file."
|
|
@@ -199,6 +207,11 @@
|
|
|
199
207
|
"description": "Extract all licenses in a separate file, in the case of production builds only.",
|
|
200
208
|
"default": true
|
|
201
209
|
},
|
|
210
|
+
"buildOptimizer": {
|
|
211
|
+
"type": "boolean",
|
|
212
|
+
"description": "Enables advanced build optimizations.",
|
|
213
|
+
"default": true
|
|
214
|
+
},
|
|
202
215
|
"namedChunks": {
|
|
203
216
|
"type": "boolean",
|
|
204
217
|
"description": "Use file name for lazy loaded chunks.",
|
|
@@ -281,6 +294,48 @@
|
|
|
281
294
|
"tsConfig"
|
|
282
295
|
],
|
|
283
296
|
"definitions": {
|
|
297
|
+
"assetPattern": {
|
|
298
|
+
"oneOf": [
|
|
299
|
+
{
|
|
300
|
+
"type": "object",
|
|
301
|
+
"properties": {
|
|
302
|
+
"followSymlinks": {
|
|
303
|
+
"type": "boolean",
|
|
304
|
+
"default": false,
|
|
305
|
+
"description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
|
|
306
|
+
},
|
|
307
|
+
"glob": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"description": "The pattern to match."
|
|
310
|
+
},
|
|
311
|
+
"input": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"description": "The input directory path in which to apply 'glob'. Defaults to the project root."
|
|
314
|
+
},
|
|
315
|
+
"ignore": {
|
|
316
|
+
"description": "An array of globs to ignore.",
|
|
317
|
+
"type": "array",
|
|
318
|
+
"items": {
|
|
319
|
+
"type": "string"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"output": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"description": "Absolute path within the output."
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"additionalProperties": false,
|
|
328
|
+
"required": [
|
|
329
|
+
"glob",
|
|
330
|
+
"input",
|
|
331
|
+
"output"
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"type": "string"
|
|
336
|
+
}
|
|
337
|
+
]
|
|
338
|
+
},
|
|
284
339
|
"fileReplacement": {
|
|
285
340
|
"oneOf": [
|
|
286
341
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-builders/custom-webpack",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0-beta.0",
|
|
4
4
|
"description": "Custom webpack builders for Angular build facade. Allow to modify Angular build configuration without ejecting it",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
},
|
|
41
41
|
"builders": "builders.json",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@angular-devkit/architect": ">=0.
|
|
44
|
-
"@angular-devkit/build-angular": "^
|
|
45
|
-
"@angular-devkit/core": "^
|
|
43
|
+
"@angular-devkit/architect": ">=0.1600.0 < 0.1700.0",
|
|
44
|
+
"@angular-devkit/build-angular": "^16.0.0",
|
|
45
|
+
"@angular-devkit/core": "^16.0.0",
|
|
46
46
|
"lodash": "^4.17.15",
|
|
47
47
|
"ts-node": "^10.0.0",
|
|
48
48
|
"tsconfig-paths": "^4.1.0",
|
|
49
49
|
"webpack-merge": "^5.7.3"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@angular/compiler-cli": "^
|
|
52
|
+
"@angular/compiler-cli": "^16.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"jest": "
|
|
55
|
+
"jest": "29.5.0",
|
|
56
56
|
"rimraf": "^3.0.2",
|
|
57
|
-
"typescript": "
|
|
57
|
+
"typescript": "5.0.4"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "531f49ea5042adedbb958533a85a4c267af69b7b"
|
|
60
60
|
}
|