@angular-builders/custom-webpack 13.1.0 → 14.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 CHANGED
@@ -11,6 +11,7 @@ Allow customizing build configuration without ejecting webpack configuration (`n
11
11
  <details>
12
12
  <summary>Click to expand</summary>
13
13
 
14
+ - [Version 13](https://github.com/just-jeb/angular-builders/blob/13.x.x/packages/custom-webpack/README.md)
14
15
  - [Version 12](https://github.com/just-jeb/angular-builders/blob/12.x.x/packages/custom-webpack/README.md)
15
16
  - [Version 11](https://github.com/just-jeb/angular-builders/blob/11.x.x/packages/custom-webpack/README.md)
16
17
  - [Version 10](https://github.com/just-jeb/angular-builders/blob/10.x.x/packages/custom-webpack/README.md)
@@ -24,7 +25,7 @@ Allow customizing build configuration without ejecting webpack configuration (`n
24
25
 
25
26
  ## Prerequisites:
26
27
 
27
- - [Angular CLI 13](https://www.npmjs.com/package/@angular/cli)
28
+ - [Angular CLI 14](https://www.npmjs.com/package/@angular/cli)
28
29
 
29
30
  # Usage
30
31
 
@@ -29,7 +29,37 @@
29
29
  "type": "array",
30
30
  "default": [],
31
31
  "items": {
32
- "$ref": "#/definitions/extraEntryPoint"
32
+ "oneOf": [
33
+ {
34
+ "type": "object",
35
+ "properties": {
36
+ "input": {
37
+ "type": "string",
38
+ "description": "The file to include.",
39
+ "pattern": "\\.[cm]?jsx?$"
40
+ },
41
+ "bundleName": {
42
+ "type": "string",
43
+ "pattern": "^[\\w\\-.]*$",
44
+ "description": "The bundle name for this extra entry point."
45
+ },
46
+ "inject": {
47
+ "type": "boolean",
48
+ "description": "If the bundle will be referenced in the HTML file.",
49
+ "default": true
50
+ }
51
+ },
52
+ "additionalProperties": false,
53
+ "required": [
54
+ "input"
55
+ ]
56
+ },
57
+ {
58
+ "type": "string",
59
+ "description": "The file to include.",
60
+ "pattern": "\\.[cm]?jsx?$"
61
+ }
62
+ ]
33
63
  }
34
64
  },
35
65
  "styles": {
@@ -37,7 +67,37 @@
37
67
  "type": "array",
38
68
  "default": [],
39
69
  "items": {
40
- "$ref": "#/definitions/extraEntryPoint"
70
+ "oneOf": [
71
+ {
72
+ "type": "object",
73
+ "properties": {
74
+ "input": {
75
+ "type": "string",
76
+ "description": "The file to include.",
77
+ "pattern": "\\.(?:css|scss|sass|less|styl)$"
78
+ },
79
+ "bundleName": {
80
+ "type": "string",
81
+ "pattern": "^[\\w\\-.]*$",
82
+ "description": "The bundle name for this extra entry point."
83
+ },
84
+ "inject": {
85
+ "type": "boolean",
86
+ "description": "If the bundle will be referenced in the HTML file.",
87
+ "default": true
88
+ }
89
+ },
90
+ "additionalProperties": false,
91
+ "required": [
92
+ "input"
93
+ ]
94
+ },
95
+ {
96
+ "type": "string",
97
+ "description": "The file to include.",
98
+ "pattern": "\\.(?:css|scss|sass|less|styl)$"
99
+ }
100
+ ]
41
101
  }
42
102
  },
43
103
  "inlineStyleLanguage": {
@@ -142,12 +202,11 @@
142
202
  },
143
203
  "outputPath": {
144
204
  "type": "string",
145
- "description": "The full path for the new output directory, relative to the current workspace.\n\nBy default, writes output to a folder named dist/ in the current project."
205
+ "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."
146
206
  },
147
207
  "resourcesOutputPath": {
148
208
  "type": "string",
149
- "description": "The path where style resources will be placed, relative to outputPath.",
150
- "default": ""
209
+ "description": "The path where style resources will be placed, relative to outputPath."
151
210
  },
152
211
  "aot": {
153
212
  "type": "boolean",
@@ -291,15 +350,9 @@
291
350
  "description": "Extract all licenses in a separate file.",
292
351
  "default": true
293
352
  },
294
- "showCircularDependencies": {
295
- "type": "boolean",
296
- "description": "Show circular dependency warnings on builds.",
297
- "default": false,
298
- "x-deprecated": "The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tooling."
299
- },
300
353
  "buildOptimizer": {
301
354
  "type": "boolean",
302
- "description": "Enables '@angular-devkit/build-optimizer' optimizations when using the 'aot' option.",
355
+ "description": "Enables advanced build optimizations when using the 'aot' option.",
303
356
  "default": true
304
357
  },
305
358
  "namedChunks": {
@@ -506,37 +559,6 @@
506
559
  }
507
560
  ]
508
561
  },
509
- "extraEntryPoint": {
510
- "oneOf": [
511
- {
512
- "type": "object",
513
- "properties": {
514
- "input": {
515
- "type": "string",
516
- "description": "The file to include."
517
- },
518
- "bundleName": {
519
- "type": "string",
520
- "pattern": "^[\\w\\-.]*$",
521
- "description": "The bundle name for this extra entry point."
522
- },
523
- "inject": {
524
- "type": "boolean",
525
- "description": "If the bundle will be referenced in the HTML file.",
526
- "default": true
527
- }
528
- },
529
- "additionalProperties": false,
530
- "required": [
531
- "input"
532
- ]
533
- },
534
- {
535
- "type": "string",
536
- "description": "The file to include."
537
- }
538
- ]
539
- },
540
562
  "budget": {
541
563
  "type": "object",
542
564
  "properties": {
@@ -1,2 +1,3 @@
1
- declare const _default: import("@angular-devkit/architect/src/internal").Builder<import("@angular-devkit/build-angular/src/builders/dev-server/schema").Schema & import("@angular-devkit/core").JsonObject>;
1
+ import { json } from '@angular-devkit/core';
2
+ declare const _default: import("@angular-devkit/architect/src/internal").Builder<import("@angular-devkit/build-angular/src/builders/dev-server/schema").Schema & json.JsonObject>;
2
3
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dev-server/index.ts"],"names":[],"mappings":";;AAAA,yDAA0D;AAC1D,iEAAiG;AACjG,wEAAwE;AAExE,kBAAe,IAAA,yBAAa,EAC1B,IAAA,oDAA0B,EAAC,uCAAuB,CAAC,CACpD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dev-server/index.ts"],"names":[],"mappings":";;AAAA,yDAA0D;AAC1D,iEAAiG;AAEjG,wEAAwE;AAExE,kBAAe,IAAA,yBAAa,EAC1B,IAAA,oDAA0B,EAAC,uCAAuB,CAAC,CACpD,CAAC"}
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "servePath": {
77
77
  "type": "string",
78
- "description": "The pathname where the app will be served."
78
+ "description": "The pathname where the application will be served."
79
79
  },
80
80
  "disableHostCheck": {
81
81
  "type": "boolean",
@@ -1,2 +1,3 @@
1
- declare const _default: import("@angular-devkit/architect/src/internal").Builder<import("@angular-devkit/build-angular/src/builders/extract-i18n/schema").Schema & import("@angular-devkit/core").JsonObject>;
1
+ 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>;
2
3
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/extract-i18n/index.ts"],"names":[],"mappings":";;AAAA,yDAA0D;AAC1D,iEAGuC;AACvC,wEAAwE;AAExE,kBAAe,IAAA,yBAAa,EAC1B,IAAA,oDAA0B,EAAC,yCAAyB,CAAC,CACtD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/extract-i18n/index.ts"],"names":[],"mappings":";;AAAA,yDAA0D;AAC1D,iEAGuC;AAEvC,wEAAwE;AAExE,kBAAe,IAAA,yBAAa,EAC1B,IAAA,oDAA0B,EAAC,yCAAyB,CAAC,CACtD,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;GAEG;AACH,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,+CAA6B;AAC7B,iDAA+B;AAC/B,wDAAsC;AACtC,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,+CAA6B;AAC7B,iDAA+B;AAC/B,wDAAsC;AACtC,4DAA0C"}
@@ -33,7 +33,37 @@
33
33
  "type": "array",
34
34
  "default": [],
35
35
  "items": {
36
- "$ref": "#/definitions/extraEntryPoint"
36
+ "oneOf": [
37
+ {
38
+ "type": "object",
39
+ "properties": {
40
+ "input": {
41
+ "type": "string",
42
+ "description": "The file to include.",
43
+ "pattern": "\\.[cm]?jsx?$"
44
+ },
45
+ "bundleName": {
46
+ "type": "string",
47
+ "pattern": "^[\\w\\-.]*$",
48
+ "description": "The bundle name for this extra entry point."
49
+ },
50
+ "inject": {
51
+ "type": "boolean",
52
+ "description": "If the bundle will be referenced in the HTML file.",
53
+ "default": true
54
+ }
55
+ },
56
+ "additionalProperties": false,
57
+ "required": [
58
+ "input"
59
+ ]
60
+ },
61
+ {
62
+ "type": "string",
63
+ "description": "The file to include.",
64
+ "pattern": "\\.[cm]?jsx?$"
65
+ }
66
+ ]
37
67
  }
38
68
  },
39
69
  "styles": {
@@ -41,7 +71,37 @@
41
71
  "type": "array",
42
72
  "default": [],
43
73
  "items": {
44
- "$ref": "#/definitions/extraEntryPoint"
74
+ "oneOf": [
75
+ {
76
+ "type": "object",
77
+ "properties": {
78
+ "input": {
79
+ "type": "string",
80
+ "description": "The file to include.",
81
+ "pattern": "\\.(?:css|scss|sass|less|styl)$"
82
+ },
83
+ "bundleName": {
84
+ "type": "string",
85
+ "pattern": "^[\\w\\-.]*$",
86
+ "description": "The bundle name for this extra entry point."
87
+ },
88
+ "inject": {
89
+ "type": "boolean",
90
+ "description": "If the bundle will be referenced in the HTML file.",
91
+ "default": true
92
+ }
93
+ },
94
+ "additionalProperties": false,
95
+ "required": [
96
+ "input"
97
+ ]
98
+ },
99
+ {
100
+ "type": "string",
101
+ "description": "The file to include.",
102
+ "pattern": "\\.(?:css|scss|sass|less|styl)$"
103
+ }
104
+ ]
45
105
  }
46
106
  },
47
107
  "inlineStyleLanguage": {
@@ -75,7 +135,7 @@
75
135
  "items": {
76
136
  "type": "string"
77
137
  },
78
- "description": "Globs of files to include, relative to workspace or 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"
138
+ "description": "Globs of files to include, relative to workspace or 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."
79
139
  },
80
140
  "sourceMap": {
81
141
  "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
@@ -267,37 +327,6 @@
267
327
  "type": "string"
268
328
  }
269
329
  ]
270
- },
271
- "extraEntryPoint": {
272
- "oneOf": [
273
- {
274
- "type": "object",
275
- "properties": {
276
- "input": {
277
- "type": "string",
278
- "description": "The file to include."
279
- },
280
- "bundleName": {
281
- "type": "string",
282
- "pattern": "^[\\w\\-.]*$",
283
- "description": "The bundle name for this extra entry point."
284
- },
285
- "inject": {
286
- "type": "boolean",
287
- "description": "If the bundle will be referenced in the HTML file.",
288
- "default": true
289
- }
290
- },
291
- "additionalProperties": false,
292
- "required": [
293
- "input"
294
- ]
295
- },
296
- {
297
- "type": "string",
298
- "description": "The file to include."
299
- }
300
- ]
301
330
  }
302
331
  },
303
332
  "$id": "BuildCustomWebpackKarmaSchema"
@@ -79,8 +79,7 @@
79
79
  },
80
80
  "resourcesOutputPath": {
81
81
  "type": "string",
82
- "description": "The path where style resources will be placed, relative to outputPath.",
83
- "default": ""
82
+ "description": "The path where style resources will be placed, relative to outputPath."
84
83
  },
85
84
  "sourceMap": {
86
85
  "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
@@ -195,12 +194,6 @@
195
194
  "description": "Extract all licenses in a separate file, in the case of production builds only.",
196
195
  "default": true
197
196
  },
198
- "showCircularDependencies": {
199
- "type": "boolean",
200
- "description": "Show circular dependency warnings on builds.",
201
- "default": false,
202
- "x-deprecated": "The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tooling."
203
- },
204
197
  "namedChunks": {
205
198
  "type": "boolean",
206
199
  "description": "Use file name for lazy loaded chunks.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-builders/custom-webpack",
3
- "version": "13.1.0",
3
+ "version": "14.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": ">=12.20.0"
21
+ "node": "^14.15.0 || >=16.10.0"
22
22
  },
23
23
  "keywords": [
24
24
  "cli",
@@ -40,18 +40,21 @@
40
40
  },
41
41
  "builders": "builders.json",
42
42
  "dependencies": {
43
- "@angular-devkit/architect": ">=0.1300.0 < 0.1400.0",
44
- "@angular-devkit/build-angular": "^13.0.0",
45
- "@angular-devkit/core": "^13.0.0",
43
+ "@angular-devkit/architect": ">=0.1400.0 < 0.1500.0",
44
+ "@angular-devkit/build-angular": "^14.0.0",
45
+ "@angular-devkit/core": "^14.0.0",
46
46
  "lodash": "^4.17.15",
47
47
  "ts-node": "^10.0.0",
48
48
  "tsconfig-paths": "^3.9.0",
49
49
  "webpack-merge": "^5.7.3"
50
50
  },
51
+ "peerDependencies": {
52
+ "@angular/compiler-cli": "^14.0.0"
53
+ },
51
54
  "devDependencies": {
52
- "jest": "^27.4.7",
55
+ "jest": "28.1.0",
53
56
  "rimraf": "^3.0.2",
54
- "typescript": "^4.5.4"
57
+ "typescript": "4.6.4"
55
58
  },
56
- "gitHead": "0866ace4284c843bee1d07ed9e9b84ef9a02d914"
59
+ "gitHead": "d12c683da0d6f577165367fe6c92250cae44ef58"
57
60
  }