@angular/cli 17.0.8 → 17.0.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/config/schema.json +160 -1
- package/package.json +12 -12
- package/src/utilities/eol.d.ts +8 -0
- package/src/utilities/eol.js +23 -0
- package/src/utilities/json-file.js +4 -0
- package/src/utilities/version.js +1 -1
package/lib/config/schema.json
CHANGED
|
@@ -400,10 +400,12 @@
|
|
|
400
400
|
"@angular-devkit/build-angular:dev-server",
|
|
401
401
|
"@angular-devkit/build-angular:extract-i18n",
|
|
402
402
|
"@angular-devkit/build-angular:karma",
|
|
403
|
+
"@angular-devkit/build-angular:ng-packagr",
|
|
404
|
+
"@angular-devkit/build-angular:prerender",
|
|
403
405
|
"@angular-devkit/build-angular:jest",
|
|
404
406
|
"@angular-devkit/build-angular:protractor",
|
|
405
407
|
"@angular-devkit/build-angular:server",
|
|
406
|
-
"@angular-devkit/build-angular:
|
|
408
|
+
"@angular-devkit/build-angular:ssr-dev-server"
|
|
407
409
|
]
|
|
408
410
|
}
|
|
409
411
|
},
|
|
@@ -625,6 +627,50 @@
|
|
|
625
627
|
}
|
|
626
628
|
}
|
|
627
629
|
},
|
|
630
|
+
{
|
|
631
|
+
"type": "object",
|
|
632
|
+
"additionalProperties": false,
|
|
633
|
+
"properties": {
|
|
634
|
+
"builder": {
|
|
635
|
+
"const": "@angular-devkit/build-angular:prerender"
|
|
636
|
+
},
|
|
637
|
+
"defaultConfiguration": {
|
|
638
|
+
"type": "string",
|
|
639
|
+
"description": "A default named configuration to use when a target configuration is not provided."
|
|
640
|
+
},
|
|
641
|
+
"options": {
|
|
642
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersPrerenderSchema"
|
|
643
|
+
},
|
|
644
|
+
"configurations": {
|
|
645
|
+
"type": "object",
|
|
646
|
+
"additionalProperties": {
|
|
647
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersPrerenderSchema"
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"type": "object",
|
|
654
|
+
"additionalProperties": false,
|
|
655
|
+
"properties": {
|
|
656
|
+
"builder": {
|
|
657
|
+
"const": "@angular-devkit/build-angular:ssr-dev-server"
|
|
658
|
+
},
|
|
659
|
+
"defaultConfiguration": {
|
|
660
|
+
"type": "string",
|
|
661
|
+
"description": "A default named configuration to use when a target configuration is not provided."
|
|
662
|
+
},
|
|
663
|
+
"options": {
|
|
664
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersSsrDevServerSchema"
|
|
665
|
+
},
|
|
666
|
+
"configurations": {
|
|
667
|
+
"type": "object",
|
|
668
|
+
"additionalProperties": {
|
|
669
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersSsrDevServerSchema"
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
},
|
|
628
674
|
{
|
|
629
675
|
"type": "object",
|
|
630
676
|
"additionalProperties": false,
|
|
@@ -3959,6 +4005,119 @@
|
|
|
3959
4005
|
},
|
|
3960
4006
|
"additionalProperties": false
|
|
3961
4007
|
},
|
|
4008
|
+
"AngularDevkitBuildAngularBuildersPrerenderSchema": {
|
|
4009
|
+
"title": "Prerender Target",
|
|
4010
|
+
"type": "object",
|
|
4011
|
+
"properties": {
|
|
4012
|
+
"browserTarget": {
|
|
4013
|
+
"type": "string",
|
|
4014
|
+
"description": "Target to build.",
|
|
4015
|
+
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
|
|
4016
|
+
},
|
|
4017
|
+
"serverTarget": {
|
|
4018
|
+
"type": "string",
|
|
4019
|
+
"description": "Server target to use for prerendering the app.",
|
|
4020
|
+
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
|
|
4021
|
+
},
|
|
4022
|
+
"routesFile": {
|
|
4023
|
+
"type": "string",
|
|
4024
|
+
"description": "The path to a file that contains a list of all routes to prerender, separated by newlines. This option is useful if you want to prerender routes with parameterized URLs."
|
|
4025
|
+
},
|
|
4026
|
+
"routes": {
|
|
4027
|
+
"type": "array",
|
|
4028
|
+
"description": "The routes to render.",
|
|
4029
|
+
"items": {
|
|
4030
|
+
"minItems": 1,
|
|
4031
|
+
"type": "string",
|
|
4032
|
+
"uniqueItems": true
|
|
4033
|
+
},
|
|
4034
|
+
"default": []
|
|
4035
|
+
},
|
|
4036
|
+
"discoverRoutes": {
|
|
4037
|
+
"type": "boolean",
|
|
4038
|
+
"description": "Whether the builder should process the Angular Router configuration to find all unparameterized routes and prerender them.",
|
|
4039
|
+
"default": true
|
|
4040
|
+
}
|
|
4041
|
+
},
|
|
4042
|
+
"anyOf": [
|
|
4043
|
+
{},
|
|
4044
|
+
{}
|
|
4045
|
+
],
|
|
4046
|
+
"additionalProperties": false
|
|
4047
|
+
},
|
|
4048
|
+
"AngularDevkitBuildAngularBuildersSsrDevServerSchema": {
|
|
4049
|
+
"title": "SSR Dev Server Target",
|
|
4050
|
+
"description": "SSR Dev Server target options for Build Facade.",
|
|
4051
|
+
"type": "object",
|
|
4052
|
+
"properties": {
|
|
4053
|
+
"browserTarget": {
|
|
4054
|
+
"type": "string",
|
|
4055
|
+
"description": "Browser target to build.",
|
|
4056
|
+
"pattern": ".+:.+(:.+)?"
|
|
4057
|
+
},
|
|
4058
|
+
"serverTarget": {
|
|
4059
|
+
"type": "string",
|
|
4060
|
+
"description": "Server target to build.",
|
|
4061
|
+
"pattern": ".+:.+(:.+)?"
|
|
4062
|
+
},
|
|
4063
|
+
"host": {
|
|
4064
|
+
"type": "string",
|
|
4065
|
+
"description": "Host to listen on.",
|
|
4066
|
+
"default": "localhost"
|
|
4067
|
+
},
|
|
4068
|
+
"port": {
|
|
4069
|
+
"type": "number",
|
|
4070
|
+
"default": 4200,
|
|
4071
|
+
"description": "Port to start the development server at. Default is 4200. Pass 0 to get a dynamically assigned port."
|
|
4072
|
+
},
|
|
4073
|
+
"watch": {
|
|
4074
|
+
"type": "boolean",
|
|
4075
|
+
"description": "Rebuild on change.",
|
|
4076
|
+
"default": true
|
|
4077
|
+
},
|
|
4078
|
+
"publicHost": {
|
|
4079
|
+
"type": "string",
|
|
4080
|
+
"description": "The URL that the browser client should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies."
|
|
4081
|
+
},
|
|
4082
|
+
"open": {
|
|
4083
|
+
"type": "boolean",
|
|
4084
|
+
"description": "Opens the url in default browser.",
|
|
4085
|
+
"default": false,
|
|
4086
|
+
"alias": "o"
|
|
4087
|
+
},
|
|
4088
|
+
"progress": {
|
|
4089
|
+
"type": "boolean",
|
|
4090
|
+
"description": "Log progress to the console while building."
|
|
4091
|
+
},
|
|
4092
|
+
"inspect": {
|
|
4093
|
+
"type": "boolean",
|
|
4094
|
+
"description": "Launch the development server in inspector mode and listen on address and port '127.0.0.1:9229'.",
|
|
4095
|
+
"default": false
|
|
4096
|
+
},
|
|
4097
|
+
"ssl": {
|
|
4098
|
+
"type": "boolean",
|
|
4099
|
+
"description": "Serve using HTTPS.",
|
|
4100
|
+
"default": false
|
|
4101
|
+
},
|
|
4102
|
+
"sslKey": {
|
|
4103
|
+
"type": "string",
|
|
4104
|
+
"description": "SSL key to use for serving HTTPS."
|
|
4105
|
+
},
|
|
4106
|
+
"sslCert": {
|
|
4107
|
+
"type": "string",
|
|
4108
|
+
"description": "SSL certificate to use for serving HTTPS."
|
|
4109
|
+
},
|
|
4110
|
+
"proxyConfig": {
|
|
4111
|
+
"type": "string",
|
|
4112
|
+
"description": "Proxy configuration file."
|
|
4113
|
+
},
|
|
4114
|
+
"verbose": {
|
|
4115
|
+
"type": "boolean",
|
|
4116
|
+
"description": "Adds more details to output logging."
|
|
4117
|
+
}
|
|
4118
|
+
},
|
|
4119
|
+
"additionalProperties": false
|
|
4120
|
+
},
|
|
3962
4121
|
"AngularDevkitBuildAngularBuildersServerSchema": {
|
|
3963
4122
|
"title": "Universal Target",
|
|
3964
4123
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.10",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/angular/angular-cli",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@angular-devkit/architect": "0.1700.
|
|
29
|
-
"@angular-devkit/core": "17.0.
|
|
30
|
-
"@angular-devkit/schematics": "17.0.
|
|
31
|
-
"@schematics/angular": "17.0.
|
|
28
|
+
"@angular-devkit/architect": "0.1700.10",
|
|
29
|
+
"@angular-devkit/core": "17.0.10",
|
|
30
|
+
"@angular-devkit/schematics": "17.0.10",
|
|
31
|
+
"@schematics/angular": "17.0.10",
|
|
32
32
|
"@yarnpkg/lockfile": "1.1.0",
|
|
33
33
|
"ansi-colors": "4.1.3",
|
|
34
34
|
"ini": "4.1.1",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"ng-update": {
|
|
48
48
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
49
49
|
"packageGroup": {
|
|
50
|
-
"@angular/cli": "17.0.
|
|
51
|
-
"@angular/ssr": "17.0.
|
|
52
|
-
"@angular-devkit/architect": "0.1700.
|
|
53
|
-
"@angular-devkit/build-angular": "17.0.
|
|
54
|
-
"@angular-devkit/build-webpack": "0.1700.
|
|
55
|
-
"@angular-devkit/core": "17.0.
|
|
56
|
-
"@angular-devkit/schematics": "17.0.
|
|
50
|
+
"@angular/cli": "17.0.10",
|
|
51
|
+
"@angular/ssr": "17.0.10",
|
|
52
|
+
"@angular-devkit/architect": "0.1700.10",
|
|
53
|
+
"@angular-devkit/build-angular": "17.0.10",
|
|
54
|
+
"@angular-devkit/build-webpack": "0.1700.10",
|
|
55
|
+
"@angular-devkit/core": "17.0.10",
|
|
56
|
+
"@angular-devkit/schematics": "17.0.10"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
@@ -0,0 +1,8 @@
|
|
|
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.io/license
|
|
7
|
+
*/
|
|
8
|
+
export declare function getEOL(content: string): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
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.io/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getEOL = void 0;
|
|
11
|
+
const node_os_1 = require("node:os");
|
|
12
|
+
const CRLF = '\r\n';
|
|
13
|
+
const LF = '\n';
|
|
14
|
+
function getEOL(content) {
|
|
15
|
+
const newlines = content.match(/(?:\r?\n)/g);
|
|
16
|
+
if (newlines?.length) {
|
|
17
|
+
const crlf = newlines.filter((l) => l === CRLF).length;
|
|
18
|
+
const lf = newlines.length - crlf;
|
|
19
|
+
return crlf > lf ? CRLF : LF;
|
|
20
|
+
}
|
|
21
|
+
return node_os_1.EOL;
|
|
22
|
+
}
|
|
23
|
+
exports.getEOL = getEOL;
|
|
@@ -10,10 +10,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.parseJson = exports.readAndParseJson = exports.JSONFile = void 0;
|
|
11
11
|
const fs_1 = require("fs");
|
|
12
12
|
const jsonc_parser_1 = require("jsonc-parser");
|
|
13
|
+
const eol_1 = require("./eol");
|
|
13
14
|
/** @internal */
|
|
14
15
|
class JSONFile {
|
|
15
16
|
path;
|
|
16
17
|
content;
|
|
18
|
+
eol;
|
|
17
19
|
constructor(path) {
|
|
18
20
|
this.path = path;
|
|
19
21
|
const buffer = (0, fs_1.readFileSync)(this.path);
|
|
@@ -23,6 +25,7 @@ class JSONFile {
|
|
|
23
25
|
else {
|
|
24
26
|
throw new Error(`Could not read '${path}'.`);
|
|
25
27
|
}
|
|
28
|
+
this.eol = (0, eol_1.getEOL)(this.content);
|
|
26
29
|
}
|
|
27
30
|
_jsonAst;
|
|
28
31
|
get JsonAst() {
|
|
@@ -66,6 +69,7 @@ class JSONFile {
|
|
|
66
69
|
formattingOptions: {
|
|
67
70
|
insertSpaces: true,
|
|
68
71
|
tabSize: 2,
|
|
72
|
+
eol: this.eol,
|
|
69
73
|
},
|
|
70
74
|
});
|
|
71
75
|
if (edits.length === 0) {
|
package/src/utilities/version.js
CHANGED
|
@@ -25,5 +25,5 @@ class Version {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
// TODO(bazel): Convert this to use build-time version stamping after flipping the build script to use bazel
|
|
28
|
-
// export const VERSION = new Version('17.0.
|
|
28
|
+
// export const VERSION = new Version('17.0.10');
|
|
29
29
|
exports.VERSION = new Version(JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, '../../package.json'), 'utf-8')).version);
|