@angular-builders/custom-webpack 11.1.0 → 11.1.2-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.
@@ -404,23 +404,30 @@
404
404
  "default": []
405
405
  },
406
406
  "customWebpackConfig": {
407
- "type": "object",
408
407
  "description": "Custom webpack configuration",
409
- "properties": {
410
- "path": {
411
- "type": "string",
412
- "description": "Path to the custom webpack configuration file"
413
- },
414
- "mergeRules": {
408
+ "default": false,
409
+ "oneOf": [
410
+ {
415
411
  "type": "object",
416
- "description": "Merge rules as described here: https://github.com/survivejs/webpack-merge#mergewithrules"
412
+ "properties": {
413
+ "path": {
414
+ "type": "string",
415
+ "description": "Path to the custom webpack configuration file"
416
+ },
417
+ "mergeRules": {
418
+ "type": "object",
419
+ "description": "Merge rules as described here: https://github.com/survivejs/webpack-merge#mergewithrules"
420
+ },
421
+ "replaceDuplicatePlugins": {
422
+ "type": "boolean",
423
+ "description": "Flag that indicates whether to replace duplicate webpack plugins or not"
424
+ }
425
+ }
417
426
  },
418
- "replaceDuplicatePlugins": {
419
- "type": "boolean",
420
- "description": "Flag that indicates whether to replace duplicate webpack plugins or not"
427
+ {
428
+ "type": "boolean"
421
429
  }
422
- },
423
- "default": false
430
+ ]
424
431
  },
425
432
  "indexTransform": {
426
433
  "type": "string",
@@ -528,6 +535,7 @@
528
535
  },
529
536
  "bundleName": {
530
537
  "type": "string",
538
+ "pattern": "^[\\w\\-.]*$",
531
539
  "description": "The bundle name for this extra entry point."
532
540
  },
533
541
  "inject": {
@@ -1,4 +1,3 @@
1
- /// <reference types="webpack-dev-server" />
2
1
  import { Path } from '@angular-devkit/core';
3
2
  import { Configuration } from 'webpack';
4
3
  import { CustomWebpackBuilderConfig } from './custom-webpack-builder-config';
@@ -1,4 +1,3 @@
1
- /// <reference types="webpack-dev-server" />
2
1
  import { BuilderContext, BuilderHandlerFn } from '@angular-devkit/architect';
3
2
  import { ExecutionTransformer } from '@angular-devkit/build-angular';
4
3
  import { IndexHtmlTransform } from '@angular-devkit/build-angular/src/utils/index-file/index-html-generator';
@@ -183,23 +183,30 @@
183
183
  "description": "TypeScript configuration for Web Worker modules."
184
184
  },
185
185
  "customWebpackConfig": {
186
- "type": "object",
187
186
  "description": "Custom webpack configuration",
188
- "properties": {
189
- "path": {
190
- "type": "string",
191
- "description": "Path to the custom webpack configuration file"
192
- },
193
- "mergeRules": {
187
+ "default": false,
188
+ "oneOf": [
189
+ {
194
190
  "type": "object",
195
- "description": "Merge rules as described here: https://github.com/survivejs/webpack-merge#mergewithrules"
191
+ "properties": {
192
+ "path": {
193
+ "type": "string",
194
+ "description": "Path to the custom webpack configuration file"
195
+ },
196
+ "mergeRules": {
197
+ "type": "object",
198
+ "description": "Merge rules as described here: https://github.com/survivejs/webpack-merge#mergewithrules"
199
+ },
200
+ "replaceDuplicatePlugins": {
201
+ "type": "boolean",
202
+ "description": "Flag that indicates whether to replace duplicate webpack plugins or not"
203
+ }
204
+ }
196
205
  },
197
- "replaceDuplicatePlugins": {
198
- "type": "boolean",
199
- "description": "Flag that indicates whether to replace duplicate webpack plugins or not"
206
+ {
207
+ "type": "boolean"
200
208
  }
201
- },
202
- "default": false
209
+ ]
203
210
  },
204
211
  "indexTransform": {
205
212
  "type": "string",
@@ -261,6 +268,7 @@
261
268
  },
262
269
  "bundleName": {
263
270
  "type": "string",
271
+ "pattern": "^[\\w\\-.]*$",
264
272
  "description": "The bundle name for this extra entry point."
265
273
  },
266
274
  "inject": {
@@ -251,23 +251,30 @@
251
251
  "description": "Enable and define the file watching poll time period in milliseconds."
252
252
  },
253
253
  "customWebpackConfig": {
254
- "type": "object",
255
254
  "description": "Custom webpack configuration",
256
- "properties": {
257
- "path": {
258
- "type": "string",
259
- "description": "Path to the custom webpack configuration file"
260
- },
261
- "mergeRules": {
255
+ "default": false,
256
+ "oneOf": [
257
+ {
262
258
  "type": "object",
263
- "description": "Merge rules as described here: https://github.com/survivejs/webpack-merge#mergewithrules"
259
+ "properties": {
260
+ "path": {
261
+ "type": "string",
262
+ "description": "Path to the custom webpack configuration file"
263
+ },
264
+ "mergeRules": {
265
+ "type": "object",
266
+ "description": "Merge rules as described here: https://github.com/survivejs/webpack-merge#mergewithrules"
267
+ },
268
+ "replaceDuplicatePlugins": {
269
+ "type": "boolean",
270
+ "description": "Flag that indicates whether to replace duplicate webpack plugins or not"
271
+ }
272
+ }
264
273
  },
265
- "replaceDuplicatePlugins": {
266
- "type": "boolean",
267
- "description": "Flag that indicates whether to replace duplicate webpack plugins or not"
274
+ {
275
+ "type": "boolean"
268
276
  }
269
- },
270
- "default": false
277
+ ]
271
278
  },
272
279
  "indexTransform": {
273
280
  "type": "string",
@@ -1,4 +1,3 @@
1
- /// <reference types="webpack-dev-server" />
2
1
  import { BuilderContext } from '@angular-devkit/architect';
3
2
  import { ExecutionTransformer } from '@angular-devkit/build-angular';
4
3
  import { IndexHtmlTransform } from '@angular-devkit/build-angular/src/utils/index-file/index-html-generator';
package/dist/utils.js CHANGED
@@ -13,7 +13,6 @@ function tsNodeRegister(file = '', tsConfig) {
13
13
  project: tsConfig,
14
14
  compilerOptions: {
15
15
  module: 'CommonJS',
16
- target: 'ESNext',
17
16
  types: [
18
17
  'node', // NOTE: `node` is added because users scripts can also use pure node's packages as webpack or others
19
18
  ],
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,cAAc,CAAC,OAAe,EAAE,EAAE,QAAiB;IACjE,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;QAChC,8BAA8B;QAC9B,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC;YAC1B,OAAO,EAAE,QAAQ;YACjB,eAAe,EAAE;gBACf,MAAM,EAAE,UAAU;gBAClB,MAAM,EAAE,QAAQ;gBAChB,KAAK,EAAE;oBACL,MAAM,EAAE,qGAAqG;iBAC9G;aACF;SACF,CAAC,CAAC;QAEH,6BAA6B;QAC7B,MAAM,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAChD,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC/E,IAAI,OAAO,IAAI,KAAK,EAAE;YACpB,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;SAC5C;KACF;AACH,CAAC;AArBD,wCAqBC"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,cAAc,CAAC,OAAe,EAAE,EAAE,QAAiB;IACjE,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;QAChC,8BAA8B;QAC9B,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC;YAC1B,OAAO,EAAE,QAAQ;YACjB,eAAe,EAAE;gBACf,MAAM,EAAE,UAAU;gBAClB,KAAK,EAAE;oBACL,MAAM,EAAE,qGAAqG;iBAC9G;aACF;SACF,CAAC,CAAC;QAEH,6BAA6B;QAC7B,MAAM,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAChD,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC/E,IAAI,OAAO,IAAI,KAAK,EAAE;YACpB,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;SAC5C;KACF;AACH,CAAC;AApBD,wCAoBC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="webpack-dev-server" />
2
1
  import { MergeRules } from './custom-webpack-builder-config';
3
2
  import { Configuration } from 'webpack';
4
3
  export declare function mergeConfigs(webpackConfig1: Configuration, webpackConfig2: Configuration, mergeRules?: MergeRules, replacePlugins?: boolean): Configuration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-builders/custom-webpack",
3
- "version": "11.1.0",
3
+ "version": "11.1.2-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": [
@@ -45,5 +45,5 @@
45
45
  "tsconfig-paths": "^3.9.0",
46
46
  "webpack-merge": "^5.7.3"
47
47
  },
48
- "gitHead": "aa3ddcb8d72a7b0d0695a6ded90257e14b911562"
48
+ "gitHead": "b4bc8b9ced6025315d52a899b7515127a219dcc0"
49
49
  }
package/CHANGELOG.md DELETED
@@ -1,216 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [11.1.0](https://github.com/just-jeb/angular-builders/compare/@angular-builders/custom-webpack@11.1.0-beta.2...@angular-builders/custom-webpack@11.1.0) (2021-02-26)
7
-
8
- **Note:** Version bump only for package @angular-builders/custom-webpack
9
-
10
-
11
-
12
-
13
-
14
- ## [11.1.0-beta.2](https://github.com/just-jeb/angular-builders/compare/@angular-builders/custom-webpack@11.1.0-beta.1...@angular-builders/custom-webpack@11.1.0-beta.2) (2021-02-15)
15
-
16
- **Note:** Version bump only for package @angular-builders/custom-webpack
17
-
18
-
19
-
20
-
21
-
22
- ## [11.1.0-beta.1](https://github.com/just-jeb/angular-builders/compare/@angular-builders/custom-webpack@11.1.0-beta.0...@angular-builders/custom-webpack@11.1.0-beta.1) (2021-02-14)
23
-
24
- **Note:** Version bump only for package @angular-builders/custom-webpack
25
-
26
-
27
-
28
-
29
-
30
- ## 11.1.0-beta.0 (2021-02-03)
31
-
32
-
33
- ### Features
34
-
35
- * **custom-webpack:** use application tsconfig file for indexTransform and customWebpackConfig ([#879](https://github.com/just-jeb/angular-builders/issues/879)) ([c85cd10](https://github.com/just-jeb/angular-builders/commit/c85cd103af6047fefbea273ace1d9446829f3651))
36
-
37
-
38
-
39
- ### 11.0.1-beta.4 (2021-02-03)
40
-
41
- **Note:** Version bump only for package @angular-builders/custom-webpack
42
-
43
-
44
-
45
-
46
-
47
- ### 11.0.1-beta.3 (2021-02-03)
48
-
49
- **Note:** Version bump only for package @angular-builders/custom-webpack
50
-
51
-
52
-
53
-
54
-
55
- ### 11.0.1-beta.2 (2021-02-03)
56
-
57
- **Note:** Version bump only for package @angular-builders/custom-webpack
58
-
59
-
60
-
61
-
62
-
63
- ### 11.0.1-beta.1 (2021-01-14)
64
-
65
- **Note:** Version bump only for package @angular-builders/custom-webpack
66
-
67
-
68
-
69
-
70
-
71
- ### 11.0.1-beta.0 (2020-12-27)
72
-
73
- **Note:** Version bump only for package @angular-builders/custom-webpack
74
-
75
-
76
-
77
-
78
-
79
- ## [11.0.0](https://github.com/just-jeb/angular-builders/compare/@angular-builders/custom-webpack@11.0.0-beta.6...@angular-builders/custom-webpack@11.0.0) (2020-12-27)
80
-
81
- **Note:** Version bump only for package @angular-builders/custom-webpack
82
-
83
- ## 11.0.0-beta.6 (2020-12-27)
84
-
85
- **Note:** Version bump only for package @angular-builders/custom-webpack
86
-
87
- ## 11.0.0-beta.5 (2020-12-22)
88
-
89
- ### Bug Fixes
90
-
91
- - **custom-webpack:** allow merging loader name with loader object ([#912](https://github.com/just-jeb/angular-builders/issues/912)) ([a89a35d](https://github.com/just-jeb/angular-builders/commit/a89a35d30276a3d284d304ee710442ee03da351b))
92
-
93
- ## 11.0.0-beta.4 (2020-12-16)
94
-
95
- ### Bug Fixes
96
-
97
- - **custom-webpack:** fix loaders merge scenario ([#909](https://github.com/just-jeb/angular-builders/issues/909)) ([0f0ad3d](https://github.com/just-jeb/angular-builders/commit/0f0ad3d174ea589538c4474b0509ad3b5f925bf1))
98
-
99
- ## 11.0.0-beta.3 (2020-12-15)
100
-
101
- **Note:** Version bump only for package @angular-builders/custom-webpack
102
-
103
- ## 11.0.0-beta.2 (2020-12-14)
104
-
105
- **Note:** Version bump only for package @angular-builders/custom-webpack
106
-
107
- ## [11.0.0-beta.1](https://github.com/just-jeb/angular-builders/compare/@angular-builders/custom-webpack@10.1.0-beta.0...@angular-builders/custom-webpack@11.0.0-beta.1) (2020-11-17)
108
-
109
- ### ⚠ BREAKING CHANGES
110
-
111
- - **deps:** update to angular 11 (#874)
112
-
113
- ### Miscellaneous Chores
114
-
115
- - **deps:** update to angular 11 ([#874](https://github.com/just-jeb/angular-builders/issues/874)) ([e0900dd](https://github.com/just-jeb/angular-builders/commit/e0900dd5e89750a6d7c129ce82d71354dc8882be)), closes [#854](https://github.com/just-jeb/angular-builders/issues/854) [#873](https://github.com/just-jeb/angular-builders/issues/873)
116
-
117
- ## [11.0.0-beta.0](https://github.com/just-jeb/angular-builders/compare/@angular-builders/custom-webpack@10.1.0-beta.0...@angular-builders/custom-webpack@11.0.0-beta.0) (2020-11-17)
118
-
119
- ### ⚠ BREAKING CHANGES
120
-
121
- - **deps:** update to angular 11 (#874)
122
-
123
- ### Miscellaneous Chores
124
-
125
- - **deps:** update to angular 11 ([#874](https://github.com/just-jeb/angular-builders/issues/874)) ([e0900dd](https://github.com/just-jeb/angular-builders/commit/e0900dd5e89750a6d7c129ce82d71354dc8882be)), closes [#854](https://github.com/just-jeb/angular-builders/issues/854) [#873](https://github.com/just-jeb/angular-builders/issues/873)
126
-
127
- ## 10.1.0-beta.0 (2020-09-10)
128
-
129
- - feat(custom-webpack): add extract-i18n builder (#832) ([15f95d0](https://github.com/just-jeb/angular-builders/commit/15f95d0)), closes [#832](https://github.com/just-jeb/angular-builders/issues/832)
130
-
131
- ## <small>10.0.2-beta.0 (2020-09-09)</small>
132
-
133
- - Fix CHANGELOG links (#834) ([001b4ab](https://github.com/just-jeb/angular-builders/commit/001b4ab)), closes [#834](https://github.com/just-jeb/angular-builders/issues/834)
134
-
135
- ## <small>10.0.1 (2020-09-09)</small>
136
-
137
- **Note:** Version bump only for package @angular-builders/custom-webpack
138
-
139
- ## <small>10.0.1-beta.1 (2020-09-06)</small>
140
-
141
- - chore: update dependencies (#831) ([b475080](https://github.com/just-jeb/angular-builders/commit/b475080)), closes [#831](https://github.com/just-jeb/angular-builders/issues/831)
142
-
143
- ## <small>10.0.1-beta.0 (2020-09-01)</small>
144
-
145
- - chore(deps): bump ts-node from 8.10.2 to 9.0.0 ([7de38ff](https://github.com/just-jeb/angular-builders/commit/7de38ff))
146
-
147
- ## 10.0.0 (2020-07-21)
148
-
149
- **Note:** Version bump only for package @angular-builders/custom-webpack
150
-
151
- ## 10.0.0-beta.1 (2020-07-13)
152
-
153
- - feat(custom-webpack): export common (#793) ([1cb73d4](https://github.com/just-jeb/angular-builders/commit/1cb73d4)), closes [#793](https://github.com/just-jeb/angular-builders/issues/793)
154
-
155
- ## 10.0.0-beta.0 (2020-06-25)
156
-
157
- - build!: update to Angular 10 (#782) ([409f356](https://github.com/just-jeb/angular-builders/commit/409f356)), closes [#782](https://github.com/just-jeb/angular-builders/issues/782)
158
-
159
- ## <small>9.2.1-beta.0 (2020-06-23)</small>
160
-
161
- - fix(custom-webpack): schema validation error ([fe1cda0](https://github.com/just-jeb/angular-builders/commit/fe1cda0))
162
-
163
- ## 9.2.0 (2020-06-23)
164
-
165
- **Note:** Version bump only for package @angular-builders/custom-webpack
166
-
167
- ## 9.2.0-beta.0 (2020-04-15)
168
-
169
- - docs(custom-webpack): update README ([0b81440](https://github.com/just-jeb/angular-builders/commit/0b81440))
170
- - feat(custom-webpack): pass target options to custom webpack config function (#721) ([7a44528](https://github.com/just-jeb/angular-builders/commit/7a44528)), closes [#721](https://github.com/just-jeb/angular-builders/issues/721) [#683](https://github.com/just-jeb/angular-builders/issues/683)
171
-
172
- ## 9.1.0 (2020-04-05)
173
-
174
- **Note:** Version bump only for package @angular-builders/custom-webpack
175
-
176
- ## 9.1.0-beta.1 (2020-03-29)
177
-
178
- - fix: adjust devkit version range to fit 0.9xx.0 (#709) ([99e061f](https://github.com/just-jeb/angular-builders/commit/99e061f)), closes [#709](https://github.com/just-jeb/angular-builders/issues/709)
179
-
180
- ## 9.1.0-beta.0 (2020-02-27)
181
-
182
- - feat(custom-webpack): support TS for indexTransform (#689) ([f97905c](https://github.com/just-jeb/angular-builders/commit/f97905c)), closes [#689](https://github.com/just-jeb/angular-builders/issues/689)
183
-
184
- ## <small>9.0.1-beta.0 (2020-02-23)</small>
185
-
186
- - docs: minor fixes (#688) ([7cd52f8](https://github.com/just-jeb/angular-builders/commit/7cd52f8)), closes [#688](https://github.com/just-jeb/angular-builders/issues/688)
187
-
188
- ## 9.0.0 (2020-02-23)
189
-
190
- - ci(release): publish ([f0ce8bc](https://github.com/just-jeb/angular-builders/commit/f0ce8bc))
191
- - docs: update README and MIGRATION for v9 (#685) ([92ec06d](https://github.com/just-jeb/angular-builders/commit/92ec06d)), closes [#685](https://github.com/just-jeb/angular-builders/issues/685)
192
-
193
- ## 9.0.0-beta.2 (2020-02-23)
194
-
195
- - docs: update README and MIGRATION for v9 (#685) ([92ec06d](https://github.com/just-jeb/angular-builders/commit/92ec06d)), closes [#685](https://github.com/just-jeb/angular-builders/issues/685)
196
-
197
- ## 9.0.0-beta.1 (2020-01-28)
198
-
199
- - docs: add 'next' tag badges (#672) ([441adec](https://github.com/just-jeb/angular-builders/commit/441adec)), closes [#672](https://github.com/just-jeb/angular-builders/issues/672)
200
-
201
- ## 9.0.0-beta.0 (2020-01-04)
202
-
203
- - ci: use verdaccio for e2e ([23f9235](https://github.com/just-jeb/angular-builders/commit/23f9235))
204
- - build!: direct dependency on @angular-devkit 9 ([6f0ac12](https://github.com/just-jeb/angular-builders/commit/6f0ac12))
205
-
206
- ## [8.4.1](https://github.com/just-jeb/angular-builders/tree/master/packages/custom-webpack/compare/@angular-builders/custom-webpack@8.4.0...@angular-builders/custom-webpack@8.4.1) (2019-11-29)
207
-
208
- ### Bug Fixes
209
-
210
- - **custom-webpack:** support exporting function in config written in TS ([#627](https://github.com/just-jeb/angular-builders/issues/627)) ([9ecde07](https://github.com/just-jeb/angular-builders/commit/9ecde07adc80291993d59a363ce7330996bde1f4))
211
-
212
- # [8.4.0](https://github.com/just-jeb/angular-builders/tree/master/packages/custom-webpack/compare/@angular-builders/custom-webpack@8.3.0...@angular-builders/custom-webpack@8.4.0) (2019-11-19)
213
-
214
- ### Features
215
-
216
- - **custom-webpack:** support Webpack config written in TS ([#626](https://github.com/just-jeb/angular-builders/issues/626)) ([479fa0b](https://github.com/just-jeb/angular-builders/commit/479fa0bb1664ec618d482c15f0e52ba9d58acb07))