You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(@angular/build): add application builder karma testing to package
An `application` only variant of the `karma` builder found within the
`@angular-devkit/build-angular` package is now available within the
`@angular/build` package as `@angular/build:karma`. This builder will
only use the `application` builder found within `@angular/build` and
does not provide the `builderMode` option as `application` would be the
only valid value. Testing behavior is effectively equivalent to using the
`@angular-devkit/build-angular:karma` builder with the `builderMode`
option set to `application`. However, several options have been adjusted:
* `builderMode` was removed
* `fileReplacements` legacy structure (`src`/`replaceWith`) removed
* `polyfills` only accepts an array of strings
* `loader` has been added
* `define` has been added
* `externalDependencies` has been added
"description": "Karma target options for Build Facade.",
5
+
"type": "object",
6
+
"properties": {
7
+
"main": {
8
+
"type": "string",
9
+
"description": "The name of the main entry-point file."
10
+
},
11
+
"tsConfig": {
12
+
"type": "string",
13
+
"description": "The name of the TypeScript configuration file."
14
+
},
15
+
"karmaConfig": {
16
+
"type": "string",
17
+
"description": "The name of the Karma configuration file."
18
+
},
19
+
"polyfills": {
20
+
"description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
21
+
"type": "array",
22
+
"items": {
23
+
"type": "string",
24
+
"uniqueItems": true
25
+
},
26
+
"default": []
27
+
},
28
+
"assets": {
29
+
"type": "array",
30
+
"description": "List of static application assets.",
31
+
"default": [],
32
+
"items": {
33
+
"$ref": "#/definitions/assetPattern"
34
+
}
35
+
},
36
+
"scripts": {
37
+
"description": "Global scripts to be included in the build.",
38
+
"type": "array",
39
+
"default": [],
40
+
"items": {
41
+
"oneOf": [
42
+
{
43
+
"type": "object",
44
+
"properties": {
45
+
"input": {
46
+
"type": "string",
47
+
"description": "The file to include.",
48
+
"pattern": "\\.[cm]?jsx?$"
49
+
},
50
+
"bundleName": {
51
+
"type": "string",
52
+
"pattern": "^[\\w\\-.]*$",
53
+
"description": "The bundle name for this extra entry point."
54
+
},
55
+
"inject": {
56
+
"type": "boolean",
57
+
"description": "If the bundle will be referenced in the HTML file.",
58
+
"default": true
59
+
}
60
+
},
61
+
"additionalProperties": false,
62
+
"required": ["input"]
63
+
},
64
+
{
65
+
"type": "string",
66
+
"description": "The file to include.",
67
+
"pattern": "\\.[cm]?jsx?$"
68
+
}
69
+
]
70
+
}
71
+
},
72
+
"styles": {
73
+
"description": "Global styles to be included in the build.",
74
+
"type": "array",
75
+
"default": [],
76
+
"items": {
77
+
"oneOf": [
78
+
{
79
+
"type": "object",
80
+
"properties": {
81
+
"input": {
82
+
"type": "string",
83
+
"description": "The file to include.",
84
+
"pattern": "\\.(?:css|scss|sass|less)$"
85
+
},
86
+
"bundleName": {
87
+
"type": "string",
88
+
"pattern": "^[\\w\\-.]*$",
89
+
"description": "The bundle name for this extra entry point."
90
+
},
91
+
"inject": {
92
+
"type": "boolean",
93
+
"description": "If the bundle will be referenced in the HTML file.",
94
+
"default": true
95
+
}
96
+
},
97
+
"additionalProperties": false,
98
+
"required": ["input"]
99
+
},
100
+
{
101
+
"type": "string",
102
+
"description": "The file to include.",
103
+
"pattern": "\\.(?:css|scss|sass|less)$"
104
+
}
105
+
]
106
+
}
107
+
},
108
+
"inlineStyleLanguage": {
109
+
"description": "The stylesheet language to use for the application's inline component styles.",
110
+
"type": "string",
111
+
"default": "css",
112
+
"enum": ["css", "less", "sass", "scss"]
113
+
},
114
+
"stylePreprocessorOptions": {
115
+
"description": "Options to pass to style preprocessors.",
116
+
"type": "object",
117
+
"properties": {
118
+
"includePaths": {
119
+
"description": "Paths to include. Paths will be resolved to workspace root.",
120
+
"type": "array",
121
+
"items": {
122
+
"type": "string"
123
+
},
124
+
"default": []
125
+
},
126
+
"sass": {
127
+
"description": "Options to pass to the sass preprocessor.",
128
+
"type": "object",
129
+
"properties": {
130
+
"fatalDeprecations": {
131
+
"description": "A set of deprecations to treat as fatal. If a deprecation warning of any provided type is encountered during compilation, the compiler will error instead. If a Version is provided, then all deprecations that were active in that compiler version will be treated as fatal.",
132
+
"type": "array",
133
+
"items": {
134
+
"type": "string"
135
+
}
136
+
},
137
+
"silenceDeprecations": {
138
+
"description": " A set of active deprecations to ignore. If a deprecation warning of any provided type is encountered during compilation, the compiler will ignore it instead.",
139
+
"type": "array",
140
+
"items": {
141
+
"type": "string"
142
+
}
143
+
},
144
+
"futureDeprecations": {
145
+
"description": "A set of future deprecations to opt into early. Future deprecations passed here will be treated as active by the compiler, emitting warnings as necessary.",
146
+
"type": "array",
147
+
"items": {
148
+
"type": "string"
149
+
}
150
+
}
151
+
},
152
+
"additionalProperties": false
153
+
}
154
+
},
155
+
"additionalProperties": false
156
+
},
157
+
"externalDependencies": {
158
+
"description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime.",
159
+
"type": "array",
160
+
"items": {
161
+
"type": "string"
162
+
},
163
+
"default": []
164
+
},
165
+
"loader": {
166
+
"description": "Defines the type of loader to use with a specified file extension when used with a JavaScript `import`. `text` inlines the content as a string; `binary` inlines the content as a Uint8Array; `file` emits the file and provides the runtime location of the file; `empty` considers the content to be empty and not include it in bundles.",
"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.",
174
+
"type": "object",
175
+
"additionalProperties": {
176
+
"type": "string"
177
+
}
178
+
},
179
+
"include": {
180
+
"type": "array",
181
+
"items": {
182
+
"type": "string"
183
+
},
184
+
"default": ["**/*.spec.ts"],
185
+
"description": "Globs of files to include, relative to 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."
186
+
},
187
+
"exclude": {
188
+
"type": "array",
189
+
"items": {
190
+
"type": "string"
191
+
},
192
+
"default": [],
193
+
"description": "Globs of files to exclude, relative to the project root."
194
+
},
195
+
"sourceMap": {
196
+
"description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
197
+
"default": true,
198
+
"oneOf": [
199
+
{
200
+
"type": "object",
201
+
"properties": {
202
+
"scripts": {
203
+
"type": "boolean",
204
+
"description": "Output source maps for all scripts.",
205
+
"default": true
206
+
},
207
+
"styles": {
208
+
"type": "boolean",
209
+
"description": "Output source maps for all styles.",
0 commit comments