@angular/cli 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/bin/ng.js +8 -5
- package/lib/cli/index.js +3 -5
- package/lib/cli/index.js.map +1 -1
- package/lib/code-examples.db +0 -0
- package/lib/config/schema.json +8 -395
- package/lib/config/workspace-schema.d.ts +10 -8
- package/lib/config/workspace-schema.js +1 -1
- package/lib/config/workspace-schema.js.map +1 -1
- package/package.json +21 -21
- package/src/commands/add/cli.d.ts +2 -0
- package/src/commands/add/cli.js +50 -22
- package/src/commands/add/cli.js.map +1 -1
- package/src/commands/mcp/tools/build.js +1 -1
- package/src/commands/mcp/tools/build.js.map +1 -1
- package/src/commands/mcp/tools/e2e.js +1 -1
- package/src/commands/mcp/tools/e2e.js.map +1 -1
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.js +3 -6
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.js.map +1 -1
- package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.js +4 -4
- package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js +2 -3
- package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js.map +1 -1
- package/src/commands/mcp/tools/test.js +1 -1
- package/src/commands/mcp/tools/test.js.map +1 -1
- package/src/commands/mcp/workspace-utils.js +2 -2
- package/src/commands/mcp/workspace-utils.js.map +1 -1
- package/src/commands/update/cli.js +3 -4
- package/src/commands/update/cli.js.map +1 -1
- package/src/commands/update/long-description.md +3 -3
- package/src/commands/update/schematic/index.js +3 -2
- package/src/commands/update/schematic/index.js.map +1 -1
- package/src/commands/version/version-info.js +2 -8
- package/src/commands/version/version-info.js.map +1 -1
- package/src/utilities/completion.js +1 -1
- package/src/utilities/completion.js.map +1 -1
- package/src/utilities/config.js +1 -2
- package/src/utilities/config.js.map +1 -1
- package/src/utilities/node-version.d.ts +21 -0
- package/src/utilities/node-version.js +65 -0
- package/src/utilities/node-version.js.map +1 -0
- package/src/utilities/prompt.js +1 -1
- package/src/utilities/prompt.js.map +1 -1
- package/src/utilities/version.js +1 -1
package/bin/ng.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
'use strict';
|
|
13
13
|
|
|
14
14
|
const path = require('path');
|
|
15
|
+
const nodeUtils = require('../src/utilities/node-version');
|
|
15
16
|
|
|
16
17
|
// Error if the external CLI appears to be used inside a google3 context.
|
|
17
18
|
if (process.cwd().split(path.sep).includes('google3')) {
|
|
@@ -42,10 +43,10 @@ if (rawCommandName === '--get-yargs-completions' || rawCommandName === 'completi
|
|
|
42
43
|
// This node version check ensures that extremely old versions of node are not used.
|
|
43
44
|
// These may not support ES2015 features such as const/let/async/await/etc.
|
|
44
45
|
// These would then crash with a hard to diagnose error message.
|
|
45
|
-
const [major
|
|
46
|
+
const [major] = process.versions.node.split('.', 1).map((part) => Number(part));
|
|
46
47
|
|
|
47
48
|
if (major % 2 === 1) {
|
|
48
|
-
// Allow new odd numbered releases with a warning
|
|
49
|
+
// Allow new odd numbered releases with a warning.
|
|
49
50
|
console.warn(
|
|
50
51
|
'Node.js version ' +
|
|
51
52
|
process.version +
|
|
@@ -55,13 +56,15 @@ if (major % 2 === 1) {
|
|
|
55
56
|
);
|
|
56
57
|
|
|
57
58
|
require('./bootstrap');
|
|
58
|
-
} else if (
|
|
59
|
-
// Error and exit if less than
|
|
59
|
+
} else if (!nodeUtils.isNodeVersionSupported()) {
|
|
60
|
+
// Error and exit if less than 22.22 or 24.13.1
|
|
60
61
|
console.error(
|
|
61
62
|
'Node.js version ' +
|
|
62
63
|
process.version +
|
|
63
64
|
' detected.\n' +
|
|
64
|
-
'The Angular CLI requires a minimum Node.js version of
|
|
65
|
+
'The Angular CLI requires a minimum Node.js version of ' +
|
|
66
|
+
nodeUtils.supportedNodeVersions.map((v) => 'v' + v).join(' or ') +
|
|
67
|
+
'.\n\n' +
|
|
65
68
|
'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n',
|
|
66
69
|
);
|
|
67
70
|
|
package/lib/cli/index.js
CHANGED
|
@@ -16,17 +16,15 @@ const command_runner_1 = require("../../src/command-builder/command-runner");
|
|
|
16
16
|
const color_1 = require("../../src/utilities/color");
|
|
17
17
|
const environment_options_1 = require("../../src/utilities/environment-options");
|
|
18
18
|
const log_file_1 = require("../../src/utilities/log-file");
|
|
19
|
+
const node_version_1 = require("../../src/utilities/node-version");
|
|
19
20
|
var version_1 = require("../../src/utilities/version");
|
|
20
21
|
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } });
|
|
21
|
-
const MIN_NODEJS_VERSION = [20, 19];
|
|
22
22
|
/* eslint-disable no-console */
|
|
23
23
|
async function default_1(options) {
|
|
24
24
|
// This node version check ensures that the requirements of the project instance of the CLI are met
|
|
25
|
-
|
|
26
|
-
if (major < MIN_NODEJS_VERSION[0] ||
|
|
27
|
-
(major === MIN_NODEJS_VERSION[0] && minor < MIN_NODEJS_VERSION[1])) {
|
|
25
|
+
if (!(0, node_version_1.isNodeVersionMinSupported)()) {
|
|
28
26
|
process.stderr.write(`Node.js version ${process.version} detected.\n` +
|
|
29
|
-
`The Angular CLI requires a minimum of v${
|
|
27
|
+
`The Angular CLI requires a minimum of v${node_version_1.supportedNodeVersions[0]}.\n\n` +
|
|
30
28
|
'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n');
|
|
31
29
|
return 3;
|
|
32
30
|
}
|
package/lib/cli/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAcH,4BA4FC;AAxGD,+CAA+C;AAC/C,yCAA6D;AAC7D,6EAA8E;AAC9E,6EAAsE;AACtE,qDAAiE;AACjE,iFAA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CAAC;YAChC,IAAI,CAAC;gBACH,MAAM,OAAO,GAAG,IAAA,8BAAmB,EAAC,GAAG,CAAC,CAAC;gBACzC,MAAM,CAAC,KAAK,CACV,oCAAoC,GAAG,CAAC,OAAO,IAAI;oBACjD,QAAQ,OAAO,wBAAwB,CAC1C,CAAC;YACJ,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,CAAC,KAAK,CACV,oCAAoC,GAAG,CAAC,OAAO,IAAI;oBACjD,uCAAuC,CAAC,EAAE,CAC7C,CAAC;gBACF,IAAI,GAAG,CAAC,KAAK,EAAE,CAAC;oBACd,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;gBAC1B,CAAC;YACH,CAAC;YAED,OAAO,GAAG,CAAC;QACb,CAAC;aAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;YACnC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACpB,CAAC;aAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;YACnC,eAAe;QACjB,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,KAAK,CAAC,iCAAiC,GAAG,EAAE,CAAC,CAAC;QACvD,CAAC;QAED,OAAO,CAAC,CAAC;IACX,CAAC;YAAS,CAAC;QACT,MAAM,CAAC,QAAQ,EAAE,CAAC;QAClB,MAAM,cAAc,CAAC;IACvB,CAAC;AACH,CAAC"}
|
package/lib/code-examples.db
CHANGED
|
Binary file
|
package/lib/config/schema.json
CHANGED
|
@@ -478,8 +478,6 @@
|
|
|
478
478
|
"@angular-devkit/build-angular:karma",
|
|
479
479
|
"@angular-devkit/build-angular:ng-packagr",
|
|
480
480
|
"@angular-devkit/build-angular:prerender",
|
|
481
|
-
"@angular-devkit/build-angular:jest",
|
|
482
|
-
"@angular-devkit/build-angular:web-test-runner",
|
|
483
481
|
"@angular-devkit/build-angular:server",
|
|
484
482
|
"@angular-devkit/build-angular:ssr-dev-server"
|
|
485
483
|
]
|
|
@@ -769,50 +767,6 @@
|
|
|
769
767
|
}
|
|
770
768
|
}
|
|
771
769
|
},
|
|
772
|
-
{
|
|
773
|
-
"type": "object",
|
|
774
|
-
"additionalProperties": false,
|
|
775
|
-
"properties": {
|
|
776
|
-
"builder": {
|
|
777
|
-
"const": "@angular-devkit/build-angular:jest"
|
|
778
|
-
},
|
|
779
|
-
"defaultConfiguration": {
|
|
780
|
-
"type": "string",
|
|
781
|
-
"description": "A default named configuration to use when a target configuration is not provided."
|
|
782
|
-
},
|
|
783
|
-
"options": {
|
|
784
|
-
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersJestSchema"
|
|
785
|
-
},
|
|
786
|
-
"configurations": {
|
|
787
|
-
"type": "object",
|
|
788
|
-
"additionalProperties": {
|
|
789
|
-
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersJestSchema"
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
"type": "object",
|
|
796
|
-
"additionalProperties": false,
|
|
797
|
-
"properties": {
|
|
798
|
-
"builder": {
|
|
799
|
-
"const": "@angular-devkit/build-angular:web-test-runner"
|
|
800
|
-
},
|
|
801
|
-
"defaultConfiguration": {
|
|
802
|
-
"type": "string",
|
|
803
|
-
"description": "A default named configuration to use when a target configuration is not provided."
|
|
804
|
-
},
|
|
805
|
-
"options": {
|
|
806
|
-
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersWebTestRunnerSchema"
|
|
807
|
-
},
|
|
808
|
-
"configurations": {
|
|
809
|
-
"type": "object",
|
|
810
|
-
"additionalProperties": {
|
|
811
|
-
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersWebTestRunnerSchema"
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
},
|
|
816
770
|
{
|
|
817
771
|
"type": "object",
|
|
818
772
|
"additionalProperties": false,
|
|
@@ -967,12 +921,12 @@
|
|
|
967
921
|
}
|
|
968
922
|
},
|
|
969
923
|
"inlineStyle": {
|
|
970
|
-
"description": "Include the styles for the root component directly within the `app.ts` file. Only CSS styles can be included inline. By default, a separate stylesheet file (e.g., `app.css`) is created.",
|
|
924
|
+
"description": "Include the styles for the root component directly within the `app.component.ts` file. Only CSS styles can be included inline. By default, a separate stylesheet file (e.g., `app.component.css`) is created.",
|
|
971
925
|
"type": "boolean",
|
|
972
926
|
"alias": "s"
|
|
973
927
|
},
|
|
974
928
|
"inlineTemplate": {
|
|
975
|
-
"description": "Include the HTML template for the root component directly within the `app.ts` file. By default, a separate template file (e.g., `app.html`) is created.",
|
|
929
|
+
"description": "Include the HTML template for the root component directly within the `app.component.ts` file. By default, a separate template file (e.g., `app.component.html`) is created.",
|
|
976
930
|
"type": "boolean",
|
|
977
931
|
"alias": "t"
|
|
978
932
|
},
|
|
@@ -1177,11 +1131,11 @@
|
|
|
1177
1131
|
"changeDetection": {
|
|
1178
1132
|
"description": "Configures the change detection strategy for the component.",
|
|
1179
1133
|
"enum": [
|
|
1180
|
-
"
|
|
1134
|
+
"Eager",
|
|
1181
1135
|
"OnPush"
|
|
1182
1136
|
],
|
|
1183
1137
|
"type": "string",
|
|
1184
|
-
"default": "
|
|
1138
|
+
"default": "Eager",
|
|
1185
1139
|
"alias": "c"
|
|
1186
1140
|
},
|
|
1187
1141
|
"prefix": {
|
|
@@ -1760,12 +1714,12 @@
|
|
|
1760
1714
|
"default": "projects"
|
|
1761
1715
|
},
|
|
1762
1716
|
"inlineStyle": {
|
|
1763
|
-
"description": "Include the styles for the initial application's root component directly within the `app.ts` file. By default, a separate stylesheet file (e.g., `app.css`) is created.",
|
|
1717
|
+
"description": "Include the styles for the initial application's root component directly within the `app.component.ts` file. By default, a separate stylesheet file (e.g., `app.component.css`) is created.",
|
|
1764
1718
|
"type": "boolean",
|
|
1765
1719
|
"alias": "s"
|
|
1766
1720
|
},
|
|
1767
1721
|
"inlineTemplate": {
|
|
1768
|
-
"description": "Include the HTML template for the initial application's root component directly within the `app.ts` file. By default, a separate template file (e.g., `app.html`) is created.",
|
|
1722
|
+
"description": "Include the HTML template for the initial application's root component directly within the `app.component.ts` file. By default, a separate template file (e.g., `app.component.html`) is created.",
|
|
1769
1723
|
"type": "boolean",
|
|
1770
1724
|
"alias": "t"
|
|
1771
1725
|
},
|
|
@@ -2663,8 +2617,8 @@
|
|
|
2663
2617
|
"type": "string",
|
|
2664
2618
|
"description": "The server entry-point that when executed will spawn the web server."
|
|
2665
2619
|
},
|
|
2666
|
-
"
|
|
2667
|
-
"description": "Specifies the platform for which the server bundle is generated. This affects the APIs and modules available in the server-side code. \n\n- `node`: (Default) Generates a bundle optimized for Node.js environments. \n- `neutral`: Generates a platform-neutral bundle suitable for environments like edge workers, and other serverless platforms. This option avoids using Node.js-specific APIs, making the bundle more portable. \n\nPlease note that this feature does not provide polyfills for Node.js modules.
|
|
2620
|
+
"platform": {
|
|
2621
|
+
"description": "Specifies the platform for which the server bundle is generated. This affects the APIs and modules available in the server-side code. \n\n- `node`: (Default) Generates a bundle optimized for Node.js environments. \n- `neutral`: Generates a platform-neutral bundle suitable for environments like edge workers, and other serverless platforms. This option avoids using Node.js-specific APIs, making the bundle more portable. \n\nPlease note that this feature does not provide polyfills for Node.js modules.",
|
|
2668
2622
|
"default": "node",
|
|
2669
2623
|
"enum": [
|
|
2670
2624
|
"node",
|
|
@@ -5330,347 +5284,6 @@
|
|
|
5330
5284
|
}
|
|
5331
5285
|
}
|
|
5332
5286
|
},
|
|
5333
|
-
"AngularDevkitBuildAngularBuildersJestSchema": {
|
|
5334
|
-
"title": "Jest browser schema for Build Facade.",
|
|
5335
|
-
"description": "Jest target options",
|
|
5336
|
-
"type": "object",
|
|
5337
|
-
"properties": {
|
|
5338
|
-
"include": {
|
|
5339
|
-
"type": "array",
|
|
5340
|
-
"items": {
|
|
5341
|
-
"type": "string"
|
|
5342
|
-
},
|
|
5343
|
-
"default": [
|
|
5344
|
-
"**/*.spec.ts"
|
|
5345
|
-
],
|
|
5346
|
-
"description": "Globs of files to include, relative to project root."
|
|
5347
|
-
},
|
|
5348
|
-
"exclude": {
|
|
5349
|
-
"type": "array",
|
|
5350
|
-
"items": {
|
|
5351
|
-
"type": "string"
|
|
5352
|
-
},
|
|
5353
|
-
"default": [],
|
|
5354
|
-
"description": "Globs of files to exclude, relative to the project root."
|
|
5355
|
-
},
|
|
5356
|
-
"tsConfig": {
|
|
5357
|
-
"type": "string",
|
|
5358
|
-
"description": "The name of the TypeScript configuration file."
|
|
5359
|
-
},
|
|
5360
|
-
"polyfills": {
|
|
5361
|
-
"type": "array",
|
|
5362
|
-
"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'.",
|
|
5363
|
-
"items": {
|
|
5364
|
-
"type": "string",
|
|
5365
|
-
"uniqueItems": true
|
|
5366
|
-
},
|
|
5367
|
-
"default": []
|
|
5368
|
-
},
|
|
5369
|
-
"aot": {
|
|
5370
|
-
"type": "boolean",
|
|
5371
|
-
"description": "Run tests using Ahead of Time compilation.",
|
|
5372
|
-
"default": false
|
|
5373
|
-
}
|
|
5374
|
-
},
|
|
5375
|
-
"additionalProperties": false
|
|
5376
|
-
},
|
|
5377
|
-
"AngularDevkitBuildAngularBuildersWebTestRunnerSchema": {
|
|
5378
|
-
"title": "Web Test Runner Target",
|
|
5379
|
-
"description": "Web Test Runner target options for Build Facade.",
|
|
5380
|
-
"type": "object",
|
|
5381
|
-
"properties": {
|
|
5382
|
-
"main": {
|
|
5383
|
-
"type": "string",
|
|
5384
|
-
"description": "The name of the main entry-point file."
|
|
5385
|
-
},
|
|
5386
|
-
"tsConfig": {
|
|
5387
|
-
"type": "string",
|
|
5388
|
-
"description": "The name of the TypeScript configuration file."
|
|
5389
|
-
},
|
|
5390
|
-
"polyfills": {
|
|
5391
|
-
"description": "Polyfills to be included in the build.",
|
|
5392
|
-
"oneOf": [
|
|
5393
|
-
{
|
|
5394
|
-
"type": "array",
|
|
5395
|
-
"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'.",
|
|
5396
|
-
"items": {
|
|
5397
|
-
"type": "string",
|
|
5398
|
-
"uniqueItems": true
|
|
5399
|
-
},
|
|
5400
|
-
"default": []
|
|
5401
|
-
},
|
|
5402
|
-
{
|
|
5403
|
-
"type": "string",
|
|
5404
|
-
"description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
|
|
5405
|
-
}
|
|
5406
|
-
]
|
|
5407
|
-
},
|
|
5408
|
-
"assets": {
|
|
5409
|
-
"type": "array",
|
|
5410
|
-
"description": "List of static application assets.",
|
|
5411
|
-
"default": [],
|
|
5412
|
-
"items": {
|
|
5413
|
-
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersWebTestRunnerSchema/definitions/assetPattern"
|
|
5414
|
-
}
|
|
5415
|
-
},
|
|
5416
|
-
"scripts": {
|
|
5417
|
-
"description": "Global scripts to be included in the build.",
|
|
5418
|
-
"type": "array",
|
|
5419
|
-
"default": [],
|
|
5420
|
-
"items": {
|
|
5421
|
-
"oneOf": [
|
|
5422
|
-
{
|
|
5423
|
-
"type": "object",
|
|
5424
|
-
"properties": {
|
|
5425
|
-
"input": {
|
|
5426
|
-
"type": "string",
|
|
5427
|
-
"description": "The file to include.",
|
|
5428
|
-
"pattern": "\\.[cm]?jsx?$"
|
|
5429
|
-
},
|
|
5430
|
-
"bundleName": {
|
|
5431
|
-
"type": "string",
|
|
5432
|
-
"pattern": "^[\\w\\-.]*$",
|
|
5433
|
-
"description": "The bundle name for this extra entry point."
|
|
5434
|
-
},
|
|
5435
|
-
"inject": {
|
|
5436
|
-
"type": "boolean",
|
|
5437
|
-
"description": "If the bundle will be referenced in the HTML file.",
|
|
5438
|
-
"default": true
|
|
5439
|
-
}
|
|
5440
|
-
},
|
|
5441
|
-
"additionalProperties": false
|
|
5442
|
-
},
|
|
5443
|
-
{
|
|
5444
|
-
"type": "string",
|
|
5445
|
-
"description": "The file to include.",
|
|
5446
|
-
"pattern": "\\.[cm]?jsx?$"
|
|
5447
|
-
}
|
|
5448
|
-
]
|
|
5449
|
-
}
|
|
5450
|
-
},
|
|
5451
|
-
"styles": {
|
|
5452
|
-
"description": "Global styles to be included in the build.",
|
|
5453
|
-
"type": "array",
|
|
5454
|
-
"default": [],
|
|
5455
|
-
"items": {
|
|
5456
|
-
"oneOf": [
|
|
5457
|
-
{
|
|
5458
|
-
"type": "object",
|
|
5459
|
-
"properties": {
|
|
5460
|
-
"input": {
|
|
5461
|
-
"type": "string",
|
|
5462
|
-
"description": "The file to include.",
|
|
5463
|
-
"pattern": "\\.(?:css|scss|sass|less)$"
|
|
5464
|
-
},
|
|
5465
|
-
"bundleName": {
|
|
5466
|
-
"type": "string",
|
|
5467
|
-
"pattern": "^[\\w\\-.]*$",
|
|
5468
|
-
"description": "The bundle name for this extra entry point."
|
|
5469
|
-
},
|
|
5470
|
-
"inject": {
|
|
5471
|
-
"type": "boolean",
|
|
5472
|
-
"description": "If the bundle will be referenced in the HTML file.",
|
|
5473
|
-
"default": true
|
|
5474
|
-
}
|
|
5475
|
-
},
|
|
5476
|
-
"additionalProperties": false
|
|
5477
|
-
},
|
|
5478
|
-
{
|
|
5479
|
-
"type": "string",
|
|
5480
|
-
"description": "The file to include.",
|
|
5481
|
-
"pattern": "\\.(?:css|scss|sass|less)$"
|
|
5482
|
-
}
|
|
5483
|
-
]
|
|
5484
|
-
}
|
|
5485
|
-
},
|
|
5486
|
-
"inlineStyleLanguage": {
|
|
5487
|
-
"description": "The stylesheet language to use for the application's inline component styles.",
|
|
5488
|
-
"type": "string",
|
|
5489
|
-
"default": "css",
|
|
5490
|
-
"enum": [
|
|
5491
|
-
"css",
|
|
5492
|
-
"less",
|
|
5493
|
-
"sass",
|
|
5494
|
-
"scss"
|
|
5495
|
-
]
|
|
5496
|
-
},
|
|
5497
|
-
"stylePreprocessorOptions": {
|
|
5498
|
-
"description": "Options to pass to style preprocessors",
|
|
5499
|
-
"type": "object",
|
|
5500
|
-
"properties": {
|
|
5501
|
-
"includePaths": {
|
|
5502
|
-
"description": "Paths to include. Paths will be resolved to workspace root.",
|
|
5503
|
-
"type": "array",
|
|
5504
|
-
"items": {
|
|
5505
|
-
"type": "string"
|
|
5506
|
-
},
|
|
5507
|
-
"default": []
|
|
5508
|
-
}
|
|
5509
|
-
},
|
|
5510
|
-
"additionalProperties": false
|
|
5511
|
-
},
|
|
5512
|
-
"include": {
|
|
5513
|
-
"type": "array",
|
|
5514
|
-
"items": {
|
|
5515
|
-
"type": "string"
|
|
5516
|
-
},
|
|
5517
|
-
"default": [
|
|
5518
|
-
"**/*.spec.ts"
|
|
5519
|
-
],
|
|
5520
|
-
"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."
|
|
5521
|
-
},
|
|
5522
|
-
"exclude": {
|
|
5523
|
-
"type": "array",
|
|
5524
|
-
"items": {
|
|
5525
|
-
"type": "string"
|
|
5526
|
-
},
|
|
5527
|
-
"default": [],
|
|
5528
|
-
"description": "Globs of files to exclude, relative to the project root."
|
|
5529
|
-
},
|
|
5530
|
-
"sourceMap": {
|
|
5531
|
-
"description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration.",
|
|
5532
|
-
"default": true,
|
|
5533
|
-
"oneOf": [
|
|
5534
|
-
{
|
|
5535
|
-
"type": "object",
|
|
5536
|
-
"properties": {
|
|
5537
|
-
"scripts": {
|
|
5538
|
-
"type": "boolean",
|
|
5539
|
-
"description": "Output source maps for all scripts.",
|
|
5540
|
-
"default": true
|
|
5541
|
-
},
|
|
5542
|
-
"styles": {
|
|
5543
|
-
"type": "boolean",
|
|
5544
|
-
"description": "Output source maps for all styles.",
|
|
5545
|
-
"default": true
|
|
5546
|
-
},
|
|
5547
|
-
"vendor": {
|
|
5548
|
-
"type": "boolean",
|
|
5549
|
-
"description": "Resolve vendor packages source maps.",
|
|
5550
|
-
"default": false
|
|
5551
|
-
}
|
|
5552
|
-
},
|
|
5553
|
-
"additionalProperties": false
|
|
5554
|
-
},
|
|
5555
|
-
{
|
|
5556
|
-
"type": "boolean"
|
|
5557
|
-
}
|
|
5558
|
-
]
|
|
5559
|
-
},
|
|
5560
|
-
"progress": {
|
|
5561
|
-
"type": "boolean",
|
|
5562
|
-
"description": "Log progress to the console while building.",
|
|
5563
|
-
"default": true
|
|
5564
|
-
},
|
|
5565
|
-
"watch": {
|
|
5566
|
-
"type": "boolean",
|
|
5567
|
-
"description": "Run build when files change."
|
|
5568
|
-
},
|
|
5569
|
-
"poll": {
|
|
5570
|
-
"type": "number",
|
|
5571
|
-
"description": "Enable and define the file watching poll time period in milliseconds."
|
|
5572
|
-
},
|
|
5573
|
-
"preserveSymlinks": {
|
|
5574
|
-
"type": "boolean",
|
|
5575
|
-
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
|
|
5576
|
-
},
|
|
5577
|
-
"browsers": {
|
|
5578
|
-
"type": "string",
|
|
5579
|
-
"description": "Override which browsers tests are run against."
|
|
5580
|
-
},
|
|
5581
|
-
"codeCoverage": {
|
|
5582
|
-
"type": "boolean",
|
|
5583
|
-
"description": "Output a code coverage report.",
|
|
5584
|
-
"default": false
|
|
5585
|
-
},
|
|
5586
|
-
"codeCoverageExclude": {
|
|
5587
|
-
"type": "array",
|
|
5588
|
-
"description": "Globs to exclude from code coverage.",
|
|
5589
|
-
"items": {
|
|
5590
|
-
"type": "string"
|
|
5591
|
-
},
|
|
5592
|
-
"default": []
|
|
5593
|
-
},
|
|
5594
|
-
"fileReplacements": {
|
|
5595
|
-
"description": "Replace compilation source files with other compilation source files in the build.",
|
|
5596
|
-
"type": "array",
|
|
5597
|
-
"items": {
|
|
5598
|
-
"oneOf": [
|
|
5599
|
-
{
|
|
5600
|
-
"type": "object",
|
|
5601
|
-
"properties": {
|
|
5602
|
-
"src": {
|
|
5603
|
-
"type": "string"
|
|
5604
|
-
},
|
|
5605
|
-
"replaceWith": {
|
|
5606
|
-
"type": "string"
|
|
5607
|
-
}
|
|
5608
|
-
},
|
|
5609
|
-
"additionalProperties": false
|
|
5610
|
-
},
|
|
5611
|
-
{
|
|
5612
|
-
"type": "object",
|
|
5613
|
-
"properties": {
|
|
5614
|
-
"replace": {
|
|
5615
|
-
"type": "string"
|
|
5616
|
-
},
|
|
5617
|
-
"with": {
|
|
5618
|
-
"type": "string"
|
|
5619
|
-
}
|
|
5620
|
-
},
|
|
5621
|
-
"additionalProperties": false
|
|
5622
|
-
}
|
|
5623
|
-
]
|
|
5624
|
-
},
|
|
5625
|
-
"default": []
|
|
5626
|
-
},
|
|
5627
|
-
"webWorkerTsConfig": {
|
|
5628
|
-
"type": "string",
|
|
5629
|
-
"description": "TypeScript configuration for Web Worker modules."
|
|
5630
|
-
},
|
|
5631
|
-
"aot": {
|
|
5632
|
-
"type": "boolean",
|
|
5633
|
-
"description": "Run tests using Ahead of Time compilation.",
|
|
5634
|
-
"default": false
|
|
5635
|
-
}
|
|
5636
|
-
},
|
|
5637
|
-
"additionalProperties": false,
|
|
5638
|
-
"definitions": {
|
|
5639
|
-
"assetPattern": {
|
|
5640
|
-
"oneOf": [
|
|
5641
|
-
{
|
|
5642
|
-
"type": "object",
|
|
5643
|
-
"properties": {
|
|
5644
|
-
"glob": {
|
|
5645
|
-
"type": "string",
|
|
5646
|
-
"description": "The pattern to match."
|
|
5647
|
-
},
|
|
5648
|
-
"input": {
|
|
5649
|
-
"type": "string",
|
|
5650
|
-
"description": "The input directory path in which to apply 'glob'. Defaults to the project root."
|
|
5651
|
-
},
|
|
5652
|
-
"output": {
|
|
5653
|
-
"type": "string",
|
|
5654
|
-
"default": "",
|
|
5655
|
-
"description": "Absolute path within the output."
|
|
5656
|
-
},
|
|
5657
|
-
"ignore": {
|
|
5658
|
-
"description": "An array of globs to ignore.",
|
|
5659
|
-
"type": "array",
|
|
5660
|
-
"items": {
|
|
5661
|
-
"type": "string"
|
|
5662
|
-
}
|
|
5663
|
-
}
|
|
5664
|
-
},
|
|
5665
|
-
"additionalProperties": false
|
|
5666
|
-
},
|
|
5667
|
-
{
|
|
5668
|
-
"type": "string"
|
|
5669
|
-
}
|
|
5670
|
-
]
|
|
5671
|
-
}
|
|
5672
|
-
}
|
|
5673
|
-
},
|
|
5674
5287
|
"AngularDevkitBuildAngularBuildersPrerenderSchema": {
|
|
5675
5288
|
"title": "Prerender Target",
|
|
5676
5289
|
"type": "object",
|
|
@@ -113,14 +113,14 @@ export type AngularApplicationOptionsSchema = {
|
|
|
113
113
|
*/
|
|
114
114
|
fileNameStyleGuide?: FileNameStyleGuide;
|
|
115
115
|
/**
|
|
116
|
-
* Include the styles for the root component directly within the `app.ts` file.
|
|
117
|
-
* styles can be included inline. By default, a separate stylesheet file (e.g.,
|
|
118
|
-
* is created.
|
|
116
|
+
* Include the styles for the root component directly within the `app.component.ts` file.
|
|
117
|
+
* Only CSS styles can be included inline. By default, a separate stylesheet file (e.g.,
|
|
118
|
+
* `app.component.css`) is created.
|
|
119
119
|
*/
|
|
120
120
|
inlineStyle?: boolean;
|
|
121
121
|
/**
|
|
122
|
-
* Include the HTML template for the root component directly within the `app.ts`
|
|
123
|
-
* default, a separate template file (e.g., `app.html`) is created.
|
|
122
|
+
* Include the HTML template for the root component directly within the `app.component.ts`
|
|
123
|
+
* file. By default, a separate template file (e.g., `app.component.html`) is created.
|
|
124
124
|
*/
|
|
125
125
|
inlineTemplate?: boolean;
|
|
126
126
|
/**
|
|
@@ -393,7 +393,7 @@ export type AngularComponentOptionsSchema = {
|
|
|
393
393
|
* Configures the change detection strategy for the component.
|
|
394
394
|
*/
|
|
395
395
|
export declare enum ChangeDetection {
|
|
396
|
-
|
|
396
|
+
Eager = "Eager",
|
|
397
397
|
OnPush = "OnPush"
|
|
398
398
|
}
|
|
399
399
|
/**
|
|
@@ -743,12 +743,14 @@ export type AngularNgNewOptionsSchema = {
|
|
|
743
743
|
fileNameStyleGuide?: FileNameStyleGuide;
|
|
744
744
|
/**
|
|
745
745
|
* Include the styles for the initial application's root component directly within the
|
|
746
|
-
* `app.ts` file. By default, a separate stylesheet file (e.g.,
|
|
746
|
+
* `app.component.ts` file. By default, a separate stylesheet file (e.g.,
|
|
747
|
+
* `app.component.css`) is created.
|
|
747
748
|
*/
|
|
748
749
|
inlineStyle?: boolean;
|
|
749
750
|
/**
|
|
750
751
|
* Include the HTML template for the initial application's root component directly within
|
|
751
|
-
* the `app.ts` file. By default, a separate template file (e.g.,
|
|
752
|
+
* the `app.component.ts` file. By default, a separate template file (e.g.,
|
|
753
|
+
* `app.component.html`) is created.
|
|
752
754
|
*/
|
|
753
755
|
inlineTemplate?: boolean;
|
|
754
756
|
/**
|
|
@@ -79,7 +79,7 @@ var ViewEncapsulation;
|
|
|
79
79
|
*/
|
|
80
80
|
var ChangeDetection;
|
|
81
81
|
(function (ChangeDetection) {
|
|
82
|
-
ChangeDetection["
|
|
82
|
+
ChangeDetection["Eager"] = "Eager";
|
|
83
83
|
ChangeDetection["OnPush"] = "OnPush";
|
|
84
84
|
})(ChangeDetection || (exports.ChangeDetection = ChangeDetection = {}));
|
|
85
85
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-schema.js","sourceRoot":"","sources":["workspace-schema.ts"],"names":[],"mappings":";AACA,mFAAmF;AACnF,oFAAoF;;;AA4DpF;;GAEG;AACH,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,0BAAW,CAAA;IACX,wBAAS,CAAA;IACT,8BAAe,CAAA;AACnB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED;;;;GAIG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACtB,6BAAW,CAAA;IACX,6BAAW,CAAA;IACX,+BAAa,CAAA;IACb,+BAAa,CAAA;AACjB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAqID;;;;;GAKG;AACH,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,sCAAgB,CAAA;IAChB,sCAAgB,CAAA;AACpB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAED;;;;GAIG;AACH,IAAY,iCAMX;AAND,WAAY,iCAAiC;IACzC,gDAAW,CAAA;IACX,kDAAa,CAAA;IACb,kDAAa,CAAA;IACb,kDAAa,CAAA;IACb,0DAAqB,CAAA;AACzB,CAAC,EANW,iCAAiC,iDAAjC,iCAAiC,QAM5C;AAED;;GAEG;AACH,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,6BAAe,CAAA;IACf,+BAAiB,CAAA;AACrB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED;;;;;;;;;;;GAWG;AACH,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IACzB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,4CAAuB,CAAA;AAC3B,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B;AAsJD;;GAEG;AACH,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,
|
|
1
|
+
{"version":3,"file":"workspace-schema.js","sourceRoot":"","sources":["workspace-schema.ts"],"names":[],"mappings":";AACA,mFAAmF;AACnF,oFAAoF;;;AA4DpF;;GAEG;AACH,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,0BAAW,CAAA;IACX,wBAAS,CAAA;IACT,8BAAe,CAAA;AACnB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED;;;;GAIG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACtB,6BAAW,CAAA;IACX,6BAAW,CAAA;IACX,+BAAa,CAAA;IACb,+BAAa,CAAA;AACjB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAqID;;;;;GAKG;AACH,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,sCAAgB,CAAA;IAChB,sCAAgB,CAAA;AACpB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB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