@angular/cli 21.0.0-next.1 → 21.0.0-next.10
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/lib/cli/index.js +1 -0
- package/lib/cli/index.js.map +1 -0
- package/lib/code-examples.db +0 -0
- package/lib/config/schema.json +272 -46
- package/lib/config/workspace-schema.d.ts +55 -0
- package/lib/config/workspace-schema.js +22 -1
- package/lib/config/workspace-schema.js.map +1 -0
- package/lib/init.js +1 -0
- package/lib/init.js.map +1 -0
- package/package.json +24 -23
- package/src/analytics/analytics-collector.js +1 -0
- package/src/analytics/analytics-collector.js.map +1 -0
- package/src/analytics/analytics-parameters.js +1 -0
- package/src/analytics/analytics-parameters.js.map +1 -0
- package/src/analytics/analytics.js +1 -0
- package/src/analytics/analytics.js.map +1 -0
- package/src/command-builder/architect-base-command-module.js +1 -0
- package/src/command-builder/architect-base-command-module.js.map +1 -0
- package/src/command-builder/architect-command-module.js +21 -7
- package/src/command-builder/architect-command-module.js.map +1 -0
- package/src/command-builder/command-module.js +1 -0
- package/src/command-builder/command-module.js.map +1 -0
- package/src/command-builder/command-runner.js +2 -2
- package/src/command-builder/command-runner.js.map +1 -0
- package/src/command-builder/schematics-command-module.js +1 -0
- package/src/command-builder/schematics-command-module.js.map +1 -0
- package/src/command-builder/utilities/command.js +1 -0
- package/src/command-builder/utilities/command.js.map +1 -0
- package/src/command-builder/utilities/json-help.js +1 -0
- package/src/command-builder/utilities/json-help.js.map +1 -0
- package/src/command-builder/utilities/json-schema.d.ts +13 -1
- package/src/command-builder/utilities/json-schema.js +180 -100
- package/src/command-builder/utilities/json-schema.js.map +1 -0
- package/src/command-builder/utilities/normalize-options-middleware.js +1 -0
- package/src/command-builder/utilities/normalize-options-middleware.js.map +1 -0
- package/src/command-builder/utilities/schematic-engine-host.js +1 -0
- package/src/command-builder/utilities/schematic-engine-host.js.map +1 -0
- package/src/command-builder/utilities/schematic-workflow.js +1 -0
- package/src/command-builder/utilities/schematic-workflow.js.map +1 -0
- package/src/commands/add/cli.js +66 -26
- package/src/commands/add/cli.js.map +1 -0
- package/src/commands/analytics/cli.js +1 -0
- package/src/commands/analytics/cli.js.map +1 -0
- package/src/commands/analytics/info/cli.js +1 -0
- package/src/commands/analytics/info/cli.js.map +1 -0
- package/src/commands/analytics/settings/cli.js +1 -0
- package/src/commands/analytics/settings/cli.js.map +1 -0
- package/src/commands/build/cli.js +1 -0
- package/src/commands/build/cli.js.map +1 -0
- package/src/commands/cache/clean/cli.js +1 -0
- package/src/commands/cache/clean/cli.js.map +1 -0
- package/src/commands/cache/cli.js +1 -0
- package/src/commands/cache/cli.js.map +1 -0
- package/src/commands/cache/info/cli.js +36 -11
- package/src/commands/cache/info/cli.js.map +1 -0
- package/src/commands/cache/settings/cli.js +1 -0
- package/src/commands/cache/settings/cli.js.map +1 -0
- package/src/commands/cache/utilities.js +1 -0
- package/src/commands/cache/utilities.js.map +1 -0
- package/src/commands/command-config.js +1 -0
- package/src/commands/command-config.js.map +1 -0
- package/src/commands/completion/cli.js +1 -0
- package/src/commands/completion/cli.js.map +1 -0
- package/src/commands/config/cli.js +1 -0
- package/src/commands/config/cli.js.map +1 -0
- package/src/commands/deploy/cli.js +1 -0
- package/src/commands/deploy/cli.js.map +1 -0
- package/src/commands/e2e/cli.js +1 -0
- package/src/commands/e2e/cli.js.map +1 -0
- package/src/commands/extract-i18n/cli.js +1 -0
- package/src/commands/extract-i18n/cli.js.map +1 -0
- package/src/commands/generate/cli.js +1 -0
- package/src/commands/generate/cli.js.map +1 -0
- package/src/commands/lint/cli.js +1 -0
- package/src/commands/lint/cli.js.map +1 -0
- package/src/commands/make-this-awesome/cli.js +1 -0
- package/src/commands/make-this-awesome/cli.js.map +1 -0
- package/src/commands/mcp/cli.js +1 -0
- package/src/commands/mcp/cli.js.map +1 -0
- package/src/commands/mcp/constants.d.ts +1 -1
- package/src/commands/mcp/constants.js +2 -1
- package/src/commands/mcp/constants.js.map +1 -0
- package/src/commands/mcp/mcp-server.d.ts +3 -3
- package/src/commands/mcp/mcp-server.js +40 -4
- package/src/commands/mcp/mcp-server.js.map +1 -0
- package/src/commands/mcp/resources/ai-tutor.md +627 -0
- package/src/commands/mcp/resources/instructions.js +1 -0
- package/src/commands/mcp/resources/instructions.js.map +1 -0
- package/src/commands/mcp/tools/ai-tutor.d.ts +8 -0
- package/src/commands/mcp/tools/ai-tutor.js +62 -0
- package/src/commands/mcp/tools/ai-tutor.js.map +1 -0
- package/src/commands/mcp/tools/best-practices.d.ts +4 -1
- package/src/commands/mcp/tools/best-practices.js +167 -22
- package/src/commands/mcp/tools/best-practices.js.map +1 -0
- package/src/commands/mcp/tools/doc-search.d.ts +20 -1
- package/src/commands/mcp/tools/doc-search.js +186 -67
- package/src/commands/mcp/tools/doc-search.js.map +1 -0
- package/src/commands/mcp/tools/examples.d.ts +35 -1
- package/src/commands/mcp/tools/examples.js +414 -56
- package/src/commands/mcp/tools/examples.js.map +1 -0
- package/src/commands/mcp/tools/modernize.js +29 -17
- package/src/commands/mcp/tools/modernize.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/analyze_for_unsupported_zone_uses.d.ts +17 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/analyze_for_unsupported_zone_uses.js +62 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/analyze_for_unsupported_zone_uses.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate_single_file.d.ts +12 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate_single_file.js +73 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate_single_file.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate_test_file.d.ts +11 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate_test_file.js +106 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate_test_file.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.d.ts +15 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.js +238 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/send_debug_message.d.ts +10 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/send_debug_message.js +20 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/send_debug_message.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/ts_utils.d.ts +36 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/ts_utils.js +136 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/ts_utils.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/types.d.ts +13 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/types.js +10 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/types.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.d.ts +14 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js +228 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js.map +1 -0
- package/src/commands/mcp/tools/projects.d.ts +75 -16
- package/src/commands/mcp/tools/projects.js +427 -30
- package/src/commands/mcp/tools/projects.js.map +1 -0
- package/src/commands/mcp/tools/tool-registry.d.ts +2 -1
- package/src/commands/mcp/tools/tool-registry.js +4 -2
- package/src/commands/mcp/tools/tool-registry.js.map +1 -0
- package/src/commands/new/cli.js +2 -0
- package/src/commands/new/cli.js.map +1 -0
- package/src/commands/run/cli.js +1 -0
- package/src/commands/run/cli.js.map +1 -0
- package/src/commands/serve/cli.js +1 -0
- package/src/commands/serve/cli.js.map +1 -0
- package/src/commands/test/cli.js +1 -0
- package/src/commands/test/cli.js.map +1 -0
- package/src/commands/update/cli.js +1 -0
- package/src/commands/update/cli.js.map +1 -0
- package/src/commands/update/schematic/index.js +1 -0
- package/src/commands/update/schematic/index.js.map +1 -0
- package/src/commands/update/schematic/schema.js +1 -0
- package/src/commands/update/schematic/schema.js.map +1 -0
- package/src/commands/version/cli.d.ts +3 -7
- package/src/commands/version/cli.js +50 -49
- package/src/commands/version/cli.js.map +1 -0
- package/src/commands/version/version-info.d.ts +28 -10
- package/src/commands/version/version-info.js +34 -50
- package/src/commands/version/version-info.js.map +1 -0
- package/src/package-managers/discovery.d.ts +23 -0
- package/src/package-managers/discovery.js +110 -0
- package/src/package-managers/discovery.js.map +1 -0
- package/src/package-managers/error.d.ts +31 -0
- package/src/package-managers/error.js +41 -0
- package/src/package-managers/error.js.map +1 -0
- package/src/package-managers/factory.d.ts +25 -0
- package/src/package-managers/factory.js +123 -0
- package/src/package-managers/factory.js.map +1 -0
- package/src/package-managers/host.d.ts +64 -0
- package/src/package-managers/host.js +69 -0
- package/src/package-managers/host.js.map +1 -0
- package/src/package-managers/index.d.ts +12 -0
- package/src/package-managers/index.js +15 -0
- package/src/package-managers/index.js.map +1 -0
- package/src/package-managers/logger.d.ts +27 -0
- package/src/package-managers/logger.js +10 -0
- package/src/package-managers/logger.js.map +1 -0
- package/src/package-managers/package-manager-descriptor.d.ts +204 -0
- package/src/package-managers/package-manager-descriptor.js +147 -0
- package/src/package-managers/package-manager-descriptor.js.map +1 -0
- package/src/package-managers/package-manager.d.ts +144 -0
- package/src/package-managers/package-manager.js +304 -0
- package/src/package-managers/package-manager.js.map +1 -0
- package/src/package-managers/package-metadata.d.ts +87 -0
- package/src/package-managers/package-metadata.js +10 -0
- package/src/package-managers/package-metadata.js.map +1 -0
- package/src/package-managers/package-tree.d.ts +23 -0
- package/src/package-managers/package-tree.js +10 -0
- package/src/package-managers/package-tree.js.map +1 -0
- package/src/package-managers/parsers.d.ts +92 -0
- package/src/package-managers/parsers.js +234 -0
- package/src/package-managers/parsers.js.map +1 -0
- package/src/package-managers/testing/mock-host.d.ts +26 -0
- package/src/package-managers/testing/mock-host.js +53 -0
- package/src/package-managers/testing/mock-host.js.map +1 -0
- package/src/utilities/color.js +1 -0
- package/src/utilities/color.js.map +1 -0
- package/src/utilities/completion.js +1 -0
- package/src/utilities/completion.js.map +1 -0
- package/src/utilities/config.js +1 -0
- package/src/utilities/config.js.map +1 -0
- package/src/utilities/environment-options.js +1 -0
- package/src/utilities/environment-options.js.map +1 -0
- package/src/utilities/eol.js +1 -0
- package/src/utilities/eol.js.map +1 -0
- package/src/utilities/error.js +1 -0
- package/src/utilities/error.js.map +1 -0
- package/src/utilities/find-up.js +1 -0
- package/src/utilities/find-up.js.map +1 -0
- package/src/utilities/json-file.js +1 -0
- package/src/utilities/json-file.js.map +1 -0
- package/src/utilities/log-file.js +1 -0
- package/src/utilities/log-file.js.map +1 -0
- package/src/utilities/memoize.js +1 -0
- package/src/utilities/memoize.js.map +1 -0
- package/src/utilities/package-manager.d.ts +12 -0
- package/src/utilities/package-manager.js +52 -35
- package/src/utilities/package-manager.js.map +1 -0
- package/src/utilities/package-metadata.js +1 -0
- package/src/utilities/package-metadata.js.map +1 -0
- package/src/utilities/package-tree.js +1 -0
- package/src/utilities/package-tree.js.map +1 -0
- package/src/utilities/project.js +1 -0
- package/src/utilities/project.js.map +1 -0
- package/src/utilities/prompt.js +1 -0
- package/src/utilities/prompt.js.map +1 -0
- package/src/utilities/tty.js +1 -0
- package/src/utilities/tty.js.map +1 -0
- package/src/utilities/version.js +2 -1
- package/src/utilities/version.js.map +1 -0
package/lib/cli/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAeH,4BA+FC;AA5GD,+CAA+C;AAC/C,yCAA6D;AAC7D,6EAA8E;AAC9E,6EAAsE;AACtE,qDAAiE;AACjE,iFAAkE;AAClE,2DAAmE;AAEnE,uDAAsD;AAA7C,kGAAA,OAAO,OAAA;AAEhB,MAAM,kBAAkB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAU,CAAC;AAE7C,+BAA+B;AAChB,KAAK,oBAAW,OAA8B;IAC3D,mG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"S"
|
|
1017
1017
|
},
|
|
1018
|
+
"testRunner": {
|
|
1019
|
+
"description": "The unit testing runner to use.",
|
|
1020
|
+
"type": "string",
|
|
1021
|
+
"enum": [
|
|
1022
|
+
"vitest",
|
|
1023
|
+
"karma"
|
|
1024
|
+
],
|
|
1025
|
+
"default": "vitest"
|
|
1026
|
+
},
|
|
1018
1027
|
"skipPackageJson": {
|
|
1019
1028
|
"type": "boolean",
|
|
1020
1029
|
"default": false,
|
|
@@ -1048,7 +1057,16 @@
|
|
|
1048
1057
|
"zoneless": {
|
|
1049
1058
|
"description": "Generate an application that does not use `zone.js`.",
|
|
1050
1059
|
"type": "boolean",
|
|
1051
|
-
"default":
|
|
1060
|
+
"default": true
|
|
1061
|
+
},
|
|
1062
|
+
"fileNameStyleGuide": {
|
|
1063
|
+
"type": "string",
|
|
1064
|
+
"enum": [
|
|
1065
|
+
"2016",
|
|
1066
|
+
"2025"
|
|
1067
|
+
],
|
|
1068
|
+
"default": "2025",
|
|
1069
|
+
"description": "The file naming convention to use for generated files. The '2025' style guide (default) uses a concise format (e.g., `app.ts` for the root component), while the '2016' style guide includes the type in the file name (e.g., `app.component.ts`). For more information, see the Angular Style Guide (https://angular.dev/style-guide)."
|
|
1052
1070
|
}
|
|
1053
1071
|
}
|
|
1054
1072
|
},
|
|
@@ -1196,6 +1214,11 @@
|
|
|
1196
1214
|
"type": "string",
|
|
1197
1215
|
"description": "Append a custom type to the component's filename. For example, if you set the type to `container`, the file will be named `my-component.container.ts`."
|
|
1198
1216
|
},
|
|
1217
|
+
"addTypeToClassName": {
|
|
1218
|
+
"type": "boolean",
|
|
1219
|
+
"default": true,
|
|
1220
|
+
"description": "When true, the 'type' option will be appended to the generated class name. When false, only the file name will include the type."
|
|
1221
|
+
},
|
|
1199
1222
|
"skipTests": {
|
|
1200
1223
|
"type": "boolean",
|
|
1201
1224
|
"description": "Skip the generation of unit test files `spec.ts`.",
|
|
@@ -1325,6 +1348,11 @@
|
|
|
1325
1348
|
"type": {
|
|
1326
1349
|
"type": "string",
|
|
1327
1350
|
"description": "Append a custom type to the directive's filename. For example, if you set the type to `directive`, the file will be named `example.directive.ts`."
|
|
1351
|
+
},
|
|
1352
|
+
"addTypeToClassName": {
|
|
1353
|
+
"type": "boolean",
|
|
1354
|
+
"default": true,
|
|
1355
|
+
"description": "When true, the 'type' option will be appended to the generated class name. When false, only the file name will include the type."
|
|
1328
1356
|
}
|
|
1329
1357
|
}
|
|
1330
1358
|
},
|
|
@@ -1778,6 +1806,15 @@
|
|
|
1778
1806
|
"default": false,
|
|
1779
1807
|
"alias": "S"
|
|
1780
1808
|
},
|
|
1809
|
+
"testRunner": {
|
|
1810
|
+
"description": "The unit testing runner to use.",
|
|
1811
|
+
"type": "string",
|
|
1812
|
+
"enum": [
|
|
1813
|
+
"vitest",
|
|
1814
|
+
"karma"
|
|
1815
|
+
],
|
|
1816
|
+
"default": "vitest"
|
|
1817
|
+
},
|
|
1781
1818
|
"createApplication": {
|
|
1782
1819
|
"description": "Create a new initial application project in the new workspace. When false, creates an empty workspace with no initial application. You can then use the `ng generate application` command to create applications in the `projects` directory.",
|
|
1783
1820
|
"type": "boolean",
|
|
@@ -1829,9 +1866,19 @@
|
|
|
1829
1866
|
"claude",
|
|
1830
1867
|
"cursor",
|
|
1831
1868
|
"jetbrains",
|
|
1832
|
-
"windsurf"
|
|
1869
|
+
"windsurf",
|
|
1870
|
+
"agents"
|
|
1833
1871
|
]
|
|
1834
1872
|
}
|
|
1873
|
+
},
|
|
1874
|
+
"fileNameStyleGuide": {
|
|
1875
|
+
"type": "string",
|
|
1876
|
+
"enum": [
|
|
1877
|
+
"2016",
|
|
1878
|
+
"2025"
|
|
1879
|
+
],
|
|
1880
|
+
"default": "2025",
|
|
1881
|
+
"description": "The file naming convention to use for generated files. The '2025' style guide (default) uses a concise format (e.g., `app.ts` for the root component), while the '2016' style guide includes the type in the file name (e.g., `app.component.ts`). For more information, see the Angular Style Guide (https://angular.dev/style-guide)."
|
|
1835
1882
|
}
|
|
1836
1883
|
}
|
|
1837
1884
|
},
|
|
@@ -1933,6 +1980,11 @@
|
|
|
1933
1980
|
"type": {
|
|
1934
1981
|
"type": "string",
|
|
1935
1982
|
"description": "Append a custom type to the service's filename. For example, if you set the type to `service`, the file will be named `my-service.service.ts`."
|
|
1983
|
+
},
|
|
1984
|
+
"addTypeToClassName": {
|
|
1985
|
+
"type": "boolean",
|
|
1986
|
+
"default": true,
|
|
1987
|
+
"description": "When true, the 'type' option will be appended to the generated class name. When false, only the file name will include the type."
|
|
1936
1988
|
}
|
|
1937
1989
|
}
|
|
1938
1990
|
},
|
|
@@ -1980,7 +2032,7 @@
|
|
|
1980
2032
|
"properties": {
|
|
1981
2033
|
"assets": {
|
|
1982
2034
|
"type": "array",
|
|
1983
|
-
"description": "
|
|
2035
|
+
"description": "Define the assets to be copied to the output directory. These assets are copied as-is without any further processing or hashing.",
|
|
1984
2036
|
"default": [],
|
|
1985
2037
|
"items": {
|
|
1986
2038
|
"$ref": "#/definitions/AngularBuildBuildersApplicationSchema/definitions/assetPattern"
|
|
@@ -2432,7 +2484,7 @@
|
|
|
2432
2484
|
},
|
|
2433
2485
|
"outputHashing": {
|
|
2434
2486
|
"type": "string",
|
|
2435
|
-
"description": "Define the output filename cache-busting hashing mode.",
|
|
2487
|
+
"description": "Define the output filename cache-busting hashing mode.\n\n- `none`: No hashing.\n- `all`: Hash for all output bundles. \n- `media`: Hash for all output media (e.g., images, fonts, etc. that are referenced in CSS files).\n- `bundles`: Hash for output of lazy and main bundles.",
|
|
2436
2488
|
"default": "none",
|
|
2437
2489
|
"enum": [
|
|
2438
2490
|
"none",
|
|
@@ -2769,7 +2821,7 @@
|
|
|
2769
2821
|
"properties": {
|
|
2770
2822
|
"assets": {
|
|
2771
2823
|
"type": "array",
|
|
2772
|
-
"description": "
|
|
2824
|
+
"description": "Define the assets to be copied to the output directory. These assets are copied as-is without any further processing or hashing.",
|
|
2773
2825
|
"default": [],
|
|
2774
2826
|
"items": {
|
|
2775
2827
|
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersBrowserSchema/definitions/assetPattern"
|
|
@@ -3091,7 +3143,7 @@
|
|
|
3091
3143
|
},
|
|
3092
3144
|
"outputHashing": {
|
|
3093
3145
|
"type": "string",
|
|
3094
|
-
"description": "Define the output filename cache-busting hashing mode.",
|
|
3146
|
+
"description": "Define the output filename cache-busting hashing mode.\n\n- `none`: No hashing.\n- `all`: Hash for all output bundles. \n- `media`: Hash for all output media (e.g., images, fonts, etc. that are referenced in CSS files).\n- `bundles`: Hash for output of lazy and main bundles.",
|
|
3095
3147
|
"default": "none",
|
|
3096
3148
|
"enum": [
|
|
3097
3149
|
"none",
|
|
@@ -3944,6 +3996,13 @@
|
|
|
3944
3996
|
}
|
|
3945
3997
|
]
|
|
3946
3998
|
},
|
|
3999
|
+
"define": {
|
|
4000
|
+
"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.",
|
|
4001
|
+
"type": "object",
|
|
4002
|
+
"additionalProperties": {
|
|
4003
|
+
"type": "string"
|
|
4004
|
+
}
|
|
4005
|
+
},
|
|
3947
4006
|
"headers": {
|
|
3948
4007
|
"type": "object",
|
|
3949
4008
|
"description": "Custom HTTP headers to be added to all responses.",
|
|
@@ -4271,76 +4330,114 @@
|
|
|
4271
4330
|
"properties": {
|
|
4272
4331
|
"buildTarget": {
|
|
4273
4332
|
"type": "string",
|
|
4274
|
-
"description": "
|
|
4333
|
+
"description": "Specifies the build target to use for the unit test build in the format `project:target[:configuration]`. This defaults to the `build` target of the current project with the `development` configuration. You can also pass a comma-separated list of configurations. Example: `project:target:production,staging`.",
|
|
4275
4334
|
"pattern": "^[^:\\s]*:[^:\\s]*(:[^\\s]+)?$"
|
|
4276
4335
|
},
|
|
4277
4336
|
"tsConfig": {
|
|
4278
4337
|
"type": "string",
|
|
4279
|
-
"description": "The
|
|
4338
|
+
"description": "The path to the TypeScript configuration file, relative to the workspace root. Defaults to `tsconfig.spec.json` in the project root if it exists. If not specified and the default does not exist, the `tsConfig` from the specified `buildTarget` will be used."
|
|
4280
4339
|
},
|
|
4281
4340
|
"runner": {
|
|
4282
4341
|
"type": "string",
|
|
4283
|
-
"description": "
|
|
4342
|
+
"description": "Specifies the test runner to use for test execution.",
|
|
4343
|
+
"default": "vitest",
|
|
4284
4344
|
"enum": [
|
|
4285
4345
|
"karma",
|
|
4286
4346
|
"vitest"
|
|
4287
4347
|
]
|
|
4288
4348
|
},
|
|
4349
|
+
"runnerConfig": {
|
|
4350
|
+
"type": [
|
|
4351
|
+
"boolean",
|
|
4352
|
+
"string"
|
|
4353
|
+
],
|
|
4354
|
+
"description": "Specifies the configuration file for the selected test runner. If a string is provided, it will be used as the path to the configuration file. If `true`, the builder will search for a default configuration file (e.g., `vitest.config.ts` or `karma.conf.js`). If `false`, no external configuration file will be used.\\nFor Vitest, this enables advanced options and the use of custom plugins. Please note that while the file is loaded, the Angular team does not provide direct support for its specific contents or any third-party plugins used within it.",
|
|
4355
|
+
"default": false
|
|
4356
|
+
},
|
|
4289
4357
|
"browsers": {
|
|
4290
|
-
"description": "
|
|
4358
|
+
"description": "Specifies the browsers to use for test execution. When not specified, tests are run in a Node.js environment using jsdom. For both Vitest and Karma, browser names ending with 'Headless' (e.g., 'ChromeHeadless') will enable headless mode.",
|
|
4291
4359
|
"type": "array",
|
|
4292
4360
|
"items": {
|
|
4293
4361
|
"type": "string"
|
|
4294
4362
|
},
|
|
4295
4363
|
"minItems": 1
|
|
4296
4364
|
},
|
|
4365
|
+
"browserViewport": {
|
|
4366
|
+
"description": "Specifies the browser viewport dimensions for browser-based tests in the format `widthxheight`.",
|
|
4367
|
+
"type": "string",
|
|
4368
|
+
"pattern": "^\\d+x\\d+$"
|
|
4369
|
+
},
|
|
4297
4370
|
"include": {
|
|
4298
4371
|
"type": "array",
|
|
4299
4372
|
"items": {
|
|
4300
4373
|
"type": "string"
|
|
4301
4374
|
},
|
|
4302
4375
|
"default": [
|
|
4303
|
-
"**/*.spec.ts"
|
|
4376
|
+
"**/*.spec.ts",
|
|
4377
|
+
"**/*.test.ts"
|
|
4304
4378
|
],
|
|
4305
|
-
"description": "
|
|
4379
|
+
"description": "Specifies glob patterns of files to include for testing, relative to the project root. This option also has special handling for directory paths (includes all test files within) and file paths (includes the corresponding test file if one exists)."
|
|
4306
4380
|
},
|
|
4307
4381
|
"exclude": {
|
|
4308
4382
|
"type": "array",
|
|
4309
4383
|
"items": {
|
|
4310
4384
|
"type": "string"
|
|
4311
4385
|
},
|
|
4312
|
-
"
|
|
4313
|
-
|
|
4386
|
+
"description": "Specifies glob patterns of files to exclude from testing, relative to the project root."
|
|
4387
|
+
},
|
|
4388
|
+
"filter": {
|
|
4389
|
+
"type": "string",
|
|
4390
|
+
"description": "Specifies a regular expression pattern to match against test suite and test names. Only tests with a name matching the pattern will be executed. For example, `^App` will run only tests in suites beginning with 'App'."
|
|
4314
4391
|
},
|
|
4315
4392
|
"watch": {
|
|
4316
4393
|
"type": "boolean",
|
|
4317
|
-
"description": "
|
|
4394
|
+
"description": "Enables watch mode, which re-runs tests when source files change. Defaults to `true` in TTY environments and `false` otherwise."
|
|
4318
4395
|
},
|
|
4319
4396
|
"debug": {
|
|
4320
4397
|
"type": "boolean",
|
|
4321
|
-
"description": "
|
|
4398
|
+
"description": "Enables debugging mode for tests, allowing the use of the Node Inspector.",
|
|
4322
4399
|
"default": false
|
|
4323
4400
|
},
|
|
4324
|
-
"
|
|
4401
|
+
"ui": {
|
|
4325
4402
|
"type": "boolean",
|
|
4326
|
-
"description": "
|
|
4403
|
+
"description": "Enables the Vitest UI for interactive test execution. This option is only available for the Vitest runner.",
|
|
4327
4404
|
"default": false
|
|
4328
4405
|
},
|
|
4329
|
-
"
|
|
4406
|
+
"coverage": {
|
|
4407
|
+
"type": "boolean",
|
|
4408
|
+
"description": "Enables coverage reporting for tests.",
|
|
4409
|
+
"default": false
|
|
4410
|
+
},
|
|
4411
|
+
"coverageInclude": {
|
|
4330
4412
|
"type": "array",
|
|
4331
|
-
"description": "
|
|
4413
|
+
"description": "Specifies glob patterns of files to include in the coverage report.",
|
|
4332
4414
|
"items": {
|
|
4333
4415
|
"type": "string"
|
|
4334
|
-
}
|
|
4335
|
-
|
|
4416
|
+
}
|
|
4417
|
+
},
|
|
4418
|
+
"coverageExclude": {
|
|
4419
|
+
"type": "array",
|
|
4420
|
+
"description": "Specifies glob patterns of files to exclude from the coverage report.",
|
|
4421
|
+
"items": {
|
|
4422
|
+
"type": "string"
|
|
4423
|
+
}
|
|
4336
4424
|
},
|
|
4337
|
-
"
|
|
4425
|
+
"coverageReporters": {
|
|
4338
4426
|
"type": "array",
|
|
4339
|
-
"description": "
|
|
4427
|
+
"description": "Specifies the reporters to use for coverage results. Each reporter can be a string representing its name, or a tuple containing the name and an options object. Built-in reporters include 'html', 'lcov', 'lcovonly', 'text', 'text-summary', 'cobertura', 'json', and 'json-summary'.",
|
|
4340
4428
|
"items": {
|
|
4341
4429
|
"oneOf": [
|
|
4342
4430
|
{
|
|
4343
|
-
"
|
|
4431
|
+
"enum": [
|
|
4432
|
+
"html",
|
|
4433
|
+
"lcov",
|
|
4434
|
+
"lcovonly",
|
|
4435
|
+
"text",
|
|
4436
|
+
"text-summary",
|
|
4437
|
+
"cobertura",
|
|
4438
|
+
"json",
|
|
4439
|
+
"json-summary"
|
|
4440
|
+
]
|
|
4344
4441
|
},
|
|
4345
4442
|
{
|
|
4346
4443
|
"type": "array",
|
|
@@ -4348,7 +4445,16 @@
|
|
|
4348
4445
|
"maxItems": 2,
|
|
4349
4446
|
"items": [
|
|
4350
4447
|
{
|
|
4351
|
-
"
|
|
4448
|
+
"enum": [
|
|
4449
|
+
"html",
|
|
4450
|
+
"lcov",
|
|
4451
|
+
"lcovonly",
|
|
4452
|
+
"text",
|
|
4453
|
+
"text-summary",
|
|
4454
|
+
"cobertura",
|
|
4455
|
+
"json",
|
|
4456
|
+
"json-summary"
|
|
4457
|
+
]
|
|
4352
4458
|
},
|
|
4353
4459
|
{
|
|
4354
4460
|
"type": "object"
|
|
@@ -4358,16 +4464,139 @@
|
|
|
4358
4464
|
]
|
|
4359
4465
|
}
|
|
4360
4466
|
},
|
|
4467
|
+
"coverageThresholds": {
|
|
4468
|
+
"type": "object",
|
|
4469
|
+
"description": "Specifies minimum coverage thresholds that must be met. If thresholds are not met, the builder will exit with an error.",
|
|
4470
|
+
"properties": {
|
|
4471
|
+
"perFile": {
|
|
4472
|
+
"type": "boolean",
|
|
4473
|
+
"description": "When true, thresholds are enforced for each file individually."
|
|
4474
|
+
},
|
|
4475
|
+
"statements": {
|
|
4476
|
+
"type": "number",
|
|
4477
|
+
"description": "Minimum percentage of statements covered."
|
|
4478
|
+
},
|
|
4479
|
+
"branches": {
|
|
4480
|
+
"type": "number",
|
|
4481
|
+
"description": "Minimum percentage of branches covered."
|
|
4482
|
+
},
|
|
4483
|
+
"functions": {
|
|
4484
|
+
"type": "number",
|
|
4485
|
+
"description": "Minimum percentage of functions covered."
|
|
4486
|
+
},
|
|
4487
|
+
"lines": {
|
|
4488
|
+
"type": "number",
|
|
4489
|
+
"description": "Minimum percentage of lines covered."
|
|
4490
|
+
}
|
|
4491
|
+
},
|
|
4492
|
+
"additionalProperties": false
|
|
4493
|
+
},
|
|
4494
|
+
"coverageWatermarks": {
|
|
4495
|
+
"type": "object",
|
|
4496
|
+
"description": "Specifies coverage watermarks for the HTML reporter. These determine the color coding for high, medium, and low coverage.",
|
|
4497
|
+
"properties": {
|
|
4498
|
+
"statements": {
|
|
4499
|
+
"type": "array",
|
|
4500
|
+
"description": "The high and low watermarks for statements coverage. `[low, high]`",
|
|
4501
|
+
"items": {
|
|
4502
|
+
"type": "number"
|
|
4503
|
+
},
|
|
4504
|
+
"minItems": 2,
|
|
4505
|
+
"maxItems": 2
|
|
4506
|
+
},
|
|
4507
|
+
"branches": {
|
|
4508
|
+
"type": "array",
|
|
4509
|
+
"description": "The high and low watermarks for branches coverage. `[low, high]`",
|
|
4510
|
+
"items": {
|
|
4511
|
+
"type": "number"
|
|
4512
|
+
},
|
|
4513
|
+
"minItems": 2,
|
|
4514
|
+
"maxItems": 2
|
|
4515
|
+
},
|
|
4516
|
+
"functions": {
|
|
4517
|
+
"type": "array",
|
|
4518
|
+
"description": "The high and low watermarks for functions coverage. `[low, high]`",
|
|
4519
|
+
"items": {
|
|
4520
|
+
"type": "number"
|
|
4521
|
+
},
|
|
4522
|
+
"minItems": 2,
|
|
4523
|
+
"maxItems": 2
|
|
4524
|
+
},
|
|
4525
|
+
"lines": {
|
|
4526
|
+
"type": "array",
|
|
4527
|
+
"description": "The high and low watermarks for lines coverage. `[low, high]`",
|
|
4528
|
+
"items": {
|
|
4529
|
+
"type": "number"
|
|
4530
|
+
},
|
|
4531
|
+
"minItems": 2,
|
|
4532
|
+
"maxItems": 2
|
|
4533
|
+
}
|
|
4534
|
+
},
|
|
4535
|
+
"additionalProperties": false
|
|
4536
|
+
},
|
|
4361
4537
|
"reporters": {
|
|
4362
4538
|
"type": "array",
|
|
4363
|
-
"description": "
|
|
4539
|
+
"description": "Specifies the reporters to use during test execution. Each reporter can be a string representing its name, or a tuple containing the name and an options object. Built-in reporters include 'default', 'verbose', 'dots', 'json', 'junit', 'tap', 'tap-flat', and 'html'. You can also provide a path to a custom reporter.",
|
|
4364
4540
|
"items": {
|
|
4365
|
-
"
|
|
4541
|
+
"oneOf": [
|
|
4542
|
+
{
|
|
4543
|
+
"anyOf": [
|
|
4544
|
+
{
|
|
4545
|
+
"type": "string"
|
|
4546
|
+
},
|
|
4547
|
+
{
|
|
4548
|
+
"enum": [
|
|
4549
|
+
"default",
|
|
4550
|
+
"verbose",
|
|
4551
|
+
"dots",
|
|
4552
|
+
"json",
|
|
4553
|
+
"junit",
|
|
4554
|
+
"tap",
|
|
4555
|
+
"tap-flat",
|
|
4556
|
+
"html"
|
|
4557
|
+
]
|
|
4558
|
+
}
|
|
4559
|
+
]
|
|
4560
|
+
},
|
|
4561
|
+
{
|
|
4562
|
+
"type": "array",
|
|
4563
|
+
"minItems": 1,
|
|
4564
|
+
"maxItems": 2,
|
|
4565
|
+
"items": [
|
|
4566
|
+
{
|
|
4567
|
+
"anyOf": [
|
|
4568
|
+
{
|
|
4569
|
+
"type": "string"
|
|
4570
|
+
},
|
|
4571
|
+
{
|
|
4572
|
+
"enum": [
|
|
4573
|
+
"default",
|
|
4574
|
+
"verbose",
|
|
4575
|
+
"dots",
|
|
4576
|
+
"json",
|
|
4577
|
+
"junit",
|
|
4578
|
+
"tap",
|
|
4579
|
+
"tap-flat",
|
|
4580
|
+
"html"
|
|
4581
|
+
]
|
|
4582
|
+
}
|
|
4583
|
+
]
|
|
4584
|
+
},
|
|
4585
|
+
{
|
|
4586
|
+
"type": "object"
|
|
4587
|
+
}
|
|
4588
|
+
]
|
|
4589
|
+
}
|
|
4590
|
+
]
|
|
4366
4591
|
}
|
|
4367
4592
|
},
|
|
4593
|
+
"outputFile": {
|
|
4594
|
+
"type": "string",
|
|
4595
|
+
"description": "Specifies a file path for the test report, applying only to the first reporter. To configure output files for multiple reporters, use the tuple format `['reporter-name', { outputFile: '...' }]` within the `reporters` option. When not provided, output is written to the console."
|
|
4596
|
+
},
|
|
4368
4597
|
"providersFile": {
|
|
4369
4598
|
"type": "string",
|
|
4370
|
-
"description": "TypeScript file that
|
|
4599
|
+
"description": "Specifies the path to a TypeScript file that provides an array of Angular providers for the test environment. The file must contain a default export of the provider array.",
|
|
4371
4600
|
"minLength": 1
|
|
4372
4601
|
},
|
|
4373
4602
|
"setupFiles": {
|
|
@@ -4375,28 +4604,25 @@
|
|
|
4375
4604
|
"items": {
|
|
4376
4605
|
"type": "string"
|
|
4377
4606
|
},
|
|
4378
|
-
"description": "A list of global setup
|
|
4607
|
+
"description": "A list of paths to global setup files that are executed before the test files. The application's polyfills and the Angular TestBed are always initialized before these files."
|
|
4379
4608
|
},
|
|
4380
4609
|
"progress": {
|
|
4381
4610
|
"type": "boolean",
|
|
4382
|
-
"description": "
|
|
4611
|
+
"description": "Shows build progress information in the console. Defaults to the `progress` setting of the specified `buildTarget`."
|
|
4612
|
+
},
|
|
4613
|
+
"listTests": {
|
|
4614
|
+
"type": "boolean",
|
|
4615
|
+
"description": "Lists all discovered test files and exits the process without building or executing the tests.",
|
|
4616
|
+
"default": false
|
|
4617
|
+
},
|
|
4618
|
+
"dumpVirtualFiles": {
|
|
4619
|
+
"type": "boolean",
|
|
4620
|
+
"description": "Dumps build output files to the `.angular/cache` directory for debugging purposes.",
|
|
4621
|
+
"default": false,
|
|
4622
|
+
"visible": false
|
|
4383
4623
|
}
|
|
4384
4624
|
},
|
|
4385
|
-
"additionalProperties": false
|
|
4386
|
-
"definitions": {
|
|
4387
|
-
"coverage-reporters": {
|
|
4388
|
-
"enum": [
|
|
4389
|
-
"html",
|
|
4390
|
-
"lcov",
|
|
4391
|
-
"lcovonly",
|
|
4392
|
-
"text",
|
|
4393
|
-
"text-summary",
|
|
4394
|
-
"cobertura",
|
|
4395
|
-
"json",
|
|
4396
|
-
"json-summary"
|
|
4397
|
-
]
|
|
4398
|
-
}
|
|
4399
|
-
}
|
|
4625
|
+
"additionalProperties": false
|
|
4400
4626
|
},
|
|
4401
4627
|
"AngularBuildBuildersKarmaSchema": {
|
|
4402
4628
|
"title": "Karma Target",
|
|
@@ -105,6 +105,13 @@ export type SchematicOptions = {
|
|
|
105
105
|
* routing, styling, and testing.
|
|
106
106
|
*/
|
|
107
107
|
export type AngularApplicationOptionsSchema = {
|
|
108
|
+
/**
|
|
109
|
+
* The file naming convention to use for generated files. The '2025' style guide (default)
|
|
110
|
+
* uses a concise format (e.g., `app.ts` for the root component), while the '2016' style
|
|
111
|
+
* guide includes the type in the file name (e.g., `app.component.ts`). For more
|
|
112
|
+
* information, see the Angular Style Guide (https://angular.dev/style-guide).
|
|
113
|
+
*/
|
|
114
|
+
fileNameStyleGuide?: FileNameStyleGuide;
|
|
108
115
|
/**
|
|
109
116
|
* Include the styles for the root component directly within the `app.component.ts` file.
|
|
110
117
|
* Only CSS styles can be included inline. By default, a separate stylesheet file (e.g.,
|
|
@@ -176,6 +183,10 @@ export type AngularApplicationOptionsSchema = {
|
|
|
176
183
|
* The type of stylesheet files to be created for components in the application.
|
|
177
184
|
*/
|
|
178
185
|
style?: SchematicsAngularApplicationStyle;
|
|
186
|
+
/**
|
|
187
|
+
* The unit testing runner to use.
|
|
188
|
+
*/
|
|
189
|
+
testRunner?: TestRunner;
|
|
179
190
|
/**
|
|
180
191
|
* Sets the view encapsulation mode for the application's components. This determines how
|
|
181
192
|
* component styles are scoped and applied.
|
|
@@ -186,6 +197,16 @@ export type AngularApplicationOptionsSchema = {
|
|
|
186
197
|
*/
|
|
187
198
|
zoneless?: boolean;
|
|
188
199
|
};
|
|
200
|
+
/**
|
|
201
|
+
* The file naming convention to use for generated files. The '2025' style guide (default)
|
|
202
|
+
* uses a concise format (e.g., `app.ts` for the root component), while the '2016' style
|
|
203
|
+
* guide includes the type in the file name (e.g., `app.component.ts`). For more
|
|
204
|
+
* information, see the Angular Style Guide (https://angular.dev/style-guide).
|
|
205
|
+
*/
|
|
206
|
+
export declare enum FileNameStyleGuide {
|
|
207
|
+
The2016 = "2016",
|
|
208
|
+
The2025 = "2025"
|
|
209
|
+
}
|
|
189
210
|
/**
|
|
190
211
|
* The type of stylesheet files to be created for components in the application.
|
|
191
212
|
*
|
|
@@ -198,6 +219,13 @@ export declare enum SchematicsAngularApplicationStyle {
|
|
|
198
219
|
Scss = "scss",
|
|
199
220
|
Tailwind = "tailwind"
|
|
200
221
|
}
|
|
222
|
+
/**
|
|
223
|
+
* The unit testing runner to use.
|
|
224
|
+
*/
|
|
225
|
+
export declare enum TestRunner {
|
|
226
|
+
Karma = "karma",
|
|
227
|
+
Vitest = "vitest"
|
|
228
|
+
}
|
|
201
229
|
/**
|
|
202
230
|
* Sets the view encapsulation mode for the application's components. This determines how
|
|
203
231
|
* component styles are scoped and applied.
|
|
@@ -253,6 +281,11 @@ export type AngularClassOptionsSchema = {
|
|
|
253
281
|
* optional CSS stylesheet. Use this schematic to generate a new component in your project.
|
|
254
282
|
*/
|
|
255
283
|
export type AngularComponentOptionsSchema = {
|
|
284
|
+
/**
|
|
285
|
+
* When true, the 'type' option will be appended to the generated class name. When false,
|
|
286
|
+
* only the file name will include the type.
|
|
287
|
+
*/
|
|
288
|
+
addTypeToClassName?: boolean;
|
|
256
289
|
/**
|
|
257
290
|
* Configures the change detection strategy for the component.
|
|
258
291
|
*/
|
|
@@ -381,6 +414,11 @@ export declare enum SchematicsAngularComponentStyle {
|
|
|
381
414
|
* and boilerplate code for a new directive.
|
|
382
415
|
*/
|
|
383
416
|
export type AngularDirectiveOptionsSchema = {
|
|
417
|
+
/**
|
|
418
|
+
* When true, the 'type' option will be appended to the generated class name. When false,
|
|
419
|
+
* only the file name will include the type.
|
|
420
|
+
*/
|
|
421
|
+
addTypeToClassName?: boolean;
|
|
384
422
|
/**
|
|
385
423
|
* Automatically export the directive from the specified NgModule, making it accessible to
|
|
386
424
|
* other modules in the application.
|
|
@@ -692,6 +730,13 @@ export type AngularNgNewOptionsSchema = {
|
|
|
692
730
|
* the workspace will be created in the current directory.
|
|
693
731
|
*/
|
|
694
732
|
directory?: string;
|
|
733
|
+
/**
|
|
734
|
+
* The file naming convention to use for generated files. The '2025' style guide (default)
|
|
735
|
+
* uses a concise format (e.g., `app.ts` for the root component), while the '2016' style
|
|
736
|
+
* guide includes the type in the file name (e.g., `app.component.ts`). For more
|
|
737
|
+
* information, see the Angular Style Guide (https://angular.dev/style-guide).
|
|
738
|
+
*/
|
|
739
|
+
fileNameStyleGuide?: FileNameStyleGuide;
|
|
695
740
|
/**
|
|
696
741
|
* Include the styles for the initial application's root component directly within the
|
|
697
742
|
* `app.component.ts` file. By default, a separate stylesheet file (e.g.,
|
|
@@ -767,6 +812,10 @@ export type AngularNgNewOptionsSchema = {
|
|
|
767
812
|
* The type of stylesheet files to be created for components in the initial project.
|
|
768
813
|
*/
|
|
769
814
|
style?: SchematicsAngularApplicationStyle;
|
|
815
|
+
/**
|
|
816
|
+
* The unit testing runner to use.
|
|
817
|
+
*/
|
|
818
|
+
testRunner?: TestRunner;
|
|
770
819
|
/**
|
|
771
820
|
* The version of the Angular CLI to use.
|
|
772
821
|
*/
|
|
@@ -784,6 +833,7 @@ export type AngularNgNewOptionsSchema = {
|
|
|
784
833
|
zoneless?: boolean;
|
|
785
834
|
};
|
|
786
835
|
export declare enum AiConfig {
|
|
836
|
+
Agents = "agents",
|
|
787
837
|
Claude = "claude",
|
|
788
838
|
Copilot = "copilot",
|
|
789
839
|
Cursor = "cursor",
|
|
@@ -907,6 +957,11 @@ export type AngularResolverOptionsSchema = {
|
|
|
907
957
|
* process of generating a new service with the necessary files and boilerplate code.
|
|
908
958
|
*/
|
|
909
959
|
export type AngularServiceOptionsSchema = {
|
|
960
|
+
/**
|
|
961
|
+
* When true, the 'type' option will be appended to the generated class name. When false,
|
|
962
|
+
* only the file name will include the type.
|
|
963
|
+
*/
|
|
964
|
+
addTypeToClassName?: boolean;
|
|
910
965
|
/**
|
|
911
966
|
* Creates files at the top level of the project or the given path. If set to false, a new
|
|
912
967
|
* folder with the service's name will be created to contain the files.
|