@angular-builders/custom-webpack 16.0.2-beta.2 → 17.0.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 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 16](https://github.com/just-jeb/angular-builders/blob/16.x.x/packages/custom-webpack/README.md)
36
37
  - [Version 15](https://github.com/just-jeb/angular-builders/blob/15.x.x/packages/custom-webpack/README.md)
37
38
  - [Version 14](https://github.com/just-jeb/angular-builders/blob/14.x.x/packages/custom-webpack/README.md)
38
39
  - [Version 13](https://github.com/just-jeb/angular-builders/blob/13.x.x/packages/custom-webpack/README.md)
@@ -49,7 +50,7 @@ Allow customizing build configuration without ejecting webpack configuration (`n
49
50
 
50
51
  ## Prerequisites:
51
52
 
52
- - [Angular CLI 16](https://www.npmjs.com/package/@angular/cli)
53
+ - [Angular CLI 17](https://www.npmjs.com/package/@angular/cli)
53
54
 
54
55
  # Usage
55
56
 
@@ -216,7 +216,7 @@
216
216
  },
217
217
  "outputPath": {
218
218
  "type": "string",
219
- "description": "The full path for the new output directory, relative to the current workspace.\nBy default, writes output to a folder named dist/ in the current project."
219
+ "description": "The full path for the new output directory, relative to the current workspace."
220
220
  },
221
221
  "resourcesOutputPath": {
222
222
  "type": "string",
@@ -7,6 +7,12 @@
7
7
  "browserTarget": {
8
8
  "type": "string",
9
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
+ "buildTarget": {
14
+ "type": "string",
15
+ "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`.",
10
16
  "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
11
17
  },
12
18
  "port": {
@@ -95,11 +101,25 @@
95
101
  "poll": {
96
102
  "type": "number",
97
103
  "description": "Enable and define the file watching poll time period in milliseconds."
104
+ },
105
+ "forceEsbuild": {
106
+ "type": "boolean",
107
+ "description": "Force the development server to use the 'browser-esbuild' builder when building. This is a developer preview option for the esbuild-based build system.",
108
+ "default": false
98
109
  }
99
110
  },
100
111
  "additionalProperties": false,
101
- "required": [
102
- "browserTarget"
112
+ "anyOf": [
113
+ {
114
+ "required": [
115
+ "buildTarget"
116
+ ]
117
+ },
118
+ {
119
+ "required": [
120
+ "browserTarget"
121
+ ]
122
+ }
103
123
  ],
104
124
  "$id": "CustomWebpackDevServerSchema"
105
125
  }
@@ -1,3 +1,4 @@
1
+ import { ExtractI18nBuilderOptions } from '@angular-devkit/build-angular';
1
2
  import { json } from '@angular-devkit/core';
2
- declare const _default: import("@angular-devkit/architect/src/internal").Builder<import("@angular-devkit/build-angular/src/builders/extract-i18n/schema").Schema & json.JsonObject>;
3
+ declare const _default: import("@angular-devkit/architect/src/internal").Builder<ExtractI18nBuilderOptions & json.JsonObject>;
3
4
  export default _default;
@@ -7,6 +7,12 @@
7
7
  "browserTarget": {
8
8
  "type": "string",
9
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
+ "buildTarget": {
14
+ "type": "string",
15
+ "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`.",
10
16
  "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
11
17
  },
12
18
  "format": {
@@ -40,8 +46,17 @@
40
46
  }
41
47
  },
42
48
  "additionalProperties": false,
43
- "required": [
44
- "browserTarget"
49
+ "anyOf": [
50
+ {
51
+ "required": [
52
+ "buildTarget"
53
+ ]
54
+ },
55
+ {
56
+ "required": [
57
+ "browserTarget"
58
+ ]
59
+ }
45
60
  ],
46
61
  "$id": "BuildCustomWebpackExtractI18nSchema"
47
62
  }
@@ -4,7 +4,8 @@ import { IndexHtmlTransform } from '@angular-devkit/build-angular/src/utils/inde
4
4
  import { Configuration } from 'webpack';
5
5
  import { json } from '@angular-devkit/core';
6
6
  export interface BrowserTargetOptions {
7
- browserTarget: string;
7
+ buildTarget?: string;
8
+ browserTarget?: string;
8
9
  }
9
10
  export type BuilderExecutor<O extends BrowserTargetOptions & json.JsonObject> = (options: O, context: BuilderContext, transforms?: {
10
11
  webpackConfiguration?: ExecutionTransformer<Configuration>;
@@ -16,8 +16,11 @@ const operators_1 = require("rxjs/operators");
16
16
  const transform_factories_1 = require("./transform-factories");
17
17
  const executeBrowserBasedBuilder = (executebBuilder) => (options, context) => {
18
18
  function setup() {
19
+ var _a;
19
20
  return __awaiter(this, void 0, void 0, function* () {
20
- const browserTarget = (0, architect_1.targetFromTargetString)(options.browserTarget);
21
+ const browserTarget = (0, architect_1.targetFromTargetString)(
22
+ // `browserTarget` has been deprecated.
23
+ (_a = options.buildTarget) !== null && _a !== void 0 ? _a : options.browserTarget);
21
24
  return context.getTargetOptions(browserTarget);
22
25
  });
23
26
  }
@@ -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;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,aAAa,CAAC,CAAC;YACpE,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"}
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;AAiB/C,MAAM,0BAA0B,GACrC,CACE,eAAmC,EACd,EAAE,CACzB,CAAC,OAAU,EAAE,OAAuB,EAAsC,EAAE;IAC1E,SAAe,KAAK;;;YAClB,MAAM,aAAa,GAAG,IAAA,kCAAsB;YAC1C,uCAAuC;YACvC,MAAA,OAAO,CAAC,WAAW,mCAAI,OAAO,CAAC,aAAc,CAC9C,CAAC;YACF,OAAO,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAmC,CAAC;;KAClF;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;AAlBS,QAAA,0BAA0B,8BAkBnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-builders/custom-webpack",
3
- "version": "16.0.2-beta.2",
3
+ "version": "17.0.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.1600.0 < 0.1700.0",
44
- "@angular-devkit/build-angular": "^16.0.0",
45
- "@angular-devkit/core": "^16.0.0",
43
+ "@angular-devkit/architect": ">=0.1700.0 < 0.1800.0",
44
+ "@angular-devkit/build-angular": "^17.0.0",
45
+ "@angular-devkit/core": "^17.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": "^16.0.0"
52
+ "@angular/compiler-cli": "^17.0.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "jest": "29.7.0",
56
56
  "rimraf": "^5.0.0",
57
- "typescript": "5.0.4"
57
+ "typescript": "5.2.2"
58
58
  },
59
- "gitHead": "137a2ad64acb0e28ad5da8288eef5e62d3a1c513"
59
+ "gitHead": "b4558b94ddb38de3c897ca3dcb1edeba1eb4f7e9"
60
60
  }