@angular-builders/custom-webpack 18.0.1-beta.0 → 19.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/README.md +4 -3
- package/dist/dev-server/schema.json +3 -19
- package/dist/extract-i18n/index.d.ts +3 -1
- package/dist/extract-i18n/index.js.map +1 -1
- package/dist/extract-i18n/schema.json +0 -6
- package/dist/generic-browser-builder.d.ts +4 -5
- package/dist/generic-browser-builder.js +1 -4
- package/dist/generic-browser-builder.js.map +1 -1
- package/dist/karma/schema.json +10 -0
- package/dist/server/index.js.map +1 -1
- package/dist/webpack-config-merger.js +1 -2
- package/dist/webpack-config-merger.js.map +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -33,6 +33,7 @@ Allow customizing build configuration without ejecting webpack configuration (`n
|
|
|
33
33
|
<details>
|
|
34
34
|
<summary>Click to expand</summary>
|
|
35
35
|
|
|
36
|
+
- [Version 18](https://github.com/just-jeb/angular-builders/blob/18.x.x/packages/custom-webpack/README.md)
|
|
36
37
|
- [Version 17](https://github.com/just-jeb/angular-builders/blob/17.x.x/packages/custom-webpack/README.md)
|
|
37
38
|
- [Version 16](https://github.com/just-jeb/angular-builders/blob/16.x.x/packages/custom-webpack/README.md)
|
|
38
39
|
- [Version 15](https://github.com/just-jeb/angular-builders/blob/15.x.x/packages/custom-webpack/README.md)
|
|
@@ -51,7 +52,7 @@ Allow customizing build configuration without ejecting webpack configuration (`n
|
|
|
51
52
|
|
|
52
53
|
## Prerequisites:
|
|
53
54
|
|
|
54
|
-
- [Angular CLI
|
|
55
|
+
- [Angular CLI 19](https://www.npmjs.com/package/@angular/cli)
|
|
55
56
|
|
|
56
57
|
# Usage
|
|
57
58
|
|
|
@@ -167,7 +168,7 @@ Thus, if you use `@angular-builders/custom-webpack:dev-server` along with `@angu
|
|
|
167
168
|
"serve": {
|
|
168
169
|
"builder": "@angular-builders/custom-webpack:dev-server",
|
|
169
170
|
"options": {
|
|
170
|
-
"
|
|
171
|
+
"buildTarget": "my-project:build"
|
|
171
172
|
}
|
|
172
173
|
}
|
|
173
174
|
```
|
|
@@ -265,7 +266,7 @@ Thus, if you use `@angular-builders/custom-webpack:extract-i18n` along with `@an
|
|
|
265
266
|
"extract-i18n": {
|
|
266
267
|
"builder": "@angular-builders/custom-webpack:extract-i18n",
|
|
267
268
|
"options": {
|
|
268
|
-
"
|
|
269
|
+
"buildTarget": "my-project:build"
|
|
269
270
|
}
|
|
270
271
|
}
|
|
271
272
|
```
|
|
@@ -4,12 +4,6 @@
|
|
|
4
4
|
"description": "Dev server target options",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"browserTarget": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "A browser builder target to serve in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
|
10
|
-
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$",
|
|
11
|
-
"x-deprecated": "Use 'buildTarget' instead."
|
|
12
|
-
},
|
|
13
7
|
"buildTarget": {
|
|
14
8
|
"type": "string",
|
|
15
9
|
"description": "A build builder target to serve in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
|
@@ -90,8 +84,7 @@
|
|
|
90
84
|
},
|
|
91
85
|
"hmr": {
|
|
92
86
|
"type": "boolean",
|
|
93
|
-
"description": "Enable hot module replacement."
|
|
94
|
-
"default": false
|
|
87
|
+
"description": "Enable hot module replacement."
|
|
95
88
|
},
|
|
96
89
|
"watch": {
|
|
97
90
|
"type": "boolean",
|
|
@@ -146,17 +139,8 @@
|
|
|
146
139
|
}
|
|
147
140
|
},
|
|
148
141
|
"additionalProperties": false,
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
"required": [
|
|
152
|
-
"buildTarget"
|
|
153
|
-
]
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"required": [
|
|
157
|
-
"browserTarget"
|
|
158
|
-
]
|
|
159
|
-
}
|
|
142
|
+
"required": [
|
|
143
|
+
"buildTarget"
|
|
160
144
|
],
|
|
161
145
|
"$id": "CustomWebpackDevServerSchema"
|
|
162
146
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ExtractI18nBuilderOptions } from '@angular-devkit/build-angular';
|
|
2
2
|
import { json } from '@angular-devkit/core';
|
|
3
|
-
declare const _default: import("@angular-devkit/architect/src/internal").Builder<ExtractI18nBuilderOptions & json.JsonObject
|
|
3
|
+
declare const _default: import("@angular-devkit/architect/src/internal").Builder<ExtractI18nBuilderOptions & json.JsonObject & {
|
|
4
|
+
buildTarget: string;
|
|
5
|
+
}>;
|
|
4
6
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/extract-i18n/index.ts"],"names":[],"mappings":";;AAAA,yDAA0D;AAC1D,iEAGuC;AAEvC,wEAAwE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/extract-i18n/index.ts"],"names":[],"mappings":";;AAAA,yDAA0D;AAC1D,iEAGuC;AAEvC,wEAAwE;AAKxE,kBAAe,IAAA,yBAAa,EAC1B,IAAA,oDAA0B,EAAC,yCAAyB,CAAC,CACtD,CAAC"}
|
|
@@ -4,12 +4,6 @@
|
|
|
4
4
|
"description": "Extract i18n target options",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"browserTarget": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "A browser builder target to extract i18n messages in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
|
10
|
-
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$",
|
|
11
|
-
"x-deprecated": "Use 'buildTarget' instead."
|
|
12
|
-
},
|
|
13
7
|
"buildTarget": {
|
|
14
8
|
"type": "string",
|
|
15
9
|
"description": "A builder target to extract i18n messages in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
|
@@ -3,12 +3,11 @@ import { ExecutionTransformer } from '@angular-devkit/build-angular';
|
|
|
3
3
|
import type { IndexHtmlTransform } from '@angular/build/src/utils/index-file/index-html-generator';
|
|
4
4
|
import { Configuration } from 'webpack';
|
|
5
5
|
import { json } from '@angular-devkit/core';
|
|
6
|
-
export interface
|
|
7
|
-
buildTarget
|
|
8
|
-
browserTarget?: string;
|
|
6
|
+
export interface BuildTargetOptions {
|
|
7
|
+
buildTarget: string;
|
|
9
8
|
}
|
|
10
|
-
export type BuilderExecutor<O extends
|
|
9
|
+
export type BuilderExecutor<O extends BuildTargetOptions & json.JsonObject> = (options: O, context: BuilderContext, transforms?: {
|
|
11
10
|
webpackConfiguration?: ExecutionTransformer<Configuration>;
|
|
12
11
|
indexHtml?: IndexHtmlTransform;
|
|
13
12
|
}) => any;
|
|
14
|
-
export declare const executeBrowserBasedBuilder: <O extends
|
|
13
|
+
export declare const executeBrowserBasedBuilder: <O extends BuildTargetOptions & json.JsonObject>(executebBuilder: BuilderExecutor<O>) => BuilderHandlerFn<O>;
|
|
@@ -17,10 +17,7 @@ const transform_factories_1 = require("./transform-factories");
|
|
|
17
17
|
const executeBrowserBasedBuilder = (executebBuilder) => (options, context) => {
|
|
18
18
|
function setup() {
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
|
|
21
|
-
const browserTarget = (0, architect_1.targetFromTargetString)(
|
|
22
|
-
// `browserTarget` has been deprecated.
|
|
23
|
-
(_a = options.buildTarget) !== null && _a !== void 0 ? _a : options.browserTarget);
|
|
20
|
+
const browserTarget = (0, architect_1.targetFromTargetString)(options.buildTarget);
|
|
24
21
|
return context.getTargetOptions(browserTarget);
|
|
25
22
|
});
|
|
26
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic-browser-builder.js","sourceRoot":"","sources":["../src/generic-browser-builder.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAImC;AAGnC,+BAA4B;AAC5B,8CAA2C;AAG3C,+DAAsD;
|
|
1
|
+
{"version":3,"file":"generic-browser-builder.js","sourceRoot":"","sources":["../src/generic-browser-builder.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAImC;AAGnC,+BAA4B;AAC5B,8CAA2C;AAG3C,+DAAsD;AAgB/C,MAAM,0BAA0B,GACrC,CACE,eAAmC,EACd,EAAE,CACzB,CAAC,OAAU,EAAE,OAAuB,EAAsC,EAAE;IAC1E,SAAe,KAAK;;YAClB,MAAM,aAAa,GAAG,IAAA,kCAAsB,EAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAClE,OAAO,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAmC,CAAC;QACnF,CAAC;KAAA;IAED,OAAO,IAAA,WAAI,EAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CACvB,IAAA,qBAAS,EAAC,oBAAoB,CAAC,EAAE,CAC/B,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,IAAA,mCAAa,EAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,CAChF,CACF,CAAC;AACJ,CAAC,CAAC;AAfS,QAAA,0BAA0B,8BAenC"}
|
package/dist/karma/schema.json
CHANGED
|
@@ -284,6 +284,16 @@
|
|
|
284
284
|
"type": "string"
|
|
285
285
|
}
|
|
286
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
|
+
},
|
|
287
297
|
"webWorkerTsConfig": {
|
|
288
298
|
"type": "string",
|
|
289
299
|
"description": "TypeScript configuration for Web Worker modules."
|
package/dist/server/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,
|
|
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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mergeConfigs =
|
|
3
|
+
exports.mergeConfigs = mergeConfigs;
|
|
4
4
|
const webpack_merge_1 = require("webpack-merge");
|
|
5
5
|
const lodash_1 = require("lodash");
|
|
6
6
|
const DEFAULT_MERGE_RULES = {
|
|
@@ -26,5 +26,4 @@ function mergeConfigs(webpackConfig1, webpackConfig2, mergeRules = DEFAULT_MERGE
|
|
|
26
26
|
}
|
|
27
27
|
return mergedConfig;
|
|
28
28
|
}
|
|
29
|
-
exports.mergeConfigs = mergeConfigs;
|
|
30
29
|
//# sourceMappingURL=webpack-config-merger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack-config-merger.js","sourceRoot":"","sources":["../src/webpack-config-merger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webpack-config-merger.js","sourceRoot":"","sources":["../src/webpack-config-merger.ts"],"names":[],"mappings":";;AAiBA,oCAuBC;AAvCD,iDAA8D;AAE9D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Y,CAAC;AACtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-builders/custom-webpack",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.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": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"author": "JeB Barabanov",
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": "^
|
|
21
|
+
"node": "^18.19.1 || ^20.11.1 || >=22.0.0"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"cli",
|
|
@@ -40,22 +40,22 @@
|
|
|
40
40
|
},
|
|
41
41
|
"builders": "builders.json",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@angular-builders/common": "
|
|
44
|
-
"@angular-devkit/architect": ">=0.
|
|
45
|
-
"@angular-devkit/build-angular": "^
|
|
46
|
-
"@angular-devkit/core": "^
|
|
43
|
+
"@angular-builders/common": "3.0.0-beta.0",
|
|
44
|
+
"@angular-devkit/architect": ">=0.1900.0 < 0.2000.0",
|
|
45
|
+
"@angular-devkit/build-angular": "^19.0.0",
|
|
46
|
+
"@angular-devkit/core": "^19.0.0",
|
|
47
47
|
"lodash": "^4.17.15",
|
|
48
48
|
"webpack-merge": "^6.0.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@angular/compiler-cli": "^
|
|
51
|
+
"@angular/compiler-cli": "^19.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@angular/build": "^
|
|
54
|
+
"@angular/build": "^19.0.0",
|
|
55
55
|
"jest": "29.7.0",
|
|
56
56
|
"rimraf": "^5.0.0",
|
|
57
57
|
"ts-node": "^10.0.0",
|
|
58
|
-
"typescript": "5.
|
|
58
|
+
"typescript": "5.6.2"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "4095a1f909b0abbc48dcdb6484fc0dcd09d8cced"
|
|
61
61
|
}
|