@angular/cli 17.1.0-next.2 → 17.1.0-rc.0
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 +513 -3
- package/package.json +12 -12
- package/src/command-builder/architect-base-command-module.js +36 -15
- package/src/command-builder/schematics-command-module.js +1 -0
- package/src/commands/add/cli.d.ts +1 -1
- package/src/commands/add/cli.js +2 -2
- package/src/commands/version/cli.js +4 -6
- package/src/utilities/version.js +1 -1
package/lib/config/schema.json
CHANGED
|
@@ -400,10 +400,13 @@
|
|
|
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",
|
|
406
|
+
"@angular-devkit/build-angular:web-test-runner",
|
|
404
407
|
"@angular-devkit/build-angular:protractor",
|
|
405
408
|
"@angular-devkit/build-angular:server",
|
|
406
|
-
"@angular-devkit/build-angular:
|
|
409
|
+
"@angular-devkit/build-angular:ssr-dev-server"
|
|
407
410
|
]
|
|
408
411
|
}
|
|
409
412
|
},
|
|
@@ -603,6 +606,28 @@
|
|
|
603
606
|
}
|
|
604
607
|
}
|
|
605
608
|
},
|
|
609
|
+
{
|
|
610
|
+
"type": "object",
|
|
611
|
+
"additionalProperties": false,
|
|
612
|
+
"properties": {
|
|
613
|
+
"builder": {
|
|
614
|
+
"const": "@angular-devkit/build-angular:web-test-runner"
|
|
615
|
+
},
|
|
616
|
+
"defaultConfiguration": {
|
|
617
|
+
"type": "string",
|
|
618
|
+
"description": "A default named configuration to use when a target configuration is not provided."
|
|
619
|
+
},
|
|
620
|
+
"options": {
|
|
621
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersWebTestRunnerSchema"
|
|
622
|
+
},
|
|
623
|
+
"configurations": {
|
|
624
|
+
"type": "object",
|
|
625
|
+
"additionalProperties": {
|
|
626
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersWebTestRunnerSchema"
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
},
|
|
606
631
|
{
|
|
607
632
|
"type": "object",
|
|
608
633
|
"additionalProperties": false,
|
|
@@ -625,6 +650,50 @@
|
|
|
625
650
|
}
|
|
626
651
|
}
|
|
627
652
|
},
|
|
653
|
+
{
|
|
654
|
+
"type": "object",
|
|
655
|
+
"additionalProperties": false,
|
|
656
|
+
"properties": {
|
|
657
|
+
"builder": {
|
|
658
|
+
"const": "@angular-devkit/build-angular:prerender"
|
|
659
|
+
},
|
|
660
|
+
"defaultConfiguration": {
|
|
661
|
+
"type": "string",
|
|
662
|
+
"description": "A default named configuration to use when a target configuration is not provided."
|
|
663
|
+
},
|
|
664
|
+
"options": {
|
|
665
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersPrerenderSchema"
|
|
666
|
+
},
|
|
667
|
+
"configurations": {
|
|
668
|
+
"type": "object",
|
|
669
|
+
"additionalProperties": {
|
|
670
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersPrerenderSchema"
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"type": "object",
|
|
677
|
+
"additionalProperties": false,
|
|
678
|
+
"properties": {
|
|
679
|
+
"builder": {
|
|
680
|
+
"const": "@angular-devkit/build-angular:ssr-dev-server"
|
|
681
|
+
},
|
|
682
|
+
"defaultConfiguration": {
|
|
683
|
+
"type": "string",
|
|
684
|
+
"description": "A default named configuration to use when a target configuration is not provided."
|
|
685
|
+
},
|
|
686
|
+
"options": {
|
|
687
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersSsrDevServerSchema"
|
|
688
|
+
},
|
|
689
|
+
"configurations": {
|
|
690
|
+
"type": "object",
|
|
691
|
+
"additionalProperties": {
|
|
692
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersSsrDevServerSchema"
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
},
|
|
628
697
|
{
|
|
629
698
|
"type": "object",
|
|
630
699
|
"additionalProperties": false,
|
|
@@ -1874,8 +1943,40 @@
|
|
|
1874
1943
|
"default": []
|
|
1875
1944
|
},
|
|
1876
1945
|
"outputPath": {
|
|
1877
|
-
"
|
|
1878
|
-
"
|
|
1946
|
+
"description": "Specify the output path relative to workspace root.",
|
|
1947
|
+
"oneOf": [
|
|
1948
|
+
{
|
|
1949
|
+
"type": "object",
|
|
1950
|
+
"properties": {
|
|
1951
|
+
"base": {
|
|
1952
|
+
"type": "string",
|
|
1953
|
+
"description": "Specify the output path relative to workspace root."
|
|
1954
|
+
},
|
|
1955
|
+
"browser": {
|
|
1956
|
+
"type": "string",
|
|
1957
|
+
"pattern": "^[-\\w\\.]*$",
|
|
1958
|
+
"default": "browser",
|
|
1959
|
+
"description": "The output directory name of your browser build within the output path base. Defaults to 'browser'."
|
|
1960
|
+
},
|
|
1961
|
+
"server": {
|
|
1962
|
+
"type": "string",
|
|
1963
|
+
"pattern": "^[-\\w\\.]*$",
|
|
1964
|
+
"default": "server",
|
|
1965
|
+
"description": "The output directory name of your server build within the output path base. Defaults to 'server'."
|
|
1966
|
+
},
|
|
1967
|
+
"media": {
|
|
1968
|
+
"type": "string",
|
|
1969
|
+
"pattern": "^[-\\w\\.]+$",
|
|
1970
|
+
"default": "media",
|
|
1971
|
+
"description": "The output directory name of your media files within the output browser directory. Defaults to 'media'."
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
"additionalProperties": false
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
"type": "string"
|
|
1978
|
+
}
|
|
1979
|
+
]
|
|
1879
1980
|
},
|
|
1880
1981
|
"aot": {
|
|
1881
1982
|
"type": "boolean",
|
|
@@ -2049,6 +2150,11 @@
|
|
|
2049
2150
|
"minLength": 1,
|
|
2050
2151
|
"default": "index.html",
|
|
2051
2152
|
"description": "The output path of the application's generated HTML index file. The full provided path will be used and will be considered relative to the application's configured output path."
|
|
2153
|
+
},
|
|
2154
|
+
"preloadInitial": {
|
|
2155
|
+
"type": "boolean",
|
|
2156
|
+
"default": true,
|
|
2157
|
+
"description": "Generates 'preload', 'modulepreload', and 'preconnect' link elements for initial application files and resources."
|
|
2052
2158
|
}
|
|
2053
2159
|
}
|
|
2054
2160
|
},
|
|
@@ -3932,6 +4038,297 @@
|
|
|
3932
4038
|
},
|
|
3933
4039
|
"additionalProperties": false
|
|
3934
4040
|
},
|
|
4041
|
+
"AngularDevkitBuildAngularBuildersWebTestRunnerSchema": {
|
|
4042
|
+
"title": "Web Test Runner Target",
|
|
4043
|
+
"description": "Web Test Runner target options for Build Facade.",
|
|
4044
|
+
"type": "object",
|
|
4045
|
+
"properties": {
|
|
4046
|
+
"main": {
|
|
4047
|
+
"type": "string",
|
|
4048
|
+
"description": "The name of the main entry-point file."
|
|
4049
|
+
},
|
|
4050
|
+
"tsConfig": {
|
|
4051
|
+
"type": "string",
|
|
4052
|
+
"description": "The name of the TypeScript configuration file."
|
|
4053
|
+
},
|
|
4054
|
+
"polyfills": {
|
|
4055
|
+
"description": "Polyfills to be included in the build.",
|
|
4056
|
+
"oneOf": [
|
|
4057
|
+
{
|
|
4058
|
+
"type": "array",
|
|
4059
|
+
"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'.",
|
|
4060
|
+
"items": {
|
|
4061
|
+
"type": "string",
|
|
4062
|
+
"uniqueItems": true
|
|
4063
|
+
},
|
|
4064
|
+
"default": []
|
|
4065
|
+
},
|
|
4066
|
+
{
|
|
4067
|
+
"type": "string",
|
|
4068
|
+
"description": "The full path for the polyfills file, relative to the current workspace or a module specifier. Example: 'zone.js'."
|
|
4069
|
+
}
|
|
4070
|
+
]
|
|
4071
|
+
},
|
|
4072
|
+
"assets": {
|
|
4073
|
+
"type": "array",
|
|
4074
|
+
"description": "List of static application assets.",
|
|
4075
|
+
"default": [],
|
|
4076
|
+
"items": {
|
|
4077
|
+
"$ref": "#/definitions/AngularDevkitBuildAngularBuildersWebTestRunnerSchema/definitions/assetPattern"
|
|
4078
|
+
}
|
|
4079
|
+
},
|
|
4080
|
+
"scripts": {
|
|
4081
|
+
"description": "Global scripts to be included in the build.",
|
|
4082
|
+
"type": "array",
|
|
4083
|
+
"default": [],
|
|
4084
|
+
"items": {
|
|
4085
|
+
"oneOf": [
|
|
4086
|
+
{
|
|
4087
|
+
"type": "object",
|
|
4088
|
+
"properties": {
|
|
4089
|
+
"input": {
|
|
4090
|
+
"type": "string",
|
|
4091
|
+
"description": "The file to include.",
|
|
4092
|
+
"pattern": "\\.[cm]?jsx?$"
|
|
4093
|
+
},
|
|
4094
|
+
"bundleName": {
|
|
4095
|
+
"type": "string",
|
|
4096
|
+
"pattern": "^[\\w\\-.]*$",
|
|
4097
|
+
"description": "The bundle name for this extra entry point."
|
|
4098
|
+
},
|
|
4099
|
+
"inject": {
|
|
4100
|
+
"type": "boolean",
|
|
4101
|
+
"description": "If the bundle will be referenced in the HTML file.",
|
|
4102
|
+
"default": true
|
|
4103
|
+
}
|
|
4104
|
+
},
|
|
4105
|
+
"additionalProperties": false
|
|
4106
|
+
},
|
|
4107
|
+
{
|
|
4108
|
+
"type": "string",
|
|
4109
|
+
"description": "The file to include.",
|
|
4110
|
+
"pattern": "\\.[cm]?jsx?$"
|
|
4111
|
+
}
|
|
4112
|
+
]
|
|
4113
|
+
}
|
|
4114
|
+
},
|
|
4115
|
+
"styles": {
|
|
4116
|
+
"description": "Global styles to be included in the build.",
|
|
4117
|
+
"type": "array",
|
|
4118
|
+
"default": [],
|
|
4119
|
+
"items": {
|
|
4120
|
+
"oneOf": [
|
|
4121
|
+
{
|
|
4122
|
+
"type": "object",
|
|
4123
|
+
"properties": {
|
|
4124
|
+
"input": {
|
|
4125
|
+
"type": "string",
|
|
4126
|
+
"description": "The file to include.",
|
|
4127
|
+
"pattern": "\\.(?:css|scss|sass|less)$"
|
|
4128
|
+
},
|
|
4129
|
+
"bundleName": {
|
|
4130
|
+
"type": "string",
|
|
4131
|
+
"pattern": "^[\\w\\-.]*$",
|
|
4132
|
+
"description": "The bundle name for this extra entry point."
|
|
4133
|
+
},
|
|
4134
|
+
"inject": {
|
|
4135
|
+
"type": "boolean",
|
|
4136
|
+
"description": "If the bundle will be referenced in the HTML file.",
|
|
4137
|
+
"default": true
|
|
4138
|
+
}
|
|
4139
|
+
},
|
|
4140
|
+
"additionalProperties": false
|
|
4141
|
+
},
|
|
4142
|
+
{
|
|
4143
|
+
"type": "string",
|
|
4144
|
+
"description": "The file to include.",
|
|
4145
|
+
"pattern": "\\.(?:css|scss|sass|less)$"
|
|
4146
|
+
}
|
|
4147
|
+
]
|
|
4148
|
+
}
|
|
4149
|
+
},
|
|
4150
|
+
"inlineStyleLanguage": {
|
|
4151
|
+
"description": "The stylesheet language to use for the application's inline component styles.",
|
|
4152
|
+
"type": "string",
|
|
4153
|
+
"default": "css",
|
|
4154
|
+
"enum": [
|
|
4155
|
+
"css",
|
|
4156
|
+
"less",
|
|
4157
|
+
"sass",
|
|
4158
|
+
"scss"
|
|
4159
|
+
]
|
|
4160
|
+
},
|
|
4161
|
+
"stylePreprocessorOptions": {
|
|
4162
|
+
"description": "Options to pass to style preprocessors",
|
|
4163
|
+
"type": "object",
|
|
4164
|
+
"properties": {
|
|
4165
|
+
"includePaths": {
|
|
4166
|
+
"description": "Paths to include. Paths will be resolved to workspace root.",
|
|
4167
|
+
"type": "array",
|
|
4168
|
+
"items": {
|
|
4169
|
+
"type": "string"
|
|
4170
|
+
},
|
|
4171
|
+
"default": []
|
|
4172
|
+
}
|
|
4173
|
+
},
|
|
4174
|
+
"additionalProperties": false
|
|
4175
|
+
},
|
|
4176
|
+
"include": {
|
|
4177
|
+
"type": "array",
|
|
4178
|
+
"items": {
|
|
4179
|
+
"type": "string"
|
|
4180
|
+
},
|
|
4181
|
+
"default": [
|
|
4182
|
+
"**/*.spec.ts"
|
|
4183
|
+
],
|
|
4184
|
+
"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."
|
|
4185
|
+
},
|
|
4186
|
+
"exclude": {
|
|
4187
|
+
"type": "array",
|
|
4188
|
+
"items": {
|
|
4189
|
+
"type": "string"
|
|
4190
|
+
},
|
|
4191
|
+
"default": [],
|
|
4192
|
+
"description": "Globs of files to exclude, relative to the project root."
|
|
4193
|
+
},
|
|
4194
|
+
"sourceMap": {
|
|
4195
|
+
"description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
|
|
4196
|
+
"default": true,
|
|
4197
|
+
"oneOf": [
|
|
4198
|
+
{
|
|
4199
|
+
"type": "object",
|
|
4200
|
+
"properties": {
|
|
4201
|
+
"scripts": {
|
|
4202
|
+
"type": "boolean",
|
|
4203
|
+
"description": "Output source maps for all scripts.",
|
|
4204
|
+
"default": true
|
|
4205
|
+
},
|
|
4206
|
+
"styles": {
|
|
4207
|
+
"type": "boolean",
|
|
4208
|
+
"description": "Output source maps for all styles.",
|
|
4209
|
+
"default": true
|
|
4210
|
+
},
|
|
4211
|
+
"vendor": {
|
|
4212
|
+
"type": "boolean",
|
|
4213
|
+
"description": "Resolve vendor packages source maps.",
|
|
4214
|
+
"default": false
|
|
4215
|
+
}
|
|
4216
|
+
},
|
|
4217
|
+
"additionalProperties": false
|
|
4218
|
+
},
|
|
4219
|
+
{
|
|
4220
|
+
"type": "boolean"
|
|
4221
|
+
}
|
|
4222
|
+
]
|
|
4223
|
+
},
|
|
4224
|
+
"progress": {
|
|
4225
|
+
"type": "boolean",
|
|
4226
|
+
"description": "Log progress to the console while building.",
|
|
4227
|
+
"default": true
|
|
4228
|
+
},
|
|
4229
|
+
"watch": {
|
|
4230
|
+
"type": "boolean",
|
|
4231
|
+
"description": "Run build when files change."
|
|
4232
|
+
},
|
|
4233
|
+
"poll": {
|
|
4234
|
+
"type": "number",
|
|
4235
|
+
"description": "Enable and define the file watching poll time period in milliseconds."
|
|
4236
|
+
},
|
|
4237
|
+
"preserveSymlinks": {
|
|
4238
|
+
"type": "boolean",
|
|
4239
|
+
"description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
|
|
4240
|
+
},
|
|
4241
|
+
"browsers": {
|
|
4242
|
+
"type": "string",
|
|
4243
|
+
"description": "Override which browsers tests are run against."
|
|
4244
|
+
},
|
|
4245
|
+
"codeCoverage": {
|
|
4246
|
+
"type": "boolean",
|
|
4247
|
+
"description": "Output a code coverage report.",
|
|
4248
|
+
"default": false
|
|
4249
|
+
},
|
|
4250
|
+
"codeCoverageExclude": {
|
|
4251
|
+
"type": "array",
|
|
4252
|
+
"description": "Globs to exclude from code coverage.",
|
|
4253
|
+
"items": {
|
|
4254
|
+
"type": "string"
|
|
4255
|
+
},
|
|
4256
|
+
"default": []
|
|
4257
|
+
},
|
|
4258
|
+
"fileReplacements": {
|
|
4259
|
+
"description": "Replace compilation source files with other compilation source files in the build.",
|
|
4260
|
+
"type": "array",
|
|
4261
|
+
"items": {
|
|
4262
|
+
"oneOf": [
|
|
4263
|
+
{
|
|
4264
|
+
"type": "object",
|
|
4265
|
+
"properties": {
|
|
4266
|
+
"src": {
|
|
4267
|
+
"type": "string"
|
|
4268
|
+
},
|
|
4269
|
+
"replaceWith": {
|
|
4270
|
+
"type": "string"
|
|
4271
|
+
}
|
|
4272
|
+
},
|
|
4273
|
+
"additionalProperties": false
|
|
4274
|
+
},
|
|
4275
|
+
{
|
|
4276
|
+
"type": "object",
|
|
4277
|
+
"properties": {
|
|
4278
|
+
"replace": {
|
|
4279
|
+
"type": "string"
|
|
4280
|
+
},
|
|
4281
|
+
"with": {
|
|
4282
|
+
"type": "string"
|
|
4283
|
+
}
|
|
4284
|
+
},
|
|
4285
|
+
"additionalProperties": false
|
|
4286
|
+
}
|
|
4287
|
+
]
|
|
4288
|
+
},
|
|
4289
|
+
"default": []
|
|
4290
|
+
},
|
|
4291
|
+
"webWorkerTsConfig": {
|
|
4292
|
+
"type": "string",
|
|
4293
|
+
"description": "TypeScript configuration for Web Worker modules."
|
|
4294
|
+
}
|
|
4295
|
+
},
|
|
4296
|
+
"additionalProperties": false,
|
|
4297
|
+
"definitions": {
|
|
4298
|
+
"assetPattern": {
|
|
4299
|
+
"oneOf": [
|
|
4300
|
+
{
|
|
4301
|
+
"type": "object",
|
|
4302
|
+
"properties": {
|
|
4303
|
+
"glob": {
|
|
4304
|
+
"type": "string",
|
|
4305
|
+
"description": "The pattern to match."
|
|
4306
|
+
},
|
|
4307
|
+
"input": {
|
|
4308
|
+
"type": "string",
|
|
4309
|
+
"description": "The input directory path in which to apply 'glob'. Defaults to the project root."
|
|
4310
|
+
},
|
|
4311
|
+
"output": {
|
|
4312
|
+
"type": "string",
|
|
4313
|
+
"description": "Absolute path within the output."
|
|
4314
|
+
},
|
|
4315
|
+
"ignore": {
|
|
4316
|
+
"description": "An array of globs to ignore.",
|
|
4317
|
+
"type": "array",
|
|
4318
|
+
"items": {
|
|
4319
|
+
"type": "string"
|
|
4320
|
+
}
|
|
4321
|
+
}
|
|
4322
|
+
},
|
|
4323
|
+
"additionalProperties": false
|
|
4324
|
+
},
|
|
4325
|
+
{
|
|
4326
|
+
"type": "string"
|
|
4327
|
+
}
|
|
4328
|
+
]
|
|
4329
|
+
}
|
|
4330
|
+
}
|
|
4331
|
+
},
|
|
3935
4332
|
"AngularDevkitBuildAngularBuildersProtractorSchema": {
|
|
3936
4333
|
"title": "Protractor Target",
|
|
3937
4334
|
"description": "Protractor target options for Build Facade.",
|
|
@@ -3988,6 +4385,119 @@
|
|
|
3988
4385
|
},
|
|
3989
4386
|
"additionalProperties": false
|
|
3990
4387
|
},
|
|
4388
|
+
"AngularDevkitBuildAngularBuildersPrerenderSchema": {
|
|
4389
|
+
"title": "Prerender Target",
|
|
4390
|
+
"type": "object",
|
|
4391
|
+
"properties": {
|
|
4392
|
+
"browserTarget": {
|
|
4393
|
+
"type": "string",
|
|
4394
|
+
"description": "Target to build.",
|
|
4395
|
+
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
|
|
4396
|
+
},
|
|
4397
|
+
"serverTarget": {
|
|
4398
|
+
"type": "string",
|
|
4399
|
+
"description": "Server target to use for prerendering the app.",
|
|
4400
|
+
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
|
|
4401
|
+
},
|
|
4402
|
+
"routesFile": {
|
|
4403
|
+
"type": "string",
|
|
4404
|
+
"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."
|
|
4405
|
+
},
|
|
4406
|
+
"routes": {
|
|
4407
|
+
"type": "array",
|
|
4408
|
+
"description": "The routes to render.",
|
|
4409
|
+
"items": {
|
|
4410
|
+
"minItems": 1,
|
|
4411
|
+
"type": "string",
|
|
4412
|
+
"uniqueItems": true
|
|
4413
|
+
},
|
|
4414
|
+
"default": []
|
|
4415
|
+
},
|
|
4416
|
+
"discoverRoutes": {
|
|
4417
|
+
"type": "boolean",
|
|
4418
|
+
"description": "Whether the builder should process the Angular Router configuration to find all unparameterized routes and prerender them.",
|
|
4419
|
+
"default": true
|
|
4420
|
+
}
|
|
4421
|
+
},
|
|
4422
|
+
"anyOf": [
|
|
4423
|
+
{},
|
|
4424
|
+
{}
|
|
4425
|
+
],
|
|
4426
|
+
"additionalProperties": false
|
|
4427
|
+
},
|
|
4428
|
+
"AngularDevkitBuildAngularBuildersSsrDevServerSchema": {
|
|
4429
|
+
"title": "SSR Dev Server Target",
|
|
4430
|
+
"description": "SSR Dev Server target options for Build Facade.",
|
|
4431
|
+
"type": "object",
|
|
4432
|
+
"properties": {
|
|
4433
|
+
"browserTarget": {
|
|
4434
|
+
"type": "string",
|
|
4435
|
+
"description": "Browser target to build.",
|
|
4436
|
+
"pattern": ".+:.+(:.+)?"
|
|
4437
|
+
},
|
|
4438
|
+
"serverTarget": {
|
|
4439
|
+
"type": "string",
|
|
4440
|
+
"description": "Server target to build.",
|
|
4441
|
+
"pattern": ".+:.+(:.+)?"
|
|
4442
|
+
},
|
|
4443
|
+
"host": {
|
|
4444
|
+
"type": "string",
|
|
4445
|
+
"description": "Host to listen on.",
|
|
4446
|
+
"default": "localhost"
|
|
4447
|
+
},
|
|
4448
|
+
"port": {
|
|
4449
|
+
"type": "number",
|
|
4450
|
+
"default": 4200,
|
|
4451
|
+
"description": "Port to start the development server at. Default is 4200. Pass 0 to get a dynamically assigned port."
|
|
4452
|
+
},
|
|
4453
|
+
"watch": {
|
|
4454
|
+
"type": "boolean",
|
|
4455
|
+
"description": "Rebuild on change.",
|
|
4456
|
+
"default": true
|
|
4457
|
+
},
|
|
4458
|
+
"publicHost": {
|
|
4459
|
+
"type": "string",
|
|
4460
|
+
"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."
|
|
4461
|
+
},
|
|
4462
|
+
"open": {
|
|
4463
|
+
"type": "boolean",
|
|
4464
|
+
"description": "Opens the url in default browser.",
|
|
4465
|
+
"default": false,
|
|
4466
|
+
"alias": "o"
|
|
4467
|
+
},
|
|
4468
|
+
"progress": {
|
|
4469
|
+
"type": "boolean",
|
|
4470
|
+
"description": "Log progress to the console while building."
|
|
4471
|
+
},
|
|
4472
|
+
"inspect": {
|
|
4473
|
+
"type": "boolean",
|
|
4474
|
+
"description": "Launch the development server in inspector mode and listen on address and port '127.0.0.1:9229'.",
|
|
4475
|
+
"default": false
|
|
4476
|
+
},
|
|
4477
|
+
"ssl": {
|
|
4478
|
+
"type": "boolean",
|
|
4479
|
+
"description": "Serve using HTTPS.",
|
|
4480
|
+
"default": false
|
|
4481
|
+
},
|
|
4482
|
+
"sslKey": {
|
|
4483
|
+
"type": "string",
|
|
4484
|
+
"description": "SSL key to use for serving HTTPS."
|
|
4485
|
+
},
|
|
4486
|
+
"sslCert": {
|
|
4487
|
+
"type": "string",
|
|
4488
|
+
"description": "SSL certificate to use for serving HTTPS."
|
|
4489
|
+
},
|
|
4490
|
+
"proxyConfig": {
|
|
4491
|
+
"type": "string",
|
|
4492
|
+
"description": "Proxy configuration file."
|
|
4493
|
+
},
|
|
4494
|
+
"verbose": {
|
|
4495
|
+
"type": "boolean",
|
|
4496
|
+
"description": "Adds more details to output logging."
|
|
4497
|
+
}
|
|
4498
|
+
},
|
|
4499
|
+
"additionalProperties": false
|
|
4500
|
+
},
|
|
3991
4501
|
"AngularDevkitBuildAngularBuildersServerSchema": {
|
|
3992
4502
|
"title": "Universal Target",
|
|
3993
4503
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "17.1.0-
|
|
3
|
+
"version": "17.1.0-rc.0",
|
|
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.1701.0-
|
|
29
|
-
"@angular-devkit/core": "17.1.0-
|
|
30
|
-
"@angular-devkit/schematics": "17.1.0-
|
|
31
|
-
"@schematics/angular": "17.1.0-
|
|
28
|
+
"@angular-devkit/architect": "0.1701.0-rc.0",
|
|
29
|
+
"@angular-devkit/core": "17.1.0-rc.0",
|
|
30
|
+
"@angular-devkit/schematics": "17.1.0-rc.0",
|
|
31
|
+
"@schematics/angular": "17.1.0-rc.0",
|
|
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.1.0-
|
|
51
|
-
"@angular/ssr": "17.1.0-
|
|
52
|
-
"@angular-devkit/architect": "0.1701.0-
|
|
53
|
-
"@angular-devkit/build-angular": "17.1.0-
|
|
54
|
-
"@angular-devkit/build-webpack": "0.1701.0-
|
|
55
|
-
"@angular-devkit/core": "17.1.0-
|
|
56
|
-
"@angular-devkit/schematics": "17.1.0-
|
|
50
|
+
"@angular/cli": "17.1.0-rc.0",
|
|
51
|
+
"@angular/ssr": "17.1.0-rc.0",
|
|
52
|
+
"@angular-devkit/architect": "0.1701.0-rc.0",
|
|
53
|
+
"@angular-devkit/build-angular": "17.1.0-rc.0",
|
|
54
|
+
"@angular-devkit/build-webpack": "0.1701.0-rc.0",
|
|
55
|
+
"@angular-devkit/core": "17.1.0-rc.0",
|
|
56
|
+
"@angular-devkit/schematics": "17.1.0-rc.0"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
@@ -6,14 +6,36 @@
|
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
9
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
33
|
exports.ArchitectBaseCommandModule = void 0;
|
|
11
34
|
const architect_1 = require("@angular-devkit/architect");
|
|
12
35
|
const node_1 = require("@angular-devkit/architect/node");
|
|
13
36
|
const core_1 = require("@angular-devkit/core");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const path_1 = require("path");
|
|
37
|
+
const node_fs_1 = require("node:fs");
|
|
38
|
+
const node_path_1 = require("node:path");
|
|
17
39
|
const analytics_1 = require("../analytics/analytics");
|
|
18
40
|
const analytics_parameters_1 = require("../analytics/analytics-parameters");
|
|
19
41
|
const error_1 = require("../utilities/error");
|
|
@@ -139,14 +161,12 @@ class ArchitectBaseCommandModule extends command_module_1.CommandModule {
|
|
|
139
161
|
if (!basePath) {
|
|
140
162
|
return;
|
|
141
163
|
}
|
|
142
|
-
// Check
|
|
143
|
-
if (
|
|
164
|
+
// Check if yarn PnP is used. https://yarnpkg.com/advanced/pnpapi#processversionspnp
|
|
165
|
+
if (process.versions.pnp) {
|
|
144
166
|
return;
|
|
145
167
|
}
|
|
146
|
-
// Check for yarn PnP
|
|
147
|
-
if ((0,
|
|
148
|
-
(0, fs_1.existsSync)((0, path_1.resolve)(basePath, '.pnp.cjs')) ||
|
|
149
|
-
(0, fs_1.existsSync)((0, path_1.resolve)(basePath, '.pnp.mjs'))) {
|
|
168
|
+
// Check for a `node_modules` directory (npm, yarn non-PnP, etc.)
|
|
169
|
+
if ((0, node_fs_1.existsSync)((0, node_path_1.resolve)(basePath, 'node_modules'))) {
|
|
150
170
|
return;
|
|
151
171
|
}
|
|
152
172
|
this.context.logger.warn(`Node packages may not be installed. Try installing with '${this.context.packageManager.name} install'.`);
|
|
@@ -172,13 +192,14 @@ class ArchitectBaseCommandModule extends command_module_1.CommandModule {
|
|
|
172
192
|
const packageToInstall = await this.getMissingTargetPackageToInstall(choices);
|
|
173
193
|
if (packageToInstall) {
|
|
174
194
|
// Example run: `ng add @angular-eslint/schematics`.
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
195
|
+
const AddCommandModule = (await Promise.resolve().then(() => __importStar(require('../commands/add/cli')))).default;
|
|
196
|
+
await new AddCommandModule(this.context).run({
|
|
197
|
+
interactive: true,
|
|
198
|
+
force: false,
|
|
199
|
+
dryRun: false,
|
|
200
|
+
defaults: false,
|
|
201
|
+
collection: packageToInstall,
|
|
178
202
|
});
|
|
179
|
-
if (error) {
|
|
180
|
-
throw error;
|
|
181
|
-
}
|
|
182
203
|
}
|
|
183
204
|
}
|
|
184
205
|
else {
|
|
@@ -14,7 +14,7 @@ interface AddCommandArgs extends SchematicsCommandArgs {
|
|
|
14
14
|
registry?: string;
|
|
15
15
|
'skip-confirmation'?: boolean;
|
|
16
16
|
}
|
|
17
|
-
export default class
|
|
17
|
+
export default class AddCommandModule extends SchematicsCommandModule implements CommandModuleImplementation<AddCommandArgs> {
|
|
18
18
|
command: string;
|
|
19
19
|
describe: string;
|
|
20
20
|
longDescriptionPath: string;
|
package/src/commands/add/cli.js
CHANGED
|
@@ -36,7 +36,7 @@ const packageVersionExclusions = {
|
|
|
36
36
|
// @angular/material@7.x versions have unbounded peer dependency ranges (>=7.0.0).
|
|
37
37
|
'@angular/material': '7.x',
|
|
38
38
|
};
|
|
39
|
-
class
|
|
39
|
+
class AddCommandModule extends schematics_command_module_1.SchematicsCommandModule {
|
|
40
40
|
command = 'add <collection>';
|
|
41
41
|
describe = 'Adds support for an external library to your project.';
|
|
42
42
|
longDescriptionPath = (0, path_1.join)(__dirname, 'long-description.md');
|
|
@@ -362,4 +362,4 @@ class AddCommadModule extends schematics_command_module_1.SchematicsCommandModul
|
|
|
362
362
|
return false;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
exports.default =
|
|
365
|
+
exports.default = AddCommandModule;
|
|
@@ -10,8 +10,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
const
|
|
14
|
-
const
|
|
13
|
+
const node_module_1 = __importDefault(require("node:module"));
|
|
14
|
+
const node_path_1 = require("node:path");
|
|
15
15
|
const command_module_1 = require("../../command-builder/command-module");
|
|
16
16
|
const color_1 = require("../../utilities/color");
|
|
17
17
|
const command_config_1 = require("../command-config");
|
|
@@ -22,9 +22,7 @@ const SUPPORTED_NODE_MAJORS = [18, 20];
|
|
|
22
22
|
const PACKAGE_PATTERNS = [
|
|
23
23
|
/^@angular\/.*/,
|
|
24
24
|
/^@angular-devkit\/.*/,
|
|
25
|
-
/^@bazel\/.*/,
|
|
26
25
|
/^@ngtools\/.*/,
|
|
27
|
-
/^@nguniversal\/.*/,
|
|
28
26
|
/^@schematics\/.*/,
|
|
29
27
|
/^rxjs$/,
|
|
30
28
|
/^typescript$/,
|
|
@@ -42,9 +40,9 @@ class VersionCommandModule extends command_module_1.CommandModule {
|
|
|
42
40
|
}
|
|
43
41
|
async run() {
|
|
44
42
|
const { packageManager, logger, root } = this.context;
|
|
45
|
-
const localRequire =
|
|
43
|
+
const localRequire = node_module_1.default.createRequire((0, node_path_1.resolve)(__filename, '../../../'));
|
|
46
44
|
// Trailing slash is used to allow the path to be treated as a directory
|
|
47
|
-
const workspaceRequire =
|
|
45
|
+
const workspaceRequire = node_module_1.default.createRequire(root + '/');
|
|
48
46
|
const cliPackage = localRequire('./package.json');
|
|
49
47
|
let workspacePackage;
|
|
50
48
|
try {
|
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.1.0-
|
|
28
|
+
// export const VERSION = new Version('17.1.0-rc.0');
|
|
29
29
|
exports.VERSION = new Version(JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, '../../package.json'), 'utf-8')).version);
|