@angular/cli 14.0.4 → 14.0.7
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
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"defaultProject": {
|
|
24
24
|
"type": "string",
|
|
25
25
|
"description": "Default project name used in commands.",
|
|
26
|
-
"
|
|
26
|
+
"deprecated": true
|
|
27
27
|
},
|
|
28
28
|
"projects": {
|
|
29
29
|
"type": "object",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"defaultCollection": {
|
|
47
47
|
"description": "The default schematics collection to use.",
|
|
48
48
|
"type": "string",
|
|
49
|
-
"
|
|
49
|
+
"deprecated": true
|
|
50
50
|
},
|
|
51
51
|
"schematicCollections": {
|
|
52
52
|
"type": "array",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"defaultCollection": {
|
|
134
134
|
"description": "The default schematics collection to use.",
|
|
135
135
|
"type": "string",
|
|
136
|
-
"
|
|
136
|
+
"deprecated": true
|
|
137
137
|
},
|
|
138
138
|
"schematicCollections": {
|
|
139
139
|
"type": "array",
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
"defaultCollection": {
|
|
264
264
|
"description": "The default schematics collection to use.",
|
|
265
265
|
"type": "string",
|
|
266
|
-
"
|
|
266
|
+
"deprecated": true
|
|
267
267
|
},
|
|
268
268
|
"schematicCollections": {
|
|
269
269
|
"type": "array",
|
|
@@ -696,20 +696,17 @@
|
|
|
696
696
|
"$default": {
|
|
697
697
|
"$source": "argv",
|
|
698
698
|
"index": 0
|
|
699
|
-
}
|
|
700
|
-
"x-prompt": "What name would you like to use for the application?"
|
|
699
|
+
}
|
|
701
700
|
},
|
|
702
701
|
"inlineStyle": {
|
|
703
702
|
"description": "Include styles inline in the root component.ts file. Only CSS styles can be included inline. Default is false, meaning that an external styles file is created and referenced in the root component.ts file.",
|
|
704
703
|
"type": "boolean",
|
|
705
|
-
"alias": "s"
|
|
706
|
-
"x-user-analytics": 9
|
|
704
|
+
"alias": "s"
|
|
707
705
|
},
|
|
708
706
|
"inlineTemplate": {
|
|
709
707
|
"description": "Include template inline in the root component.ts file. Default is false, meaning that an external template file is created and referenced in the root component.ts file. ",
|
|
710
708
|
"type": "boolean",
|
|
711
|
-
"alias": "t"
|
|
712
|
-
"x-user-analytics": 10
|
|
709
|
+
"alias": "t"
|
|
713
710
|
},
|
|
714
711
|
"viewEncapsulation": {
|
|
715
712
|
"description": "The view encapsulation strategy to use in the new application.",
|
|
@@ -718,15 +715,12 @@
|
|
|
718
715
|
"None",
|
|
719
716
|
"ShadowDom"
|
|
720
717
|
],
|
|
721
|
-
"type": "string"
|
|
722
|
-
"x-user-analytics": 11
|
|
718
|
+
"type": "string"
|
|
723
719
|
},
|
|
724
720
|
"routing": {
|
|
725
721
|
"type": "boolean",
|
|
726
722
|
"description": "Create a routing NgModule.",
|
|
727
|
-
"default": false
|
|
728
|
-
"x-prompt": "Would you like to add Angular routing?",
|
|
729
|
-
"x-user-analytics": 17
|
|
723
|
+
"default": false
|
|
730
724
|
},
|
|
731
725
|
"prefix": {
|
|
732
726
|
"type": "string",
|
|
@@ -744,37 +738,13 @@
|
|
|
744
738
|
"scss",
|
|
745
739
|
"sass",
|
|
746
740
|
"less"
|
|
747
|
-
]
|
|
748
|
-
"x-prompt": {
|
|
749
|
-
"message": "Which stylesheet format would you like to use?",
|
|
750
|
-
"type": "list",
|
|
751
|
-
"items": [
|
|
752
|
-
{
|
|
753
|
-
"value": "css",
|
|
754
|
-
"label": "CSS"
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
"value": "scss",
|
|
758
|
-
"label": "SCSS [ https://sass-lang.com/documentation/syntax#scss ]"
|
|
759
|
-
},
|
|
760
|
-
{
|
|
761
|
-
"value": "sass",
|
|
762
|
-
"label": "Sass [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]"
|
|
763
|
-
},
|
|
764
|
-
{
|
|
765
|
-
"value": "less",
|
|
766
|
-
"label": "Less [ http://lesscss.org ]"
|
|
767
|
-
}
|
|
768
|
-
]
|
|
769
|
-
},
|
|
770
|
-
"x-user-analytics": 5
|
|
741
|
+
]
|
|
771
742
|
},
|
|
772
743
|
"skipTests": {
|
|
773
744
|
"description": "Do not create \"spec.ts\" test files for the application.",
|
|
774
745
|
"type": "boolean",
|
|
775
746
|
"default": false,
|
|
776
|
-
"alias": "S"
|
|
777
|
-
"x-user-analytics": 12
|
|
747
|
+
"alias": "S"
|
|
778
748
|
},
|
|
779
749
|
"skipPackageJson": {
|
|
780
750
|
"type": "boolean",
|
|
@@ -784,8 +754,7 @@
|
|
|
784
754
|
"minimal": {
|
|
785
755
|
"description": "Create a bare-bones project without any testing frameworks. (Use for learning purposes only.)",
|
|
786
756
|
"type": "boolean",
|
|
787
|
-
"default": false
|
|
788
|
-
"x-user-analytics": 14
|
|
757
|
+
"default": false
|
|
789
758
|
},
|
|
790
759
|
"skipInstall": {
|
|
791
760
|
"description": "Skip installing dependency packages.",
|
|
@@ -795,8 +764,7 @@
|
|
|
795
764
|
"strict": {
|
|
796
765
|
"description": "Creates an application with stricter bundle budgets settings.",
|
|
797
766
|
"type": "boolean",
|
|
798
|
-
"default": true
|
|
799
|
-
"x-user-analytics": 7
|
|
767
|
+
"default": true
|
|
800
768
|
}
|
|
801
769
|
}
|
|
802
770
|
},
|
|
@@ -812,8 +780,7 @@
|
|
|
812
780
|
"$default": {
|
|
813
781
|
"$source": "argv",
|
|
814
782
|
"index": 0
|
|
815
|
-
}
|
|
816
|
-
"x-prompt": "What name would you like to use for the class?"
|
|
783
|
+
}
|
|
817
784
|
},
|
|
818
785
|
"path": {
|
|
819
786
|
"type": "string",
|
|
@@ -834,8 +801,7 @@
|
|
|
834
801
|
"skipTests": {
|
|
835
802
|
"type": "boolean",
|
|
836
803
|
"description": "Do not create \"spec.ts\" test files for the new class.",
|
|
837
|
-
"default": false
|
|
838
|
-
"x-user-analytics": 12
|
|
804
|
+
"default": false
|
|
839
805
|
},
|
|
840
806
|
"type": {
|
|
841
807
|
"type": "string",
|
|
@@ -871,8 +837,7 @@
|
|
|
871
837
|
"$default": {
|
|
872
838
|
"$source": "argv",
|
|
873
839
|
"index": 0
|
|
874
|
-
}
|
|
875
|
-
"x-prompt": "What name would you like to use for the component?"
|
|
840
|
+
}
|
|
876
841
|
},
|
|
877
842
|
"displayBlock": {
|
|
878
843
|
"description": "Specifies if the style will contain `:host { display: block; }`.",
|
|
@@ -884,21 +849,18 @@
|
|
|
884
849
|
"description": "Include styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file.",
|
|
885
850
|
"type": "boolean",
|
|
886
851
|
"default": false,
|
|
887
|
-
"alias": "s"
|
|
888
|
-
"x-user-analytics": 9
|
|
852
|
+
"alias": "s"
|
|
889
853
|
},
|
|
890
854
|
"inlineTemplate": {
|
|
891
855
|
"description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.",
|
|
892
856
|
"type": "boolean",
|
|
893
857
|
"default": false,
|
|
894
|
-
"alias": "t"
|
|
895
|
-
"x-user-analytics": 10
|
|
858
|
+
"alias": "t"
|
|
896
859
|
},
|
|
897
860
|
"standalone": {
|
|
898
861
|
"description": "Whether the generated component is standalone.",
|
|
899
862
|
"type": "boolean",
|
|
900
|
-
"default": false
|
|
901
|
-
"x-user-analytics": 15
|
|
863
|
+
"default": false
|
|
902
864
|
},
|
|
903
865
|
"viewEncapsulation": {
|
|
904
866
|
"description": "The view encapsulation strategy to use in the new component.",
|
|
@@ -908,8 +870,7 @@
|
|
|
908
870
|
"ShadowDom"
|
|
909
871
|
],
|
|
910
872
|
"type": "string",
|
|
911
|
-
"alias": "v"
|
|
912
|
-
"x-user-analytics": 11
|
|
873
|
+
"alias": "v"
|
|
913
874
|
},
|
|
914
875
|
"changeDetection": {
|
|
915
876
|
"description": "The change detection strategy to use in the new component.",
|
|
@@ -945,8 +906,7 @@
|
|
|
945
906
|
"sass",
|
|
946
907
|
"less",
|
|
947
908
|
"none"
|
|
948
|
-
]
|
|
949
|
-
"x-user-analytics": 5
|
|
909
|
+
]
|
|
950
910
|
},
|
|
951
911
|
"type": {
|
|
952
912
|
"type": "string",
|
|
@@ -956,8 +916,7 @@
|
|
|
956
916
|
"skipTests": {
|
|
957
917
|
"type": "boolean",
|
|
958
918
|
"description": "Do not create \"spec.ts\" test files for the new component.",
|
|
959
|
-
"default": false
|
|
960
|
-
"x-user-analytics": 12
|
|
919
|
+
"default": false
|
|
961
920
|
},
|
|
962
921
|
"flat": {
|
|
963
922
|
"type": "boolean",
|
|
@@ -967,8 +926,7 @@
|
|
|
967
926
|
"skipImport": {
|
|
968
927
|
"type": "boolean",
|
|
969
928
|
"description": "Do not import this component into the owning NgModule.",
|
|
970
|
-
"default": false
|
|
971
|
-
"x-user-analytics": 18
|
|
929
|
+
"default": false
|
|
972
930
|
},
|
|
973
931
|
"selector": {
|
|
974
932
|
"type": "string",
|
|
@@ -988,8 +946,7 @@
|
|
|
988
946
|
"export": {
|
|
989
947
|
"type": "boolean",
|
|
990
948
|
"default": false,
|
|
991
|
-
"description": "The declaring NgModule exports this component."
|
|
992
|
-
"x-user-analytics": 19
|
|
949
|
+
"description": "The declaring NgModule exports this component."
|
|
993
950
|
}
|
|
994
951
|
}
|
|
995
952
|
},
|
|
@@ -1005,8 +962,7 @@
|
|
|
1005
962
|
"$default": {
|
|
1006
963
|
"$source": "argv",
|
|
1007
964
|
"index": 0
|
|
1008
|
-
}
|
|
1009
|
-
"x-prompt": "What name would you like to use for the directive?"
|
|
965
|
+
}
|
|
1010
966
|
},
|
|
1011
967
|
"path": {
|
|
1012
968
|
"type": "string",
|
|
@@ -1041,14 +997,12 @@
|
|
|
1041
997
|
"skipTests": {
|
|
1042
998
|
"type": "boolean",
|
|
1043
999
|
"description": "Do not create \"spec.ts\" test files for the new class.",
|
|
1044
|
-
"default": false
|
|
1045
|
-
"x-user-analytics": 12
|
|
1000
|
+
"default": false
|
|
1046
1001
|
},
|
|
1047
1002
|
"skipImport": {
|
|
1048
1003
|
"type": "boolean",
|
|
1049
1004
|
"description": "Do not import this directive into the owning NgModule.",
|
|
1050
|
-
"default": false
|
|
1051
|
-
"x-user-analytics": 18
|
|
1005
|
+
"default": false
|
|
1052
1006
|
},
|
|
1053
1007
|
"selector": {
|
|
1054
1008
|
"type": "string",
|
|
@@ -1058,8 +1012,7 @@
|
|
|
1058
1012
|
"standalone": {
|
|
1059
1013
|
"description": "Whether the generated directive is standalone.",
|
|
1060
1014
|
"type": "boolean",
|
|
1061
|
-
"default": false
|
|
1062
|
-
"x-user-analytics": 15
|
|
1015
|
+
"default": false
|
|
1063
1016
|
},
|
|
1064
1017
|
"flat": {
|
|
1065
1018
|
"type": "boolean",
|
|
@@ -1074,8 +1027,7 @@
|
|
|
1074
1027
|
"export": {
|
|
1075
1028
|
"type": "boolean",
|
|
1076
1029
|
"default": false,
|
|
1077
|
-
"description": "The declaring NgModule exports this directive."
|
|
1078
|
-
"x-user-analytics": 19
|
|
1030
|
+
"description": "The declaring NgModule exports this directive."
|
|
1079
1031
|
}
|
|
1080
1032
|
}
|
|
1081
1033
|
},
|
|
@@ -1091,8 +1043,7 @@
|
|
|
1091
1043
|
"$default": {
|
|
1092
1044
|
"$source": "argv",
|
|
1093
1045
|
"index": 0
|
|
1094
|
-
}
|
|
1095
|
-
"x-prompt": "What name would you like to use for the enum?"
|
|
1046
|
+
}
|
|
1096
1047
|
},
|
|
1097
1048
|
"path": {
|
|
1098
1049
|
"type": "string",
|
|
@@ -1128,14 +1079,12 @@
|
|
|
1128
1079
|
"$default": {
|
|
1129
1080
|
"$source": "argv",
|
|
1130
1081
|
"index": 0
|
|
1131
|
-
}
|
|
1132
|
-
"x-prompt": "What name would you like to use for the guard?"
|
|
1082
|
+
}
|
|
1133
1083
|
},
|
|
1134
1084
|
"skipTests": {
|
|
1135
1085
|
"type": "boolean",
|
|
1136
1086
|
"description": "Do not create \"spec.ts\" test files for the new guard.",
|
|
1137
|
-
"default": false
|
|
1138
|
-
"x-user-analytics": 12
|
|
1087
|
+
"default": false
|
|
1139
1088
|
},
|
|
1140
1089
|
"flat": {
|
|
1141
1090
|
"type": "boolean",
|
|
@@ -1174,8 +1123,7 @@
|
|
|
1174
1123
|
},
|
|
1175
1124
|
"default": [
|
|
1176
1125
|
"CanActivate"
|
|
1177
|
-
]
|
|
1178
|
-
"x-prompt": "Which interfaces would you like to implement?"
|
|
1126
|
+
]
|
|
1179
1127
|
}
|
|
1180
1128
|
}
|
|
1181
1129
|
},
|
|
@@ -1191,8 +1139,7 @@
|
|
|
1191
1139
|
"$default": {
|
|
1192
1140
|
"$source": "argv",
|
|
1193
1141
|
"index": 0
|
|
1194
|
-
}
|
|
1195
|
-
"x-prompt": "What name would you like to use for the interceptor?"
|
|
1142
|
+
}
|
|
1196
1143
|
},
|
|
1197
1144
|
"path": {
|
|
1198
1145
|
"type": "string",
|
|
@@ -1218,8 +1165,7 @@
|
|
|
1218
1165
|
"skipTests": {
|
|
1219
1166
|
"type": "boolean",
|
|
1220
1167
|
"description": "Do not create \"spec.ts\" test files for the new interceptor.",
|
|
1221
|
-
"default": false
|
|
1222
|
-
"x-user-analytics": 12
|
|
1168
|
+
"default": false
|
|
1223
1169
|
}
|
|
1224
1170
|
}
|
|
1225
1171
|
},
|
|
@@ -1235,8 +1181,7 @@
|
|
|
1235
1181
|
"$default": {
|
|
1236
1182
|
"$source": "argv",
|
|
1237
1183
|
"index": 0
|
|
1238
|
-
}
|
|
1239
|
-
"x-prompt": "What name would you like to use for the interface?"
|
|
1184
|
+
}
|
|
1240
1185
|
},
|
|
1241
1186
|
"path": {
|
|
1242
1187
|
"type": "string",
|
|
@@ -1272,7 +1217,6 @@
|
|
|
1272
1217
|
"title": "Library Options Schema",
|
|
1273
1218
|
"type": "object",
|
|
1274
1219
|
"description": "Creates a new, generic library project in the current workspace.",
|
|
1275
|
-
"long-description": "./library-long.md",
|
|
1276
1220
|
"additionalProperties": false,
|
|
1277
1221
|
"properties": {
|
|
1278
1222
|
"name": {
|
|
@@ -1282,8 +1226,7 @@
|
|
|
1282
1226
|
"$default": {
|
|
1283
1227
|
"$source": "argv",
|
|
1284
1228
|
"index": 0
|
|
1285
|
-
}
|
|
1286
|
-
"x-prompt": "What name would you like to use for the library?"
|
|
1229
|
+
}
|
|
1287
1230
|
},
|
|
1288
1231
|
"entryFile": {
|
|
1289
1232
|
"type": "string",
|
|
@@ -1327,8 +1270,7 @@
|
|
|
1327
1270
|
"$default": {
|
|
1328
1271
|
"$source": "argv",
|
|
1329
1272
|
"index": 0
|
|
1330
|
-
}
|
|
1331
|
-
"x-prompt": "What name would you like to use for the pipe?"
|
|
1273
|
+
}
|
|
1332
1274
|
},
|
|
1333
1275
|
"path": {
|
|
1334
1276
|
"type": "string",
|
|
@@ -1354,20 +1296,17 @@
|
|
|
1354
1296
|
"skipTests": {
|
|
1355
1297
|
"type": "boolean",
|
|
1356
1298
|
"description": "Do not create \"spec.ts\" test files for the new pipe.",
|
|
1357
|
-
"default": false
|
|
1358
|
-
"x-user-analytics": 12
|
|
1299
|
+
"default": false
|
|
1359
1300
|
},
|
|
1360
1301
|
"skipImport": {
|
|
1361
1302
|
"type": "boolean",
|
|
1362
1303
|
"default": false,
|
|
1363
|
-
"description": "Do not import this pipe into the owning NgModule."
|
|
1364
|
-
"x-user-analytics": 18
|
|
1304
|
+
"description": "Do not import this pipe into the owning NgModule."
|
|
1365
1305
|
},
|
|
1366
1306
|
"standalone": {
|
|
1367
1307
|
"description": "Whether the generated pipe is standalone.",
|
|
1368
1308
|
"type": "boolean",
|
|
1369
|
-
"default": false
|
|
1370
|
-
"x-user-analytics": 15
|
|
1309
|
+
"default": false
|
|
1371
1310
|
},
|
|
1372
1311
|
"module": {
|
|
1373
1312
|
"type": "string",
|
|
@@ -1377,8 +1316,7 @@
|
|
|
1377
1316
|
"export": {
|
|
1378
1317
|
"type": "boolean",
|
|
1379
1318
|
"default": false,
|
|
1380
|
-
"description": "The declaring NgModule exports this pipe."
|
|
1381
|
-
"x-user-analytics": 19
|
|
1319
|
+
"description": "The declaring NgModule exports this pipe."
|
|
1382
1320
|
}
|
|
1383
1321
|
}
|
|
1384
1322
|
},
|
|
@@ -1398,8 +1336,7 @@
|
|
|
1398
1336
|
"$default": {
|
|
1399
1337
|
"$source": "argv",
|
|
1400
1338
|
"index": 0
|
|
1401
|
-
}
|
|
1402
|
-
"x-prompt": "What name would you like to use for the new workspace and initial project?"
|
|
1339
|
+
}
|
|
1403
1340
|
},
|
|
1404
1341
|
"skipInstall": {
|
|
1405
1342
|
"description": "Do not install dependency packages.",
|
|
@@ -1450,14 +1387,12 @@
|
|
|
1450
1387
|
"inlineStyle": {
|
|
1451
1388
|
"description": "Include styles inline in the component TS file. By default, an external styles file is created and referenced in the component TypeScript file.",
|
|
1452
1389
|
"type": "boolean",
|
|
1453
|
-
"alias": "s"
|
|
1454
|
-
"x-user-analytics": 9
|
|
1390
|
+
"alias": "s"
|
|
1455
1391
|
},
|
|
1456
1392
|
"inlineTemplate": {
|
|
1457
1393
|
"description": "Include template inline in the component TS file. By default, an external template file is created and referenced in the component TypeScript file.",
|
|
1458
1394
|
"type": "boolean",
|
|
1459
|
-
"alias": "t"
|
|
1460
|
-
"x-user-analytics": 10
|
|
1395
|
+
"alias": "t"
|
|
1461
1396
|
},
|
|
1462
1397
|
"viewEncapsulation": {
|
|
1463
1398
|
"description": "The view encapsulation strategy to use in the initial project.",
|
|
@@ -1466,8 +1401,7 @@
|
|
|
1466
1401
|
"None",
|
|
1467
1402
|
"ShadowDom"
|
|
1468
1403
|
],
|
|
1469
|
-
"type": "string"
|
|
1470
|
-
"x-user-analytics": 11
|
|
1404
|
+
"type": "string"
|
|
1471
1405
|
},
|
|
1472
1406
|
"version": {
|
|
1473
1407
|
"type": "string",
|
|
@@ -1479,8 +1413,7 @@
|
|
|
1479
1413
|
},
|
|
1480
1414
|
"routing": {
|
|
1481
1415
|
"type": "boolean",
|
|
1482
|
-
"description": "Generate a routing module for the initial project."
|
|
1483
|
-
"x-user-analytics": 17
|
|
1416
|
+
"description": "Generate a routing module for the initial project."
|
|
1484
1417
|
},
|
|
1485
1418
|
"prefix": {
|
|
1486
1419
|
"type": "string",
|
|
@@ -1498,15 +1431,13 @@
|
|
|
1498
1431
|
"scss",
|
|
1499
1432
|
"sass",
|
|
1500
1433
|
"less"
|
|
1501
|
-
]
|
|
1502
|
-
"x-user-analytics": 5
|
|
1434
|
+
]
|
|
1503
1435
|
},
|
|
1504
1436
|
"skipTests": {
|
|
1505
1437
|
"description": "Do not generate \"spec.ts\" test files for the new project.",
|
|
1506
1438
|
"type": "boolean",
|
|
1507
1439
|
"default": false,
|
|
1508
|
-
"alias": "S"
|
|
1509
|
-
"x-user-analytics": 12
|
|
1440
|
+
"alias": "S"
|
|
1510
1441
|
},
|
|
1511
1442
|
"createApplication": {
|
|
1512
1443
|
"description": "Create a new initial application project in the 'src' folder of the new workspace. When false, creates an empty workspace with no initial application. You can then use the generate application command so that all applications are created in the projects folder.",
|
|
@@ -1516,14 +1447,12 @@
|
|
|
1516
1447
|
"minimal": {
|
|
1517
1448
|
"description": "Create a workspace without any testing frameworks. (Use for learning purposes only.)",
|
|
1518
1449
|
"type": "boolean",
|
|
1519
|
-
"default": false
|
|
1520
|
-
"x-user-analytics": 14
|
|
1450
|
+
"default": false
|
|
1521
1451
|
},
|
|
1522
1452
|
"strict": {
|
|
1523
1453
|
"description": "Creates a workspace with stricter type checking and stricter bundle budgets settings. This setting helps improve maintainability and catch bugs ahead of time. For more information, see https://angular.io/guide/strict-mode",
|
|
1524
1454
|
"type": "boolean",
|
|
1525
|
-
"default": true
|
|
1526
|
-
"x-user-analytics": 7
|
|
1455
|
+
"default": true
|
|
1527
1456
|
},
|
|
1528
1457
|
"packageManager": {
|
|
1529
1458
|
"description": "The package manager used to install dependencies.",
|
|
@@ -1549,14 +1478,12 @@
|
|
|
1549
1478
|
"$default": {
|
|
1550
1479
|
"$source": "argv",
|
|
1551
1480
|
"index": 0
|
|
1552
|
-
}
|
|
1553
|
-
"x-prompt": "What name would you like to use for the resolver?"
|
|
1481
|
+
}
|
|
1554
1482
|
},
|
|
1555
1483
|
"skipTests": {
|
|
1556
1484
|
"type": "boolean",
|
|
1557
1485
|
"description": "Do not create \"spec.ts\" test files for the new resolver.",
|
|
1558
|
-
"default": false
|
|
1559
|
-
"x-user-analytics": 12
|
|
1486
|
+
"default": false
|
|
1560
1487
|
},
|
|
1561
1488
|
"flat": {
|
|
1562
1489
|
"type": "boolean",
|
|
@@ -1593,8 +1520,7 @@
|
|
|
1593
1520
|
"$default": {
|
|
1594
1521
|
"$source": "argv",
|
|
1595
1522
|
"index": 0
|
|
1596
|
-
}
|
|
1597
|
-
"x-prompt": "What name would you like to use for the service?"
|
|
1523
|
+
}
|
|
1598
1524
|
},
|
|
1599
1525
|
"path": {
|
|
1600
1526
|
"type": "string",
|
|
@@ -1619,8 +1545,7 @@
|
|
|
1619
1545
|
"skipTests": {
|
|
1620
1546
|
"type": "boolean",
|
|
1621
1547
|
"description": "Do not create \"spec.ts\" test files for the new service.",
|
|
1622
|
-
"default": false
|
|
1623
|
-
"x-user-analytics": 12
|
|
1548
|
+
"default": false
|
|
1624
1549
|
}
|
|
1625
1550
|
}
|
|
1626
1551
|
},
|
|
@@ -1652,8 +1577,7 @@
|
|
|
1652
1577
|
"$default": {
|
|
1653
1578
|
"$source": "argv",
|
|
1654
1579
|
"index": 0
|
|
1655
|
-
}
|
|
1656
|
-
"x-prompt": "What name would you like to use for the worker?"
|
|
1580
|
+
}
|
|
1657
1581
|
},
|
|
1658
1582
|
"snippet": {
|
|
1659
1583
|
"type": "boolean",
|
|
@@ -1820,7 +1744,6 @@
|
|
|
1820
1744
|
},
|
|
1821
1745
|
"optimization": {
|
|
1822
1746
|
"description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.",
|
|
1823
|
-
"x-user-analytics": 16,
|
|
1824
1747
|
"default": true,
|
|
1825
1748
|
"oneOf": [
|
|
1826
1749
|
{
|
|
@@ -1903,7 +1826,6 @@
|
|
|
1903
1826
|
"aot": {
|
|
1904
1827
|
"type": "boolean",
|
|
1905
1828
|
"description": "Build using Ahead of Time compilation.",
|
|
1906
|
-
"x-user-analytics": 13,
|
|
1907
1829
|
"default": true
|
|
1908
1830
|
},
|
|
1909
1831
|
"sourceMap": {
|
|
@@ -1958,7 +1880,7 @@
|
|
|
1958
1880
|
"deployUrl": {
|
|
1959
1881
|
"type": "string",
|
|
1960
1882
|
"description": "URL where files will be deployed.",
|
|
1961
|
-
"
|
|
1883
|
+
"deprecated": true
|
|
1962
1884
|
},
|
|
1963
1885
|
"verbose": {
|
|
1964
1886
|
"type": "boolean",
|
|
@@ -2768,7 +2690,6 @@
|
|
|
2768
2690
|
},
|
|
2769
2691
|
"optimization": {
|
|
2770
2692
|
"description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking and dead-code elimination. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.",
|
|
2771
|
-
"x-user-analytics": 16,
|
|
2772
2693
|
"default": true,
|
|
2773
2694
|
"oneOf": [
|
|
2774
2695
|
{
|
|
@@ -2846,7 +2767,7 @@
|
|
|
2846
2767
|
"deployUrl": {
|
|
2847
2768
|
"type": "string",
|
|
2848
2769
|
"description": "URL where files will be deployed.",
|
|
2849
|
-
"
|
|
2770
|
+
"deprecated": true
|
|
2850
2771
|
},
|
|
2851
2772
|
"verbose": {
|
|
2852
2773
|
"type": "boolean",
|
package/lib/init.js
CHANGED
|
@@ -63,6 +63,7 @@ let forceExit = false;
|
|
|
63
63
|
return (await Promise.resolve().then(() => __importStar(require('./cli')))).default;
|
|
64
64
|
}
|
|
65
65
|
let cli;
|
|
66
|
+
const rawCommandName = process.argv[2];
|
|
66
67
|
try {
|
|
67
68
|
// No error implies a projectLocalCli, which will load whatever
|
|
68
69
|
// version of ng-cli you have installed in a local package.json
|
|
@@ -84,6 +85,10 @@ let forceExit = false;
|
|
|
84
85
|
// Ensure older versions of the CLI fully exit
|
|
85
86
|
if ((0, semver_1.major)(localVersion) < 14) {
|
|
86
87
|
forceExit = true;
|
|
88
|
+
// Versions prior to 14 didn't implement completion command.
|
|
89
|
+
if (rawCommandName === 'completion') {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
87
92
|
}
|
|
88
93
|
let isGlobalGreater = false;
|
|
89
94
|
try {
|
|
@@ -93,7 +98,6 @@ let forceExit = false;
|
|
|
93
98
|
// eslint-disable-next-line no-console
|
|
94
99
|
console.error('Version mismatch check skipped. Unable to compare local version: ' + error);
|
|
95
100
|
}
|
|
96
|
-
const rawCommandName = process.argv[2];
|
|
97
101
|
// When using the completion command, don't show the warning as otherwise this will break completion.
|
|
98
102
|
if (isGlobalGreater && rawCommandName !== 'completion') {
|
|
99
103
|
// If using the update command and the global version is greater, use the newer update command
|
|
@@ -125,14 +129,10 @@ let forceExit = false;
|
|
|
125
129
|
}
|
|
126
130
|
return cli;
|
|
127
131
|
})()
|
|
128
|
-
.then((cli) => {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
outputStream: process.stdout,
|
|
133
|
-
});
|
|
134
|
-
})
|
|
135
|
-
.then((exitCode) => {
|
|
132
|
+
.then((cli) => cli === null || cli === void 0 ? void 0 : cli({
|
|
133
|
+
cliArgs: process.argv.slice(2),
|
|
134
|
+
}))
|
|
135
|
+
.then((exitCode = 0) => {
|
|
136
136
|
if (forceExit) {
|
|
137
137
|
process.exit(exitCode);
|
|
138
138
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.7",
|
|
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.1400.
|
|
29
|
-
"@angular-devkit/core": "14.0.
|
|
30
|
-
"@angular-devkit/schematics": "14.0.
|
|
31
|
-
"@schematics/angular": "14.0.
|
|
28
|
+
"@angular-devkit/architect": "0.1400.7",
|
|
29
|
+
"@angular-devkit/core": "14.0.7",
|
|
30
|
+
"@angular-devkit/schematics": "14.0.7",
|
|
31
|
+
"@schematics/angular": "14.0.7",
|
|
32
32
|
"@yarnpkg/lockfile": "1.1.0",
|
|
33
33
|
"ansi-colors": "4.1.1",
|
|
34
34
|
"debug": "4.3.4",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"ng-update": {
|
|
50
50
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
51
51
|
"packageGroup": {
|
|
52
|
-
"@angular/cli": "14.0.
|
|
53
|
-
"@angular-devkit/architect": "0.1400.
|
|
54
|
-
"@angular-devkit/build-angular": "14.0.
|
|
55
|
-
"@angular-devkit/build-webpack": "0.1400.
|
|
56
|
-
"@angular-devkit/core": "14.0.
|
|
57
|
-
"@angular-devkit/schematics": "14.0.
|
|
52
|
+
"@angular/cli": "14.0.7",
|
|
53
|
+
"@angular-devkit/architect": "0.1400.7",
|
|
54
|
+
"@angular-devkit/build-angular": "14.0.7",
|
|
55
|
+
"@angular-devkit/build-webpack": "0.1400.7",
|
|
56
|
+
"@angular-devkit/core": "14.0.7",
|
|
57
|
+
"@angular-devkit/schematics": "14.0.7"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
@@ -113,8 +113,14 @@ class ArchitectCommandModule extends architect_base_command_module_1.ArchitectBa
|
|
|
113
113
|
const { getYargsCompletions, help } = this.context.args.options;
|
|
114
114
|
if (!getYargsCompletions && !help) {
|
|
115
115
|
// Only issue the below error when not in help / completion mode.
|
|
116
|
-
throw new command_module_1.CommandModuleError('Cannot determine project for command
|
|
117
|
-
'
|
|
116
|
+
throw new command_module_1.CommandModuleError('Cannot determine project for command.\n' +
|
|
117
|
+
'This is a multi-project workspace and more than one project supports this command. ' +
|
|
118
|
+
`Run "ng ${this.command}" to execute the command for a specific project or change the current ` +
|
|
119
|
+
'working directory to a project directory.\n\n' +
|
|
120
|
+
`Available projects are:\n${allProjectsForTargetName
|
|
121
|
+
.sort()
|
|
122
|
+
.map((p) => `- ${p}`)
|
|
123
|
+
.join('\n')}`);
|
|
118
124
|
}
|
|
119
125
|
}
|
|
120
126
|
return undefined;
|
|
@@ -161,15 +161,11 @@ class CommandModule {
|
|
|
161
161
|
// This should only be done when `--help` is used otherwise default will override options set in angular.json.
|
|
162
162
|
...(this.context.args.options.help ? { default: defaultVal } : {}),
|
|
163
163
|
};
|
|
164
|
-
// TODO(alanagius4): remove in a major version.
|
|
165
|
-
// the below is an interim workaround to handle options which have been defined in the schema with `no` prefix.
|
|
166
164
|
let dashedName = core_1.strings.dasherize(name);
|
|
165
|
+
// Handle options which have been defined in the schema with `no` prefix.
|
|
167
166
|
if (type === 'boolean' && dashedName.startsWith('no-')) {
|
|
168
167
|
dashedName = dashedName.slice(3);
|
|
169
168
|
booleanOptionsWithNoPrefix.add(dashedName);
|
|
170
|
-
// eslint-disable-next-line no-console
|
|
171
|
-
console.warn(`Warning: '${name}' option has been declared with a 'no' prefix in the schema.` +
|
|
172
|
-
'Please file an issue with the author of this package.');
|
|
173
169
|
}
|
|
174
170
|
if (positional === undefined) {
|
|
175
171
|
localYargs = localYargs.option(dashedName, {
|
|
@@ -188,8 +184,7 @@ class CommandModule {
|
|
|
188
184
|
this.optionsWithAnalytics.set(name, userAnalytics);
|
|
189
185
|
}
|
|
190
186
|
}
|
|
191
|
-
//
|
|
192
|
-
// the below is an interim workaround to handle options which have been defined in the schema with `no` prefix.
|
|
187
|
+
// Handle options which have been defined in the schema with `no` prefix.
|
|
193
188
|
if (booleanOptionsWithNoPrefix.size) {
|
|
194
189
|
localYargs.middleware((options) => {
|
|
195
190
|
for (const key of booleanOptionsWithNoPrefix) {
|
|
@@ -72,8 +72,7 @@ class UpdateCommandModule extends command_module_1.CommandModule {
|
|
|
72
72
|
array: true,
|
|
73
73
|
})
|
|
74
74
|
.option('force', {
|
|
75
|
-
description: 'Ignore peer dependency version mismatches.
|
|
76
|
-
`Passes the '--force' flag to the package manager when installing packages.`,
|
|
75
|
+
description: 'Ignore peer dependency version mismatches.',
|
|
77
76
|
type: 'boolean',
|
|
78
77
|
default: false,
|
|
79
78
|
})
|
|
@@ -189,7 +188,7 @@ class UpdateCommandModule extends command_module_1.CommandModule {
|
|
|
189
188
|
logger.info(`Found ${rootDependencies.size} dependencies.`);
|
|
190
189
|
const workflow = new tools_1.NodeWorkflow(this.context.root, {
|
|
191
190
|
packageManager: packageManager.name,
|
|
192
|
-
packageManagerForce: options.
|
|
191
|
+
packageManagerForce: this.packageManagerForce(options.verbose),
|
|
193
192
|
// __dirname -> favor @schematics/update from this package
|
|
194
193
|
// Otherwise, use packages from the active workspace (migrations)
|
|
195
194
|
resolvePaths: [__dirname, this.context.root],
|
|
@@ -511,23 +510,7 @@ class UpdateCommandModule extends command_module_1.CommandModule {
|
|
|
511
510
|
});
|
|
512
511
|
}
|
|
513
512
|
catch { }
|
|
514
|
-
|
|
515
|
-
// npm 7+ can fail due to it incorrectly resolving peer dependencies that have valid SemVer
|
|
516
|
-
// ranges during an update. Update will set correct versions of dependencies within the
|
|
517
|
-
// package.json file. The force option is set to workaround these errors.
|
|
518
|
-
// Example error:
|
|
519
|
-
// npm ERR! Conflicting peer dependency: @angular/compiler-cli@14.0.0-rc.0
|
|
520
|
-
// npm ERR! node_modules/@angular/compiler-cli
|
|
521
|
-
// npm ERR! peer @angular/compiler-cli@"^14.0.0 || ^14.0.0-rc" from @angular-devkit/build-angular@14.0.0-rc.0
|
|
522
|
-
// npm ERR! node_modules/@angular-devkit/build-angular
|
|
523
|
-
// npm ERR! dev @angular-devkit/build-angular@"~14.0.0-rc.0" from the root project
|
|
524
|
-
if (this.context.packageManager.name === workspace_schema_1.PackageManager.Npm &&
|
|
525
|
-
this.context.packageManager.version &&
|
|
526
|
-
semver.gte(this.context.packageManager.version, '7.0.0', { includePrerelease: true })) {
|
|
527
|
-
logVerbose('NPM 7+ detected -- enabling force option for package installation');
|
|
528
|
-
forceInstall = true;
|
|
529
|
-
}
|
|
530
|
-
const installationSuccess = await this.context.packageManager.installAll(forceInstall ? ['--force'] : [], this.context.root);
|
|
513
|
+
const installationSuccess = await this.context.packageManager.installAll(this.packageManagerForce(options.verbose) ? ['--force'] : [], this.context.root);
|
|
531
514
|
if (!installationSuccess) {
|
|
532
515
|
return 1;
|
|
533
516
|
}
|
|
@@ -739,6 +722,26 @@ class UpdateCommandModule extends command_module_1.CommandModule {
|
|
|
739
722
|
}
|
|
740
723
|
return status !== null && status !== void 0 ? status : 0;
|
|
741
724
|
}
|
|
725
|
+
packageManagerForce(verbose) {
|
|
726
|
+
// npm 7+ can fail due to it incorrectly resolving peer dependencies that have valid SemVer
|
|
727
|
+
// ranges during an update. Update will set correct versions of dependencies within the
|
|
728
|
+
// package.json file. The force option is set to workaround these errors.
|
|
729
|
+
// Example error:
|
|
730
|
+
// npm ERR! Conflicting peer dependency: @angular/compiler-cli@14.0.0-rc.0
|
|
731
|
+
// npm ERR! node_modules/@angular/compiler-cli
|
|
732
|
+
// npm ERR! peer @angular/compiler-cli@"^14.0.0 || ^14.0.0-rc" from @angular-devkit/build-angular@14.0.0-rc.0
|
|
733
|
+
// npm ERR! node_modules/@angular-devkit/build-angular
|
|
734
|
+
// npm ERR! dev @angular-devkit/build-angular@"~14.0.0-rc.0" from the root project
|
|
735
|
+
if (this.context.packageManager.name === workspace_schema_1.PackageManager.Npm &&
|
|
736
|
+
this.context.packageManager.version &&
|
|
737
|
+
semver.gte(this.context.packageManager.version, '7.0.0', { includePrerelease: true })) {
|
|
738
|
+
if (verbose) {
|
|
739
|
+
this.context.logger.info('NPM 7+ detected -- enabling force option for package installation');
|
|
740
|
+
}
|
|
741
|
+
return true;
|
|
742
|
+
}
|
|
743
|
+
return false;
|
|
744
|
+
}
|
|
742
745
|
}
|
|
743
746
|
exports.UpdateCommandModule = UpdateCommandModule;
|
|
744
747
|
/**
|