@angular-devkit/build-angular 21.2.3 → 22.0.0-next.1
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 +0 -1
- package/builders.json +0 -20
- package/package.json +22 -39
- package/src/builders/app-shell/index.js +2 -2
- package/src/builders/app-shell/index.js.map +1 -1
- package/src/builders/karma/index.js +1 -1
- package/src/builders/karma/index.js.map +1 -1
- package/src/builders/server/index.js +1 -0
- package/src/builders/server/index.js.map +1 -1
- package/src/builders/ssr-dev-server/utils.js +2 -6
- package/src/builders/ssr-dev-server/utils.js.map +1 -1
- package/src/index.d.ts +0 -1
- package/src/index.js +1 -3
- package/src/index.js.map +1 -1
- package/src/tools/webpack/utils/stats.js +1 -2
- package/src/tools/webpack/utils/stats.js.map +1 -1
- package/src/utils/index.d.ts +0 -1
- package/src/utils/index.js +0 -1
- package/src/utils/index.js.map +1 -1
- package/src/utils/normalize-asset-patterns.js +1 -1
- package/src/utils/normalize-asset-patterns.js.map +1 -1
- package/src/utils/normalize-cache.js +1 -1
- package/src/utils/process-bundle.js +5 -5
- package/src/utils/process-bundle.js.map +1 -1
- package/src/builders/jest/index.d.ts +0 -11
- package/src/builders/jest/index.js +0 -213
- package/src/builders/jest/index.js.map +0 -1
- package/src/builders/jest/init-test-bed.mjs +0 -24
- package/src/builders/jest/jest-global.mjs +0 -19
- package/src/builders/jest/jest.config.mjs +0 -11
- package/src/builders/jest/options.d.ts +0 -21
- package/src/builders/jest/options.js +0 -25
- package/src/builders/jest/options.js.map +0 -1
- package/src/builders/jest/schema.d.ts +0 -26
- package/src/builders/jest/schema.js +0 -5
- package/src/builders/jest/schema.js.map +0 -1
- package/src/builders/jest/schema.json +0 -44
- package/src/builders/protractor/index.d.ts +0 -16
- package/src/builders/protractor/index.js +0 -177
- package/src/builders/protractor/index.js.map +0 -1
- package/src/builders/protractor/schema.d.ts +0 -47
- package/src/builders/protractor/schema.js +0 -5
- package/src/builders/protractor/schema.js.map +0 -1
- package/src/builders/protractor/schema.json +0 -58
- package/src/builders/protractor-error/index.d.ts +0 -10
- package/src/builders/protractor-error/index.js +0 -15
- package/src/builders/protractor-error/index.js.map +0 -1
- package/src/builders/web-test-runner/builder-status-warnings.d.ts +0 -11
- package/src/builders/web-test-runner/builder-status-warnings.js +0 -46
- package/src/builders/web-test-runner/builder-status-warnings.js.map +0 -1
- package/src/builders/web-test-runner/index.d.ts +0 -10
- package/src/builders/web-test-runner/index.js +0 -162
- package/src/builders/web-test-runner/index.js.map +0 -1
- package/src/builders/web-test-runner/jasmine_runner.js +0 -91
- package/src/builders/web-test-runner/options.d.ts +0 -24
- package/src/builders/web-test-runner/options.js +0 -26
- package/src/builders/web-test-runner/options.js.map +0 -1
- package/src/builders/web-test-runner/schema.d.ts +0 -192
- package/src/builders/web-test-runner/schema.js +0 -16
- package/src/builders/web-test-runner/schema.js.map +0 -1
- package/src/builders/web-test-runner/schema.json +0 -297
- package/src/builders/web-test-runner/test_page.html +0 -40
- package/src/builders/web-test-runner/write-test-files.d.ts +0 -9
- package/src/builders/web-test-runner/write-test-files.js +0 -42
- package/src/builders/web-test-runner/write-test-files.js.map +0 -1
- package/src/utils/run-module-as-observable-fork.d.ts +0 -10
- package/src/utils/run-module-as-observable-fork.js +0 -78
- package/src/utils/run-module-as-observable-fork.js.map +0 -1
- package/src/utils/run-module-worker.js +0 -18
- package/src/utils/test-files.d.ts +0 -18
- package/src/utils/test-files.js +0 -32
- package/src/utils/test-files.js.map +0 -1
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Web Test Runner target options for Build Facade.
|
|
3
|
-
*/
|
|
4
|
-
export type Schema = {
|
|
5
|
-
/**
|
|
6
|
-
* Run tests using Ahead of Time compilation.
|
|
7
|
-
*/
|
|
8
|
-
aot?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* List of static application assets.
|
|
11
|
-
*/
|
|
12
|
-
assets?: AssetPattern[];
|
|
13
|
-
/**
|
|
14
|
-
* Override which browsers tests are run against.
|
|
15
|
-
*/
|
|
16
|
-
browsers?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Output a code coverage report.
|
|
19
|
-
*/
|
|
20
|
-
codeCoverage?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Globs to exclude from code coverage.
|
|
23
|
-
*/
|
|
24
|
-
codeCoverageExclude?: string[];
|
|
25
|
-
/**
|
|
26
|
-
* Globs of files to exclude, relative to the project root.
|
|
27
|
-
*/
|
|
28
|
-
exclude?: string[];
|
|
29
|
-
/**
|
|
30
|
-
* Replace compilation source files with other compilation source files in the build.
|
|
31
|
-
*/
|
|
32
|
-
fileReplacements?: FileReplacement[];
|
|
33
|
-
/**
|
|
34
|
-
* Globs of files to include, relative to project root.
|
|
35
|
-
* There are 2 special cases:
|
|
36
|
-
* - when a path to directory is provided, all spec files ending ".spec.@(ts|tsx)" will be
|
|
37
|
-
* included
|
|
38
|
-
* - when a path to a file is provided, and a matching spec file exists it will be included
|
|
39
|
-
* instead.
|
|
40
|
-
*/
|
|
41
|
-
include?: string[];
|
|
42
|
-
/**
|
|
43
|
-
* The stylesheet language to use for the application's inline component styles.
|
|
44
|
-
*/
|
|
45
|
-
inlineStyleLanguage?: InlineStyleLanguage;
|
|
46
|
-
/**
|
|
47
|
-
* The name of the main entry-point file.
|
|
48
|
-
*/
|
|
49
|
-
main?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Enable and define the file watching poll time period in milliseconds.
|
|
52
|
-
*/
|
|
53
|
-
poll?: number;
|
|
54
|
-
/**
|
|
55
|
-
* Polyfills to be included in the build.
|
|
56
|
-
*/
|
|
57
|
-
polyfills?: Polyfills;
|
|
58
|
-
/**
|
|
59
|
-
* Do not use the real path when resolving modules. If unset then will default to `true` if
|
|
60
|
-
* NodeJS option --preserve-symlinks is set.
|
|
61
|
-
*/
|
|
62
|
-
preserveSymlinks?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Log progress to the console while building.
|
|
65
|
-
*/
|
|
66
|
-
progress?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Global scripts to be included in the build.
|
|
69
|
-
*/
|
|
70
|
-
scripts?: ScriptElement[];
|
|
71
|
-
/**
|
|
72
|
-
* Output source maps for scripts and styles. For more information, see
|
|
73
|
-
* https://angular.dev/reference/configs/workspace-config#source-map-configuration.
|
|
74
|
-
*/
|
|
75
|
-
sourceMap?: SourceMapUnion;
|
|
76
|
-
/**
|
|
77
|
-
* Options to pass to style preprocessors
|
|
78
|
-
*/
|
|
79
|
-
stylePreprocessorOptions?: StylePreprocessorOptions;
|
|
80
|
-
/**
|
|
81
|
-
* Global styles to be included in the build.
|
|
82
|
-
*/
|
|
83
|
-
styles?: StyleElement[];
|
|
84
|
-
/**
|
|
85
|
-
* The name of the TypeScript configuration file.
|
|
86
|
-
*/
|
|
87
|
-
tsConfig: string;
|
|
88
|
-
/**
|
|
89
|
-
* Run build when files change.
|
|
90
|
-
*/
|
|
91
|
-
watch?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* TypeScript configuration for Web Worker modules.
|
|
94
|
-
*/
|
|
95
|
-
webWorkerTsConfig?: string;
|
|
96
|
-
};
|
|
97
|
-
export type AssetPattern = AssetPatternClass | string;
|
|
98
|
-
export type AssetPatternClass = {
|
|
99
|
-
/**
|
|
100
|
-
* The pattern to match.
|
|
101
|
-
*/
|
|
102
|
-
glob: string;
|
|
103
|
-
/**
|
|
104
|
-
* An array of globs to ignore.
|
|
105
|
-
*/
|
|
106
|
-
ignore?: string[];
|
|
107
|
-
/**
|
|
108
|
-
* The input directory path in which to apply 'glob'. Defaults to the project root.
|
|
109
|
-
*/
|
|
110
|
-
input: string;
|
|
111
|
-
/**
|
|
112
|
-
* Absolute path within the output.
|
|
113
|
-
*/
|
|
114
|
-
output?: string;
|
|
115
|
-
};
|
|
116
|
-
export type FileReplacement = {
|
|
117
|
-
replace?: string;
|
|
118
|
-
replaceWith?: string;
|
|
119
|
-
src?: string;
|
|
120
|
-
with?: string;
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* The stylesheet language to use for the application's inline component styles.
|
|
124
|
-
*/
|
|
125
|
-
export declare enum InlineStyleLanguage {
|
|
126
|
-
Css = "css",
|
|
127
|
-
Less = "less",
|
|
128
|
-
Sass = "sass",
|
|
129
|
-
Scss = "scss"
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Polyfills to be included in the build.
|
|
133
|
-
*/
|
|
134
|
-
export type Polyfills = string[] | string;
|
|
135
|
-
export type ScriptElement = ScriptClass | string;
|
|
136
|
-
export type ScriptClass = {
|
|
137
|
-
/**
|
|
138
|
-
* The bundle name for this extra entry point.
|
|
139
|
-
*/
|
|
140
|
-
bundleName?: string;
|
|
141
|
-
/**
|
|
142
|
-
* If the bundle will be referenced in the HTML file.
|
|
143
|
-
*/
|
|
144
|
-
inject?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* The file to include.
|
|
147
|
-
*/
|
|
148
|
-
input: string;
|
|
149
|
-
};
|
|
150
|
-
/**
|
|
151
|
-
* Output source maps for scripts and styles. For more information, see
|
|
152
|
-
* https://angular.dev/reference/configs/workspace-config#source-map-configuration.
|
|
153
|
-
*/
|
|
154
|
-
export type SourceMapUnion = boolean | SourceMapClass;
|
|
155
|
-
export type SourceMapClass = {
|
|
156
|
-
/**
|
|
157
|
-
* Output source maps for all scripts.
|
|
158
|
-
*/
|
|
159
|
-
scripts?: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Output source maps for all styles.
|
|
162
|
-
*/
|
|
163
|
-
styles?: boolean;
|
|
164
|
-
/**
|
|
165
|
-
* Resolve vendor packages source maps.
|
|
166
|
-
*/
|
|
167
|
-
vendor?: boolean;
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* Options to pass to style preprocessors
|
|
171
|
-
*/
|
|
172
|
-
export type StylePreprocessorOptions = {
|
|
173
|
-
/**
|
|
174
|
-
* Paths to include. Paths will be resolved to workspace root.
|
|
175
|
-
*/
|
|
176
|
-
includePaths?: string[];
|
|
177
|
-
};
|
|
178
|
-
export type StyleElement = StyleClass | string;
|
|
179
|
-
export type StyleClass = {
|
|
180
|
-
/**
|
|
181
|
-
* The bundle name for this extra entry point.
|
|
182
|
-
*/
|
|
183
|
-
bundleName?: string;
|
|
184
|
-
/**
|
|
185
|
-
* If the bundle will be referenced in the HTML file.
|
|
186
|
-
*/
|
|
187
|
-
inject?: boolean;
|
|
188
|
-
/**
|
|
189
|
-
* The file to include.
|
|
190
|
-
*/
|
|
191
|
-
input: string;
|
|
192
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
|
|
3
|
-
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.InlineStyleLanguage = void 0;
|
|
6
|
-
/**
|
|
7
|
-
* The stylesheet language to use for the application's inline component styles.
|
|
8
|
-
*/
|
|
9
|
-
var InlineStyleLanguage;
|
|
10
|
-
(function (InlineStyleLanguage) {
|
|
11
|
-
InlineStyleLanguage["Css"] = "css";
|
|
12
|
-
InlineStyleLanguage["Less"] = "less";
|
|
13
|
-
InlineStyleLanguage["Sass"] = "sass";
|
|
14
|
-
InlineStyleLanguage["Scss"] = "scss";
|
|
15
|
-
})(InlineStyleLanguage || (exports.InlineStyleLanguage = InlineStyleLanguage = {}));
|
|
16
|
-
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["schema.ts"],"names":[],"mappings":";AACA,mFAAmF;AACnF,oFAAoF;;;AA+HpF;;GAEG;AACH,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,kCAAW,CAAA;IACX,oCAAa,CAAA;IACb,oCAAa,CAAA;IACb,oCAAa,CAAA;AACjB,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B"}
|
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"title": "Web Test Runner Target",
|
|
4
|
-
"description": "Web Test Runner 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
|
-
"polyfills": {
|
|
16
|
-
"description": "Polyfills to be included in the build.",
|
|
17
|
-
"oneOf": [
|
|
18
|
-
{
|
|
19
|
-
"type": "array",
|
|
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
|
-
"items": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"uniqueItems": true
|
|
24
|
-
},
|
|
25
|
-
"default": []
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
"assets": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"description": "List of static application assets.",
|
|
36
|
-
"default": [],
|
|
37
|
-
"items": {
|
|
38
|
-
"$ref": "#/definitions/assetPattern"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"scripts": {
|
|
42
|
-
"description": "Global scripts to be included in the build.",
|
|
43
|
-
"type": "array",
|
|
44
|
-
"default": [],
|
|
45
|
-
"items": {
|
|
46
|
-
"oneOf": [
|
|
47
|
-
{
|
|
48
|
-
"type": "object",
|
|
49
|
-
"properties": {
|
|
50
|
-
"input": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"description": "The file to include.",
|
|
53
|
-
"pattern": "\\.[cm]?jsx?$"
|
|
54
|
-
},
|
|
55
|
-
"bundleName": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"pattern": "^[\\w\\-.]*$",
|
|
58
|
-
"description": "The bundle name for this extra entry point."
|
|
59
|
-
},
|
|
60
|
-
"inject": {
|
|
61
|
-
"type": "boolean",
|
|
62
|
-
"description": "If the bundle will be referenced in the HTML file.",
|
|
63
|
-
"default": true
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"additionalProperties": false,
|
|
67
|
-
"required": ["input"]
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"type": "string",
|
|
71
|
-
"description": "The file to include.",
|
|
72
|
-
"pattern": "\\.[cm]?jsx?$"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"styles": {
|
|
78
|
-
"description": "Global styles to be included in the build.",
|
|
79
|
-
"type": "array",
|
|
80
|
-
"default": [],
|
|
81
|
-
"items": {
|
|
82
|
-
"oneOf": [
|
|
83
|
-
{
|
|
84
|
-
"type": "object",
|
|
85
|
-
"properties": {
|
|
86
|
-
"input": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"description": "The file to include.",
|
|
89
|
-
"pattern": "\\.(?:css|scss|sass|less)$"
|
|
90
|
-
},
|
|
91
|
-
"bundleName": {
|
|
92
|
-
"type": "string",
|
|
93
|
-
"pattern": "^[\\w\\-.]*$",
|
|
94
|
-
"description": "The bundle name for this extra entry point."
|
|
95
|
-
},
|
|
96
|
-
"inject": {
|
|
97
|
-
"type": "boolean",
|
|
98
|
-
"description": "If the bundle will be referenced in the HTML file.",
|
|
99
|
-
"default": true
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"additionalProperties": false,
|
|
103
|
-
"required": ["input"]
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"type": "string",
|
|
107
|
-
"description": "The file to include.",
|
|
108
|
-
"pattern": "\\.(?:css|scss|sass|less)$"
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"inlineStyleLanguage": {
|
|
114
|
-
"description": "The stylesheet language to use for the application's inline component styles.",
|
|
115
|
-
"type": "string",
|
|
116
|
-
"default": "css",
|
|
117
|
-
"enum": ["css", "less", "sass", "scss"]
|
|
118
|
-
},
|
|
119
|
-
"stylePreprocessorOptions": {
|
|
120
|
-
"description": "Options to pass to style preprocessors",
|
|
121
|
-
"type": "object",
|
|
122
|
-
"properties": {
|
|
123
|
-
"includePaths": {
|
|
124
|
-
"description": "Paths to include. Paths will be resolved to workspace root.",
|
|
125
|
-
"type": "array",
|
|
126
|
-
"items": {
|
|
127
|
-
"type": "string"
|
|
128
|
-
},
|
|
129
|
-
"default": []
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
"additionalProperties": false
|
|
133
|
-
},
|
|
134
|
-
"include": {
|
|
135
|
-
"type": "array",
|
|
136
|
-
"items": {
|
|
137
|
-
"type": "string"
|
|
138
|
-
},
|
|
139
|
-
"default": ["**/*.spec.ts"],
|
|
140
|
-
"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."
|
|
141
|
-
},
|
|
142
|
-
"exclude": {
|
|
143
|
-
"type": "array",
|
|
144
|
-
"items": {
|
|
145
|
-
"type": "string"
|
|
146
|
-
},
|
|
147
|
-
"default": [],
|
|
148
|
-
"description": "Globs of files to exclude, relative to the project root."
|
|
149
|
-
},
|
|
150
|
-
"sourceMap": {
|
|
151
|
-
"description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
|
|
152
|
-
"default": true,
|
|
153
|
-
"oneOf": [
|
|
154
|
-
{
|
|
155
|
-
"type": "object",
|
|
156
|
-
"properties": {
|
|
157
|
-
"scripts": {
|
|
158
|
-
"type": "boolean",
|
|
159
|
-
"description": "Output source maps for all scripts.",
|
|
160
|
-
"default": true
|
|
161
|
-
},
|
|
162
|
-
"styles": {
|
|
163
|
-
"type": "boolean",
|
|
164
|
-
"description": "Output source maps for all styles.",
|
|
165
|
-
"default": true
|
|
166
|
-
},
|
|
167
|
-
"vendor": {
|
|
168
|
-
"type": "boolean",
|
|
169
|
-
"description": "Resolve vendor packages source maps.",
|
|
170
|
-
"default": false
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
"additionalProperties": false
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"type": "boolean"
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
},
|
|
180
|
-
"progress": {
|
|
181
|
-
"type": "boolean",
|
|
182
|
-
"description": "Log progress to the console while building.",
|
|
183
|
-
"default": true
|
|
184
|
-
},
|
|
185
|
-
"watch": {
|
|
186
|
-
"type": "boolean",
|
|
187
|
-
"description": "Run build when files change."
|
|
188
|
-
},
|
|
189
|
-
"poll": {
|
|
190
|
-
"type": "number",
|
|
191
|
-
"description": "Enable and define the file watching poll time period in milliseconds."
|
|
192
|
-
},
|
|
193
|
-
"preserveSymlinks": {
|
|
194
|
-
"type": "boolean",
|
|
195
|
-
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
|
|
196
|
-
},
|
|
197
|
-
"browsers": {
|
|
198
|
-
"type": "string",
|
|
199
|
-
"description": "Override which browsers tests are run against."
|
|
200
|
-
},
|
|
201
|
-
"codeCoverage": {
|
|
202
|
-
"type": "boolean",
|
|
203
|
-
"description": "Output a code coverage report.",
|
|
204
|
-
"default": false
|
|
205
|
-
},
|
|
206
|
-
"codeCoverageExclude": {
|
|
207
|
-
"type": "array",
|
|
208
|
-
"description": "Globs to exclude from code coverage.",
|
|
209
|
-
"items": {
|
|
210
|
-
"type": "string"
|
|
211
|
-
},
|
|
212
|
-
"default": []
|
|
213
|
-
},
|
|
214
|
-
"fileReplacements": {
|
|
215
|
-
"description": "Replace compilation source files with other compilation source files in the build.",
|
|
216
|
-
"type": "array",
|
|
217
|
-
"items": {
|
|
218
|
-
"oneOf": [
|
|
219
|
-
{
|
|
220
|
-
"type": "object",
|
|
221
|
-
"properties": {
|
|
222
|
-
"src": {
|
|
223
|
-
"type": "string"
|
|
224
|
-
},
|
|
225
|
-
"replaceWith": {
|
|
226
|
-
"type": "string"
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
"additionalProperties": false,
|
|
230
|
-
"required": ["src", "replaceWith"]
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"type": "object",
|
|
234
|
-
"properties": {
|
|
235
|
-
"replace": {
|
|
236
|
-
"type": "string"
|
|
237
|
-
},
|
|
238
|
-
"with": {
|
|
239
|
-
"type": "string"
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
"additionalProperties": false,
|
|
243
|
-
"required": ["replace", "with"]
|
|
244
|
-
}
|
|
245
|
-
]
|
|
246
|
-
},
|
|
247
|
-
"default": []
|
|
248
|
-
},
|
|
249
|
-
"webWorkerTsConfig": {
|
|
250
|
-
"type": "string",
|
|
251
|
-
"description": "TypeScript configuration for Web Worker modules."
|
|
252
|
-
},
|
|
253
|
-
"aot": {
|
|
254
|
-
"type": "boolean",
|
|
255
|
-
"description": "Run tests using Ahead of Time compilation.",
|
|
256
|
-
"default": false
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
"additionalProperties": false,
|
|
260
|
-
"required": ["tsConfig"],
|
|
261
|
-
"definitions": {
|
|
262
|
-
"assetPattern": {
|
|
263
|
-
"oneOf": [
|
|
264
|
-
{
|
|
265
|
-
"type": "object",
|
|
266
|
-
"properties": {
|
|
267
|
-
"glob": {
|
|
268
|
-
"type": "string",
|
|
269
|
-
"description": "The pattern to match."
|
|
270
|
-
},
|
|
271
|
-
"input": {
|
|
272
|
-
"type": "string",
|
|
273
|
-
"description": "The input directory path in which to apply 'glob'. Defaults to the project root."
|
|
274
|
-
},
|
|
275
|
-
"output": {
|
|
276
|
-
"type": "string",
|
|
277
|
-
"default": "",
|
|
278
|
-
"description": "Absolute path within the output."
|
|
279
|
-
},
|
|
280
|
-
"ignore": {
|
|
281
|
-
"description": "An array of globs to ignore.",
|
|
282
|
-
"type": "array",
|
|
283
|
-
"items": {
|
|
284
|
-
"type": "string"
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
"additionalProperties": false,
|
|
289
|
-
"required": ["glob", "input"]
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"type": "string"
|
|
293
|
-
}
|
|
294
|
-
]
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf8">
|
|
5
|
-
<title>Unit tests</title>
|
|
6
|
-
|
|
7
|
-
<script type="module">
|
|
8
|
-
(async () => {
|
|
9
|
-
// To initialize tests correctly we load things in a very particular order.
|
|
10
|
-
|
|
11
|
-
// Step 1. Load user polyfills (including `zone.js`). Does *not* include `zone.js/testing`, which gets executed after Jasmine.
|
|
12
|
-
await import('./polyfills.js');
|
|
13
|
-
|
|
14
|
-
// Step 2. Import Jasmine.
|
|
15
|
-
// Jasmine gets wrapped into a CommonJS context by the bundling process which makes it think it is running in NodeJS, so it does not
|
|
16
|
-
// find the `window` global. Assign this to the NodeJS `global` symbol so Jasmine initializes correctly.
|
|
17
|
-
window.global = window;
|
|
18
|
-
const { default: jasmineRequire } = await import('./jasmine.js');
|
|
19
|
-
delete window.global; // Avoid leaking `global` into user tests or libraries, which might think they are running in NodeJS.
|
|
20
|
-
|
|
21
|
-
// Step 3. Initialize Jasmine on the page. Doing this after `zone.js` means Zone can patch browser globals before Jasmine runs.
|
|
22
|
-
// Doing this before `zone.js/testing`, means Zone can patch Jasmine-defined globals.
|
|
23
|
-
const jasmine = jasmineRequire.core(jasmineRequire);
|
|
24
|
-
const jasmineGlobal = jasmine.getGlobal();
|
|
25
|
-
jasmineGlobal.jasmine = jasmine;
|
|
26
|
-
const jasmineEnv = jasmine.getEnv();
|
|
27
|
-
Object.assign(window, jasmineRequire.interface(jasmine, jasmineEnv));
|
|
28
|
-
|
|
29
|
-
// Step 4. Import `zone.js/testing`, which will find and patch Jasmine globals from steps 2. and 3.
|
|
30
|
-
// https://github.com/angular/angular/blob/af4f5df150d527a1b523def1eb51d2b661a25f83/packages/zone.js/lib/jasmine/jasmine.ts
|
|
31
|
-
await import('./testing.js');
|
|
32
|
-
|
|
33
|
-
// Step 5. Run the actual tests.
|
|
34
|
-
const { runJasmineTests } = await import('./jasmine_runner.js');
|
|
35
|
-
await runJasmineTests(jasmineEnv);
|
|
36
|
-
})();
|
|
37
|
-
</script>
|
|
38
|
-
</head>
|
|
39
|
-
<body></body>
|
|
40
|
-
</html>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
-
*/
|
|
8
|
-
import { ResultFile } from '@angular/build/private';
|
|
9
|
-
export declare function writeTestFiles(files: Record<string, ResultFile>, testDir: string): Promise<void>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5
|
-
*
|
|
6
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
-
*/
|
|
9
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.writeTestFiles = writeTestFiles;
|
|
14
|
-
const build_1 = require("@angular/build");
|
|
15
|
-
const private_1 = require("@angular/build/private");
|
|
16
|
-
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
17
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
18
|
-
async function writeTestFiles(files, testDir) {
|
|
19
|
-
const directoryExists = new Set();
|
|
20
|
-
// Writes the test related output files to disk and ensures the containing directories are present
|
|
21
|
-
await (0, private_1.emitFilesToDisk)(Object.entries(files), async ([filePath, file]) => {
|
|
22
|
-
if (file.type !== build_1.BuildOutputFileType.Browser && file.type !== build_1.BuildOutputFileType.Media) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
const fullFilePath = node_path_1.default.join(testDir, filePath);
|
|
26
|
-
// Ensure output subdirectories exist
|
|
27
|
-
const fileBasePath = node_path_1.default.dirname(fullFilePath);
|
|
28
|
-
if (fileBasePath && !directoryExists.has(fileBasePath)) {
|
|
29
|
-
await promises_1.default.mkdir(fileBasePath, { recursive: true });
|
|
30
|
-
directoryExists.add(fileBasePath);
|
|
31
|
-
}
|
|
32
|
-
if (file.origin === 'memory') {
|
|
33
|
-
// Write file contents
|
|
34
|
-
await promises_1.default.writeFile(fullFilePath, file.contents);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
// Copy file contents
|
|
38
|
-
await promises_1.default.copyFile(file.inputPath, fullFilePath, promises_1.default.constants.COPYFILE_FICLONE);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=write-test-files.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"write-test-files.js","sourceRoot":"","sources":["write-test-files.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;AAOH,wCAyBC;AA9BD,0CAAqD;AACrD,oDAAqE;AACrE,gEAAkC;AAClC,0DAA6B;AAEtB,KAAK,UAAU,cAAc,CAAC,KAAiC,EAAE,OAAe;IACrF,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;IAC1C,kGAAkG;IAClG,MAAM,IAAA,yBAAe,EAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE;QACtE,IAAI,IAAI,CAAC,IAAI,KAAK,2BAAmB,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,KAAK,2BAAmB,CAAC,KAAK,EAAE,CAAC;YACzF,OAAO;QACT,CAAC;QAED,MAAM,YAAY,GAAG,mBAAI,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAElD,qCAAqC;QACrC,MAAM,YAAY,GAAG,mBAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAChD,IAAI,YAAY,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;YACvD,MAAM,kBAAE,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YAClD,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACpC,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC7B,sBAAsB;YACtB,MAAM,kBAAE,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClD,CAAC;aAAM,CAAC;YACN,qBAAqB;YACrB,MAAM,kBAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,EAAE,kBAAE,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QACjF,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
-
*/
|
|
8
|
-
import { BuilderOutput } from '@angular-devkit/architect';
|
|
9
|
-
import { Observable } from 'rxjs';
|
|
10
|
-
export declare function runModuleAsObservableFork(cwd: string, modulePath: string, exportName: string | undefined, args: any[]): Observable<BuilderOutput>;
|