@angular-builders/custom-esbuild 17.1.2-beta.2 → 17.1.2
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.
|
@@ -33,6 +33,10 @@
|
|
|
33
33
|
"type": "string",
|
|
34
34
|
"description": "The full path for the TypeScript configuration file, relative to the current workspace."
|
|
35
35
|
},
|
|
36
|
+
"deployUrl": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations."
|
|
39
|
+
},
|
|
36
40
|
"scripts": {
|
|
37
41
|
"description": "Global scripts to be included in the build.",
|
|
38
42
|
"type": "array",
|
|
@@ -142,6 +146,11 @@
|
|
|
142
146
|
},
|
|
143
147
|
"default": []
|
|
144
148
|
},
|
|
149
|
+
"clearScreen": {
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"default": false,
|
|
152
|
+
"description": "Automatically clear the terminal screen during rebuilds."
|
|
153
|
+
},
|
|
145
154
|
"optimization": {
|
|
146
155
|
"description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.",
|
|
147
156
|
"default": true,
|
|
@@ -227,6 +236,13 @@
|
|
|
227
236
|
}
|
|
228
237
|
}
|
|
229
238
|
},
|
|
239
|
+
"define": {
|
|
240
|
+
"description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced.",
|
|
241
|
+
"type": "object",
|
|
242
|
+
"additionalProperties": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
230
246
|
"fileReplacements": {
|
|
231
247
|
"description": "Replace compilation source files with other compilation source files in the build.",
|
|
232
248
|
"type": "array",
|
|
@@ -619,11 +635,11 @@
|
|
|
619
635
|
"properties": {
|
|
620
636
|
"replace": {
|
|
621
637
|
"type": "string",
|
|
622
|
-
"pattern": "\\.(([cm]?
|
|
638
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
623
639
|
},
|
|
624
640
|
"with": {
|
|
625
641
|
"type": "string",
|
|
626
|
-
"pattern": "\\.(([cm]?
|
|
642
|
+
"pattern": "\\.(([cm]?[jt])sx?|json)$"
|
|
627
643
|
}
|
|
628
644
|
},
|
|
629
645
|
"additionalProperties": false,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"buildTarget": {
|
|
14
14
|
"type": "string",
|
|
15
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`.",
|
|
16
|
-
"pattern": "^[^:\\s]
|
|
16
|
+
"pattern": "^[^:\\s]*:[^:\\s]*(:[^\\s]+)?$"
|
|
17
17
|
},
|
|
18
18
|
"port": {
|
|
19
19
|
"type": "number",
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
},
|
|
70
70
|
"publicHost": {
|
|
71
71
|
"type": "string",
|
|
72
|
-
"description": "The URL that the browser client (or live-reload client, if enabled) should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies."
|
|
72
|
+
"description": "The URL that the browser client (or live-reload client, if enabled) should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies. This option has no effect when using the 'application' or other esbuild-based builders."
|
|
73
73
|
},
|
|
74
74
|
"allowedHosts": {
|
|
75
75
|
"type": "array",
|
|
76
|
-
"description": "List of hosts that are allowed to access the dev server.",
|
|
76
|
+
"description": "List of hosts that are allowed to access the dev server. This option has no effect when using the 'application' or other esbuild-based builders.",
|
|
77
77
|
"default": [],
|
|
78
78
|
"items": {
|
|
79
79
|
"type": "string"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"disableHostCheck": {
|
|
87
87
|
"type": "boolean",
|
|
88
|
-
"description": "Don't verify connected clients are part of allowed hosts.",
|
|
88
|
+
"description": "Don't verify connected clients are part of allowed hosts. This option has no effect when using the 'application' or other esbuild-based builders.",
|
|
89
89
|
"default": false
|
|
90
90
|
},
|
|
91
91
|
"hmr": {
|
|
@@ -107,6 +107,30 @@
|
|
|
107
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
108
|
"default": false
|
|
109
109
|
},
|
|
110
|
+
"prebundle": {
|
|
111
|
+
"description": "Enable and control the Vite-based development server's prebundling capabilities. To enable prebundling, the Angular CLI cache must also be enabled. This option has no effect when using the 'browser' or other Webpack-based builders.",
|
|
112
|
+
"oneOf": [
|
|
113
|
+
{
|
|
114
|
+
"type": "boolean"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"exclude": {
|
|
120
|
+
"description": "List of package imports that should not be prebundled by the development server. The packages will be bundled into the application code itself.",
|
|
121
|
+
"type": "array",
|
|
122
|
+
"items": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"additionalProperties": false,
|
|
128
|
+
"required": [
|
|
129
|
+
"exclude"
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
110
134
|
"middlewares": {
|
|
111
135
|
"type": "array",
|
|
112
136
|
"description": "A list of paths to Vite server middlewares",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-builders/custom-esbuild",
|
|
3
|
-
"version": "17.1.2
|
|
3
|
+
"version": "17.1.2",
|
|
4
4
|
"description": "Custom esbuild builders for Angular build facade. Allow to modify Angular build configuration without ejecting it",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"builders": "builders.json",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@angular-builders/common": "1.0.2
|
|
42
|
+
"@angular-builders/common": "1.0.2",
|
|
43
43
|
"@angular-devkit/architect": ">=0.1701.0 < 0.1800.0",
|
|
44
44
|
"@angular-devkit/build-angular": "^17.1.0",
|
|
45
45
|
"@angular-devkit/core": "^17.1.0"
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"ts-node": "^10.0.0",
|
|
55
55
|
"typescript": "5.4.3"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "0a34585dbcac4b1ee7f0973b5ee384e6453b5a01"
|
|
58
58
|
}
|