@angular/cli 19.1.0-rc.0 → 19.1.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 +141 -141
- package/lib/config/workspace-schema.d.ts +317 -170
- package/lib/config/workspace-schema.js +14 -7
- package/package.json +13 -13
- package/src/utilities/version.js +1 -5
package/lib/config/schema.json
CHANGED
|
@@ -908,15 +908,15 @@
|
|
|
908
908
|
"SchematicsAngularApplicationSchema": {
|
|
909
909
|
"title": "Angular Application Options Schema",
|
|
910
910
|
"type": "object",
|
|
911
|
-
"description": "Generates a new
|
|
911
|
+
"description": "Generates a new Angular application within your workspace. This schematic sets up the foundational structure of your project, including the root component, module, and configuration files. You can customize various aspects of the application, such as routing, styling, and testing.",
|
|
912
912
|
"additionalProperties": false,
|
|
913
913
|
"properties": {
|
|
914
914
|
"projectRoot": {
|
|
915
|
-
"description": "The
|
|
915
|
+
"description": "The directory where the new application's files will be created, relative to the workspace root. If not specified, the application will be created in a subfolder within the `projects` directory, using the application's name.",
|
|
916
916
|
"type": "string"
|
|
917
917
|
},
|
|
918
918
|
"name": {
|
|
919
|
-
"description": "The name
|
|
919
|
+
"description": "The name for the new application. This name will be used for the project directory and various identifiers throughout the application's code.",
|
|
920
920
|
"type": "string",
|
|
921
921
|
"pattern": "^(?:@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*/)?[a-zA-Z0-9-~][a-zA-Z0-9-._~]*$",
|
|
922
922
|
"$default": {
|
|
@@ -925,17 +925,17 @@
|
|
|
925
925
|
}
|
|
926
926
|
},
|
|
927
927
|
"inlineStyle": {
|
|
928
|
-
"description": "Include styles
|
|
928
|
+
"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.",
|
|
929
929
|
"type": "boolean",
|
|
930
930
|
"alias": "s"
|
|
931
931
|
},
|
|
932
932
|
"inlineTemplate": {
|
|
933
|
-
"description": "Include template
|
|
933
|
+
"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.",
|
|
934
934
|
"type": "boolean",
|
|
935
935
|
"alias": "t"
|
|
936
936
|
},
|
|
937
937
|
"viewEncapsulation": {
|
|
938
|
-
"description": "
|
|
938
|
+
"description": "Sets the view encapsulation mode for the application's components. This determines how component styles are scoped and applied.",
|
|
939
939
|
"enum": [
|
|
940
940
|
"Emulated",
|
|
941
941
|
"None",
|
|
@@ -945,18 +945,18 @@
|
|
|
945
945
|
},
|
|
946
946
|
"routing": {
|
|
947
947
|
"type": "boolean",
|
|
948
|
-
"description": "
|
|
948
|
+
"description": "Generate an application with routing already configured. This sets up the necessary files and modules for managing navigation between different views in your application.",
|
|
949
949
|
"default": true
|
|
950
950
|
},
|
|
951
951
|
"prefix": {
|
|
952
952
|
"type": "string",
|
|
953
953
|
"format": "html-selector",
|
|
954
|
-
"description": "A prefix to
|
|
954
|
+
"description": "A prefix to be added to the selectors of components generated within this application. For example, if the prefix is `my-app` and you generate a component named `my-component`, the selector will be `my-app-my-component`.",
|
|
955
955
|
"default": "app",
|
|
956
956
|
"alias": "p"
|
|
957
957
|
},
|
|
958
958
|
"style": {
|
|
959
|
-
"description": "The
|
|
959
|
+
"description": "The type of stylesheet files to be created for components in the application.",
|
|
960
960
|
"type": "string",
|
|
961
961
|
"default": "css",
|
|
962
962
|
"enum": [
|
|
@@ -967,7 +967,7 @@
|
|
|
967
967
|
]
|
|
968
968
|
},
|
|
969
969
|
"skipTests": {
|
|
970
|
-
"description": "
|
|
970
|
+
"description": "Skip the generation of a unit test files `spec.ts`.",
|
|
971
971
|
"type": "boolean",
|
|
972
972
|
"default": false,
|
|
973
973
|
"alias": "S"
|
|
@@ -975,39 +975,39 @@
|
|
|
975
975
|
"skipPackageJson": {
|
|
976
976
|
"type": "boolean",
|
|
977
977
|
"default": false,
|
|
978
|
-
"description": "Do not add dependencies to the
|
|
978
|
+
"description": "Do not add dependencies to the `package.json` file."
|
|
979
979
|
},
|
|
980
980
|
"minimal": {
|
|
981
|
-
"description": "
|
|
981
|
+
"description": "Generate a minimal project without any testing frameworks. This is intended for learning purposes and simple experimentation, not for production applications.",
|
|
982
982
|
"type": "boolean",
|
|
983
983
|
"default": false
|
|
984
984
|
},
|
|
985
985
|
"skipInstall": {
|
|
986
|
-
"description": "Skip
|
|
986
|
+
"description": "Skip the automatic installation of packages. You will need to manually install the dependencies later.",
|
|
987
987
|
"type": "boolean",
|
|
988
988
|
"default": false
|
|
989
989
|
},
|
|
990
990
|
"strict": {
|
|
991
|
-
"description": "
|
|
991
|
+
"description": "Enable stricter bundle budget settings for the application. This helps to keep your application's bundle size small and improve performance. For more information, see https://angular.dev/tools/cli/template-typecheck#strict-mode",
|
|
992
992
|
"type": "boolean",
|
|
993
993
|
"default": true
|
|
994
994
|
},
|
|
995
995
|
"standalone": {
|
|
996
|
-
"description": "
|
|
996
|
+
"description": "Create an application that utilizes the standalone API, eliminating the need for NgModules. This can simplify the structure of your application.",
|
|
997
997
|
"type": "boolean",
|
|
998
998
|
"default": true
|
|
999
999
|
},
|
|
1000
1000
|
"ssr": {
|
|
1001
|
-
"description": "
|
|
1001
|
+
"description": "Configure the application for Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering).",
|
|
1002
1002
|
"type": "boolean",
|
|
1003
1003
|
"default": false
|
|
1004
1004
|
},
|
|
1005
1005
|
"serverRouting": {
|
|
1006
|
-
"description": "
|
|
1006
|
+
"description": "Set up a server application using the Server Routing and App Engine APIs (Developer Preview).",
|
|
1007
1007
|
"type": "boolean"
|
|
1008
1008
|
},
|
|
1009
1009
|
"experimentalZoneless": {
|
|
1010
|
-
"description": "
|
|
1010
|
+
"description": "Generate an application that does not use `zone.js`.",
|
|
1011
1011
|
"type": "boolean",
|
|
1012
1012
|
"default": false
|
|
1013
1013
|
}
|
|
@@ -1016,12 +1016,12 @@
|
|
|
1016
1016
|
"SchematicsAngularClassSchema": {
|
|
1017
1017
|
"title": "Angular Class Options Schema",
|
|
1018
1018
|
"type": "object",
|
|
1019
|
-
"description": "Creates a new
|
|
1019
|
+
"description": "Creates a new class in your project. Classes are the fundamental building blocks for object-oriented programming in TypeScript. They provide a blueprint for creating objects with properties and methods. This schematic helps you generate a new class with the basic structure and optional test files.",
|
|
1020
1020
|
"additionalProperties": false,
|
|
1021
1021
|
"properties": {
|
|
1022
1022
|
"name": {
|
|
1023
1023
|
"type": "string",
|
|
1024
|
-
"description": "The name
|
|
1024
|
+
"description": "The name for the new class. This will be used to create the class file (e.g., `my-class.ts`) and, if enabled, the corresponding test file `my-class.spec.ts`.",
|
|
1025
1025
|
"$default": {
|
|
1026
1026
|
"$source": "argv",
|
|
1027
1027
|
"index": 0
|
|
@@ -1033,31 +1033,31 @@
|
|
|
1033
1033
|
"$default": {
|
|
1034
1034
|
"$source": "workingDirectory"
|
|
1035
1035
|
},
|
|
1036
|
-
"description": "The path
|
|
1036
|
+
"description": "The path where the class file should be created, relative to the workspace root. If not specified, the class will be created in the current directory.",
|
|
1037
1037
|
"visible": false
|
|
1038
1038
|
},
|
|
1039
1039
|
"project": {
|
|
1040
1040
|
"type": "string",
|
|
1041
|
-
"description": "The name of the project.",
|
|
1041
|
+
"description": "The name of the project where the class should be added. If not specified, the CLI will determine the project from the current directory.",
|
|
1042
1042
|
"$default": {
|
|
1043
1043
|
"$source": "projectName"
|
|
1044
1044
|
}
|
|
1045
1045
|
},
|
|
1046
1046
|
"skipTests": {
|
|
1047
1047
|
"type": "boolean",
|
|
1048
|
-
"description": "
|
|
1048
|
+
"description": "Skip the generation of a unit test file `spec.ts` for the new class.",
|
|
1049
1049
|
"default": false
|
|
1050
1050
|
},
|
|
1051
1051
|
"type": {
|
|
1052
1052
|
"type": "string",
|
|
1053
|
-
"description": "Adds a
|
|
1053
|
+
"description": "Adds a custom type to the filename, allowing you to create more descriptive class names. For example, if you set the type to `helper`, the filename will be `my-class.helper.ts`."
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
1056
|
},
|
|
1057
1057
|
"SchematicsAngularComponentSchema": {
|
|
1058
1058
|
"title": "Angular Component Options Schema",
|
|
1059
1059
|
"type": "object",
|
|
1060
|
-
"description": "Creates a new
|
|
1060
|
+
"description": "Creates a new Angular component. Components are the basic building blocks of Angular applications. Each component consists of a TypeScript class, an HTML template, and an optional CSS stylesheet. Use this schematic to generate a new component in your project.",
|
|
1061
1061
|
"additionalProperties": false,
|
|
1062
1062
|
"properties": {
|
|
1063
1063
|
"path": {
|
|
@@ -1066,49 +1066,49 @@
|
|
|
1066
1066
|
"$default": {
|
|
1067
1067
|
"$source": "workingDirectory"
|
|
1068
1068
|
},
|
|
1069
|
-
"description": "The path
|
|
1069
|
+
"description": "The path where the component files should be created, relative to the current workspace. If not provided, a folder with the same name as the component will be created in the project's `src/app` directory.",
|
|
1070
1070
|
"visible": false
|
|
1071
1071
|
},
|
|
1072
1072
|
"project": {
|
|
1073
1073
|
"type": "string",
|
|
1074
|
-
"description": "The name of the project.",
|
|
1074
|
+
"description": "The name of the project where the component should be added. If not specified, the CLI will determine the project from the current directory.",
|
|
1075
1075
|
"$default": {
|
|
1076
1076
|
"$source": "projectName"
|
|
1077
1077
|
}
|
|
1078
1078
|
},
|
|
1079
1079
|
"name": {
|
|
1080
1080
|
"type": "string",
|
|
1081
|
-
"description": "The name
|
|
1081
|
+
"description": "The name for the new component. This will be used to create the component's class, template, and stylesheet files. For example, if you provide `my-component`, the files will be named `my-component.component.ts`, `my-component.component.html`, and `my-component.component.css`.",
|
|
1082
1082
|
"$default": {
|
|
1083
1083
|
"$source": "argv",
|
|
1084
1084
|
"index": 0
|
|
1085
1085
|
}
|
|
1086
1086
|
},
|
|
1087
1087
|
"displayBlock": {
|
|
1088
|
-
"description": "
|
|
1088
|
+
"description": "Adds `:host { display: block; }` to the component's stylesheet, ensuring the component renders as a block-level element. This is useful for layout purposes.",
|
|
1089
1089
|
"type": "boolean",
|
|
1090
1090
|
"default": false,
|
|
1091
1091
|
"alias": "b"
|
|
1092
1092
|
},
|
|
1093
1093
|
"inlineStyle": {
|
|
1094
|
-
"description": "Include styles
|
|
1094
|
+
"description": "Include the component's styles directly in the `component.ts` file. By default, a separate stylesheet file (e.g., `my-component.component.css`) is created.",
|
|
1095
1095
|
"type": "boolean",
|
|
1096
1096
|
"default": false,
|
|
1097
1097
|
"alias": "s"
|
|
1098
1098
|
},
|
|
1099
1099
|
"inlineTemplate": {
|
|
1100
|
-
"description": "Include template
|
|
1100
|
+
"description": "Include the component's HTML template directly in the `component.ts` file. By default, a separate template file (e.g., `my-component.component.html`) is created.",
|
|
1101
1101
|
"type": "boolean",
|
|
1102
1102
|
"default": false,
|
|
1103
1103
|
"alias": "t"
|
|
1104
1104
|
},
|
|
1105
1105
|
"standalone": {
|
|
1106
|
-
"description": "
|
|
1106
|
+
"description": "Generate a standalone component. Standalone components are self-contained and don't need to be declared in an NgModule. They can be used independently or imported directly into other standalone components.",
|
|
1107
1107
|
"type": "boolean",
|
|
1108
1108
|
"default": true
|
|
1109
1109
|
},
|
|
1110
1110
|
"viewEncapsulation": {
|
|
1111
|
-
"description": "
|
|
1111
|
+
"description": "Sets the view encapsulation mode for the component. This determines how the component's styles are scoped and applied.",
|
|
1112
1112
|
"enum": [
|
|
1113
1113
|
"Emulated",
|
|
1114
1114
|
"None",
|
|
@@ -1118,7 +1118,7 @@
|
|
|
1118
1118
|
"alias": "v"
|
|
1119
1119
|
},
|
|
1120
1120
|
"changeDetection": {
|
|
1121
|
-
"description": "
|
|
1121
|
+
"description": "Configures the change detection strategy for the component.",
|
|
1122
1122
|
"enum": [
|
|
1123
1123
|
"Default",
|
|
1124
1124
|
"OnPush"
|
|
@@ -1129,7 +1129,7 @@
|
|
|
1129
1129
|
},
|
|
1130
1130
|
"prefix": {
|
|
1131
1131
|
"type": "string",
|
|
1132
|
-
"description": "
|
|
1132
|
+
"description": "A prefix to be added to the component's selector. For example, if the prefix is `app` and the component name is `my-component`, the selector will be `app-my-component`.",
|
|
1133
1133
|
"alias": "p",
|
|
1134
1134
|
"oneOf": [
|
|
1135
1135
|
{
|
|
@@ -1142,7 +1142,7 @@
|
|
|
1142
1142
|
]
|
|
1143
1143
|
},
|
|
1144
1144
|
"style": {
|
|
1145
|
-
"description": "
|
|
1145
|
+
"description": "Specify the type of stylesheet to be created for the component, or `none` to skip creating a stylesheet.",
|
|
1146
1146
|
"type": "string",
|
|
1147
1147
|
"default": "css",
|
|
1148
1148
|
"enum": [
|
|
@@ -1155,60 +1155,60 @@
|
|
|
1155
1155
|
},
|
|
1156
1156
|
"type": {
|
|
1157
1157
|
"type": "string",
|
|
1158
|
-
"description": "
|
|
1158
|
+
"description": "Append a custom type to the component's filename. For example, if you set the type to `container`, the file will be named `my-component.container.ts`.",
|
|
1159
1159
|
"default": "Component"
|
|
1160
1160
|
},
|
|
1161
1161
|
"skipTests": {
|
|
1162
1162
|
"type": "boolean",
|
|
1163
|
-
"description": "
|
|
1163
|
+
"description": "Skip the generation of unit test files `spec.ts`.",
|
|
1164
1164
|
"default": false
|
|
1165
1165
|
},
|
|
1166
1166
|
"flat": {
|
|
1167
1167
|
"type": "boolean",
|
|
1168
|
-
"description": "Create the
|
|
1168
|
+
"description": "Create the component files directly in the project's `src/app` directory instead of creating a new folder for them.",
|
|
1169
1169
|
"default": false
|
|
1170
1170
|
},
|
|
1171
1171
|
"skipImport": {
|
|
1172
1172
|
"type": "boolean",
|
|
1173
|
-
"description": "Do not import
|
|
1173
|
+
"description": "Do not automatically import the new component into its closest NgModule.",
|
|
1174
1174
|
"default": false
|
|
1175
1175
|
},
|
|
1176
1176
|
"selector": {
|
|
1177
1177
|
"type": "string",
|
|
1178
1178
|
"format": "html-selector",
|
|
1179
|
-
"description": "The HTML selector to use for this component."
|
|
1179
|
+
"description": "The HTML selector to use for this component. If not provided, a selector will be generated based on the component name (e.g., `app-my-component`)."
|
|
1180
1180
|
},
|
|
1181
1181
|
"skipSelector": {
|
|
1182
1182
|
"type": "boolean",
|
|
1183
1183
|
"default": false,
|
|
1184
|
-
"description": "
|
|
1184
|
+
"description": "Skip the generation of an HTML selector for the component."
|
|
1185
1185
|
},
|
|
1186
1186
|
"module": {
|
|
1187
1187
|
"type": "string",
|
|
1188
|
-
"description": "
|
|
1188
|
+
"description": "Specify the NgModule where the component should be declared. If not provided, the CLI will attempt to find the closest NgModule in the component's path.",
|
|
1189
1189
|
"alias": "m"
|
|
1190
1190
|
},
|
|
1191
1191
|
"export": {
|
|
1192
1192
|
"type": "boolean",
|
|
1193
1193
|
"default": false,
|
|
1194
|
-
"description": "
|
|
1194
|
+
"description": "Automatically export the component from the specified NgModule, making it accessible to other modules in the application."
|
|
1195
1195
|
},
|
|
1196
1196
|
"exportDefault": {
|
|
1197
1197
|
"type": "boolean",
|
|
1198
1198
|
"default": false,
|
|
1199
|
-
"description": "Use default export for the component instead of a named export."
|
|
1199
|
+
"description": "Use a default export for the component in its TypeScript file instead of a named export."
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
},
|
|
1203
1203
|
"SchematicsAngularDirectiveSchema": {
|
|
1204
1204
|
"title": "Angular Directive Options Schema",
|
|
1205
1205
|
"type": "object",
|
|
1206
|
-
"description": "Creates a new,
|
|
1206
|
+
"description": "Creates a new directive in your project. Directives are used to extend the behavior or appearance of HTML elements and components. They allow you to manipulate the DOM, add custom attributes, and respond to events. This schematic generates the necessary files and boilerplate code for a new directive.",
|
|
1207
1207
|
"additionalProperties": false,
|
|
1208
1208
|
"properties": {
|
|
1209
1209
|
"name": {
|
|
1210
1210
|
"type": "string",
|
|
1211
|
-
"description": "The name
|
|
1211
|
+
"description": "The name for the new directive. This will be used to create the directive's class and spec files (e.g., `my-directive.directive.ts` and `my-directive.directive.spec.ts`).",
|
|
1212
1212
|
"$default": {
|
|
1213
1213
|
"$source": "argv",
|
|
1214
1214
|
"index": 0
|
|
@@ -1220,19 +1220,19 @@
|
|
|
1220
1220
|
"$default": {
|
|
1221
1221
|
"$source": "workingDirectory"
|
|
1222
1222
|
},
|
|
1223
|
-
"description": "The path
|
|
1223
|
+
"description": "The path where the directive files should be created, relative to the workspace root. If not provided, the directive will be created in the current directory.",
|
|
1224
1224
|
"visible": false
|
|
1225
1225
|
},
|
|
1226
1226
|
"project": {
|
|
1227
1227
|
"type": "string",
|
|
1228
|
-
"description": "The name of the project.",
|
|
1228
|
+
"description": "The name of the project where the directive should be added. If not specified, the CLI will determine the project from the current directory.",
|
|
1229
1229
|
"$default": {
|
|
1230
1230
|
"$source": "projectName"
|
|
1231
1231
|
}
|
|
1232
1232
|
},
|
|
1233
1233
|
"prefix": {
|
|
1234
1234
|
"type": "string",
|
|
1235
|
-
"description": "A prefix to
|
|
1235
|
+
"description": "A prefix to be added to the directive's selector. For example, if the prefix is `app` and the directive name is `highlight`, the selector will be `appHighlight`.",
|
|
1236
1236
|
"alias": "p",
|
|
1237
1237
|
"oneOf": [
|
|
1238
1238
|
{
|
|
@@ -1246,50 +1246,50 @@
|
|
|
1246
1246
|
},
|
|
1247
1247
|
"skipTests": {
|
|
1248
1248
|
"type": "boolean",
|
|
1249
|
-
"description": "
|
|
1249
|
+
"description": "Skip the generation of a unit test file `spec.ts` for the new directive.",
|
|
1250
1250
|
"default": false
|
|
1251
1251
|
},
|
|
1252
1252
|
"skipImport": {
|
|
1253
1253
|
"type": "boolean",
|
|
1254
|
-
"description": "Do not import
|
|
1254
|
+
"description": "Do not automatically import the new directive into its closest NgModule.",
|
|
1255
1255
|
"default": false
|
|
1256
1256
|
},
|
|
1257
1257
|
"selector": {
|
|
1258
1258
|
"type": "string",
|
|
1259
1259
|
"format": "html-selector",
|
|
1260
|
-
"description": "The HTML selector to use for this directive."
|
|
1260
|
+
"description": "The HTML selector to use for this directive. If not provided, a selector will be generated based on the directive's name (e.g., `appHighlight`)."
|
|
1261
1261
|
},
|
|
1262
1262
|
"standalone": {
|
|
1263
|
-
"description": "
|
|
1263
|
+
"description": "Generate a standalone directive. Standalone directives are self-contained and don't need to be declared in an NgModule. They can be used independently or imported directly into other standalone components or directives.",
|
|
1264
1264
|
"type": "boolean",
|
|
1265
1265
|
"default": true
|
|
1266
1266
|
},
|
|
1267
1267
|
"flat": {
|
|
1268
1268
|
"type": "boolean",
|
|
1269
|
-
"description": "
|
|
1269
|
+
"description": "Creates the new directive files at the top level of the current project. If set to false, a new folder with the directive's name will be created to contain the files.",
|
|
1270
1270
|
"default": true
|
|
1271
1271
|
},
|
|
1272
1272
|
"module": {
|
|
1273
1273
|
"type": "string",
|
|
1274
|
-
"description": "
|
|
1274
|
+
"description": "Specify the NgModule where the directive should be declared. If not provided, the CLI will attempt to find the closest NgModule in the directive's path.",
|
|
1275
1275
|
"alias": "m"
|
|
1276
1276
|
},
|
|
1277
1277
|
"export": {
|
|
1278
1278
|
"type": "boolean",
|
|
1279
1279
|
"default": false,
|
|
1280
|
-
"description": "
|
|
1280
|
+
"description": "Automatically export the directive from the specified NgModule, making it accessible to other modules in the application."
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
1283
|
},
|
|
1284
1284
|
"SchematicsAngularEnumSchema": {
|
|
1285
1285
|
"title": "Angular Enum Options Schema",
|
|
1286
1286
|
"type": "object",
|
|
1287
|
-
"description": "
|
|
1287
|
+
"description": "Creates a new enum in your project. Enums (enumerations) are a way to define a set of named constants, making your code more readable and maintainable. This schematic generates a new enum with the specified name and type.",
|
|
1288
1288
|
"additionalProperties": false,
|
|
1289
1289
|
"properties": {
|
|
1290
1290
|
"name": {
|
|
1291
1291
|
"type": "string",
|
|
1292
|
-
"description": "The name
|
|
1292
|
+
"description": "The name for the new enum. This will be used to create the enum file (e.g., `my-enum.enum.ts`).",
|
|
1293
1293
|
"$default": {
|
|
1294
1294
|
"$source": "argv",
|
|
1295
1295
|
"index": 0
|
|
@@ -1301,31 +1301,31 @@
|
|
|
1301
1301
|
"$default": {
|
|
1302
1302
|
"$source": "workingDirectory"
|
|
1303
1303
|
},
|
|
1304
|
-
"description": "The path
|
|
1304
|
+
"description": "The path where the enum file should be created, relative to the current workspace. If not specified, the enum will be created in the current directory.",
|
|
1305
1305
|
"visible": false
|
|
1306
1306
|
},
|
|
1307
1307
|
"project": {
|
|
1308
1308
|
"type": "string",
|
|
1309
|
-
"description": "The name of the project
|
|
1309
|
+
"description": "The name of the project where the enum should be created. If not specified, the CLI will determine the project from the current directory.",
|
|
1310
1310
|
"$default": {
|
|
1311
1311
|
"$source": "projectName"
|
|
1312
1312
|
}
|
|
1313
1313
|
},
|
|
1314
1314
|
"type": {
|
|
1315
1315
|
"type": "string",
|
|
1316
|
-
"description": "Adds a
|
|
1316
|
+
"description": "Adds a custom type to the filename, allowing you to create more descriptive enum names. For example, if you set the type to `status`, the filename will be `my-enum.status.ts`."
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
1319
|
},
|
|
1320
1320
|
"SchematicsAngularGuardSchema": {
|
|
1321
1321
|
"title": "Angular Guard Options Schema",
|
|
1322
1322
|
"type": "object",
|
|
1323
|
-
"description": "
|
|
1323
|
+
"description": "Creates a new route guard in your project. Route guards are used to control access to parts of your application by checking certain conditions before a route is activated. This schematic generates a new guard with the specified name, type, and options.",
|
|
1324
1324
|
"additionalProperties": false,
|
|
1325
1325
|
"properties": {
|
|
1326
1326
|
"name": {
|
|
1327
1327
|
"type": "string",
|
|
1328
|
-
"description": "The name
|
|
1328
|
+
"description": "The name for the new route guard. This will be used to create the guard's class and spec files (e.g., `my-guard.guard.ts` and `my-guard.guard.spec.ts`).",
|
|
1329
1329
|
"$default": {
|
|
1330
1330
|
"$source": "argv",
|
|
1331
1331
|
"index": 0
|
|
@@ -1333,12 +1333,12 @@
|
|
|
1333
1333
|
},
|
|
1334
1334
|
"skipTests": {
|
|
1335
1335
|
"type": "boolean",
|
|
1336
|
-
"description": "
|
|
1336
|
+
"description": "Skip the generation of a unit test file `spec.ts` for the new guard.",
|
|
1337
1337
|
"default": false
|
|
1338
1338
|
},
|
|
1339
1339
|
"flat": {
|
|
1340
1340
|
"type": "boolean",
|
|
1341
|
-
"description": "
|
|
1341
|
+
"description": "Creates the new guard files at the top level of the current project. If set to false, a new folder with the guard's name will be created to contain the files.",
|
|
1342
1342
|
"default": true
|
|
1343
1343
|
},
|
|
1344
1344
|
"path": {
|
|
@@ -1347,25 +1347,25 @@
|
|
|
1347
1347
|
"$default": {
|
|
1348
1348
|
"$source": "workingDirectory"
|
|
1349
1349
|
},
|
|
1350
|
-
"description": "The path
|
|
1350
|
+
"description": "The path where the guard files should be created, relative to the current workspace. If not provided, the guard will be created in the current directory.",
|
|
1351
1351
|
"visible": false
|
|
1352
1352
|
},
|
|
1353
1353
|
"project": {
|
|
1354
1354
|
"type": "string",
|
|
1355
|
-
"description": "The name of the project.",
|
|
1355
|
+
"description": "The name of the project where the guard should be created. If not specified, the CLI will determine the project from the current directory.",
|
|
1356
1356
|
"$default": {
|
|
1357
1357
|
"$source": "projectName"
|
|
1358
1358
|
}
|
|
1359
1359
|
},
|
|
1360
1360
|
"functional": {
|
|
1361
1361
|
"type": "boolean",
|
|
1362
|
-
"description": "
|
|
1362
|
+
"description": "Generate the guard as a function instead of a class. Functional guards can be simpler for basic scenarios.",
|
|
1363
1363
|
"default": true
|
|
1364
1364
|
},
|
|
1365
1365
|
"implements": {
|
|
1366
1366
|
"alias": "guardType",
|
|
1367
1367
|
"type": "array",
|
|
1368
|
-
"description": "Specifies
|
|
1368
|
+
"description": "Specifies the type(s) of guard to create. You can choose one or more of the following: `CanActivate` (controls access to a route), `CanActivateChild` (controls access to child routes), `CanDeactivate` (asks for confirmation before leaving a route), `CanMatch` (determines if a route can be matched).",
|
|
1369
1369
|
"uniqueItems": true,
|
|
1370
1370
|
"minItems": 1,
|
|
1371
1371
|
"items": {
|
|
@@ -1387,11 +1387,11 @@
|
|
|
1387
1387
|
"title": "Angular Interceptor Options Schema",
|
|
1388
1388
|
"type": "object",
|
|
1389
1389
|
"additionalProperties": false,
|
|
1390
|
-
"description": "Creates a new,
|
|
1390
|
+
"description": "Creates a new interceptor in your project. Interceptors are used to intercept and modify HTTP requests and responses before they reach their destination. This allows you to perform tasks like adding authentication headers, handling errors, or logging requests. This schematic generates the necessary files and boilerplate code for a new interceptor.",
|
|
1391
1391
|
"properties": {
|
|
1392
1392
|
"name": {
|
|
1393
1393
|
"type": "string",
|
|
1394
|
-
"description": "The name
|
|
1394
|
+
"description": "The name for the new interceptor. This will be used to create the interceptor's class and spec files (e.g., `my-interceptor.interceptor.ts` and `my-interceptor.interceptor.spec.ts`).",
|
|
1395
1395
|
"$default": {
|
|
1396
1396
|
"$source": "argv",
|
|
1397
1397
|
"index": 0
|
|
@@ -1403,12 +1403,12 @@
|
|
|
1403
1403
|
"$default": {
|
|
1404
1404
|
"$source": "workingDirectory"
|
|
1405
1405
|
},
|
|
1406
|
-
"description": "The path
|
|
1406
|
+
"description": "The path where the interceptor files should be created, relative to the workspace root. If not provided, the interceptor will be created in the current directory.",
|
|
1407
1407
|
"visible": false
|
|
1408
1408
|
},
|
|
1409
1409
|
"project": {
|
|
1410
1410
|
"type": "string",
|
|
1411
|
-
"description": "The name of the project.",
|
|
1411
|
+
"description": "The name of the project where the interceptor should be created. If not specified, the CLI will determine the project from the current directory.",
|
|
1412
1412
|
"$default": {
|
|
1413
1413
|
"$source": "projectName"
|
|
1414
1414
|
}
|
|
@@ -1416,16 +1416,16 @@
|
|
|
1416
1416
|
"flat": {
|
|
1417
1417
|
"type": "boolean",
|
|
1418
1418
|
"default": true,
|
|
1419
|
-
"description": "
|
|
1419
|
+
"description": "Creates the new interceptor files at the top level of the current project. If set to false, a new folder with the interceptor's name will be created to contain the files."
|
|
1420
1420
|
},
|
|
1421
1421
|
"skipTests": {
|
|
1422
1422
|
"type": "boolean",
|
|
1423
|
-
"description": "
|
|
1423
|
+
"description": "Skip the generation of a unit test file `spec.ts` for the new interceptor.",
|
|
1424
1424
|
"default": false
|
|
1425
1425
|
},
|
|
1426
1426
|
"functional": {
|
|
1427
1427
|
"type": "boolean",
|
|
1428
|
-
"description": "Creates the interceptor as a `HttpInterceptorFn
|
|
1428
|
+
"description": "Creates the interceptor as a function `HttpInterceptorFn` instead of a class. Functional interceptors can be simpler for basic scenarios.",
|
|
1429
1429
|
"default": true
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
@@ -1434,11 +1434,11 @@
|
|
|
1434
1434
|
"title": "Angular Interface Options Schema",
|
|
1435
1435
|
"type": "object",
|
|
1436
1436
|
"additionalProperties": false,
|
|
1437
|
-
"description": "Creates a new,
|
|
1437
|
+
"description": "Creates a new interface in your project. Interfaces define the structure of objects in TypeScript, ensuring type safety and code clarity. This schematic generates a new interface with the specified name and type.",
|
|
1438
1438
|
"properties": {
|
|
1439
1439
|
"name": {
|
|
1440
1440
|
"type": "string",
|
|
1441
|
-
"description": "The name
|
|
1441
|
+
"description": "The name for the new interface. This will be used to create the interface file (e.g., `my-interface.interface.ts`).",
|
|
1442
1442
|
"$default": {
|
|
1443
1443
|
"$source": "argv",
|
|
1444
1444
|
"index": 0
|
|
@@ -1450,23 +1450,23 @@
|
|
|
1450
1450
|
"$default": {
|
|
1451
1451
|
"$source": "workingDirectory"
|
|
1452
1452
|
},
|
|
1453
|
-
"description": "The path
|
|
1453
|
+
"description": "The path where the interface file should be created, relative to the workspace root. If not provided, the interface will be created in the current directory.",
|
|
1454
1454
|
"visible": false
|
|
1455
1455
|
},
|
|
1456
1456
|
"project": {
|
|
1457
1457
|
"type": "string",
|
|
1458
|
-
"description": "The name of the project.",
|
|
1458
|
+
"description": "The name of the project where the interface should be created. If not specified, the CLI will determine the project from the current directory.",
|
|
1459
1459
|
"$default": {
|
|
1460
1460
|
"$source": "projectName"
|
|
1461
1461
|
}
|
|
1462
1462
|
},
|
|
1463
1463
|
"prefix": {
|
|
1464
1464
|
"type": "string",
|
|
1465
|
-
"description": "A prefix to
|
|
1465
|
+
"description": "A prefix to be added to the interface name. This is typically not used for interfaces, as they don't have selectors like components or directives."
|
|
1466
1466
|
},
|
|
1467
1467
|
"type": {
|
|
1468
1468
|
"type": "string",
|
|
1469
|
-
"description": "Adds a
|
|
1469
|
+
"description": "Adds a custom type to the filename, allowing you to create more descriptive interface names. For example, if you set the type to `data`, the filename will be `my-interface.data.ts`.",
|
|
1470
1470
|
"$default": {
|
|
1471
1471
|
"$source": "argv",
|
|
1472
1472
|
"index": 1
|
|
@@ -1477,12 +1477,12 @@
|
|
|
1477
1477
|
"SchematicsAngularLibrarySchema": {
|
|
1478
1478
|
"title": "Library Options Schema",
|
|
1479
1479
|
"type": "object",
|
|
1480
|
-
"description": "Creates a new
|
|
1480
|
+
"description": "Creates a new library project in your Angular workspace. Libraries are reusable collections of components, services, and other Angular artifacts that can be shared across multiple applications. This schematic simplifies the process of generating a new library with the necessary files and configurations.",
|
|
1481
1481
|
"additionalProperties": false,
|
|
1482
1482
|
"properties": {
|
|
1483
1483
|
"name": {
|
|
1484
1484
|
"type": "string",
|
|
1485
|
-
"description": "The name
|
|
1485
|
+
"description": "The name for the new library. This name will be used for the project directory and various identifiers within the library's code.",
|
|
1486
1486
|
"pattern": "^(?:@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*/)?[a-zA-Z0-9-~][a-zA-Z0-9-._~]*$",
|
|
1487
1487
|
"$default": {
|
|
1488
1488
|
"$source": "argv",
|
|
@@ -1492,37 +1492,37 @@
|
|
|
1492
1492
|
"entryFile": {
|
|
1493
1493
|
"type": "string",
|
|
1494
1494
|
"format": "path",
|
|
1495
|
-
"description": "The path
|
|
1495
|
+
"description": "The path to the library's public API file, relative to the workspace root. This file defines what parts of the library are accessible to applications that import it.",
|
|
1496
1496
|
"default": "public-api"
|
|
1497
1497
|
},
|
|
1498
1498
|
"prefix": {
|
|
1499
1499
|
"type": "string",
|
|
1500
1500
|
"format": "html-selector",
|
|
1501
|
-
"description": "A prefix to
|
|
1501
|
+
"description": "A prefix to be added to the selectors of components generated within this library. For example, if the prefix is `my-lib` and you generate a component named `my-component`, the selector will be `my-lib-my-component`.",
|
|
1502
1502
|
"default": "lib",
|
|
1503
1503
|
"alias": "p"
|
|
1504
1504
|
},
|
|
1505
1505
|
"skipPackageJson": {
|
|
1506
1506
|
"type": "boolean",
|
|
1507
1507
|
"default": false,
|
|
1508
|
-
"description": "Do not add dependencies to the
|
|
1508
|
+
"description": "Do not automatically add dependencies to the `package.json` file."
|
|
1509
1509
|
},
|
|
1510
1510
|
"skipInstall": {
|
|
1511
|
-
"description": "
|
|
1511
|
+
"description": "Skip the automatic installation of packages. You will need to manually install the dependencies later.",
|
|
1512
1512
|
"type": "boolean",
|
|
1513
1513
|
"default": false
|
|
1514
1514
|
},
|
|
1515
1515
|
"skipTsConfig": {
|
|
1516
1516
|
"type": "boolean",
|
|
1517
1517
|
"default": false,
|
|
1518
|
-
"description": "Do not update
|
|
1518
|
+
"description": "Do not update the workspace `tsconfig.json` file to add a path mapping for the new library. The path mapping is needed to use the library in an application, but can be disabled here to simplify development."
|
|
1519
1519
|
},
|
|
1520
1520
|
"projectRoot": {
|
|
1521
1521
|
"type": "string",
|
|
1522
|
-
"description": "The root directory
|
|
1522
|
+
"description": "The root directory for the new library, relative to the workspace root. If not specified, the library will be created in a subfolder within the `projects` directory, using the library's name."
|
|
1523
1523
|
},
|
|
1524
1524
|
"standalone": {
|
|
1525
|
-
"description": "
|
|
1525
|
+
"description": "Create a library that utilizes the standalone API, eliminating the need for NgModules. This can simplify the structure of your library and its usage in applications.",
|
|
1526
1526
|
"type": "boolean",
|
|
1527
1527
|
"default": true
|
|
1528
1528
|
}
|
|
@@ -1532,11 +1532,11 @@
|
|
|
1532
1532
|
"title": "Angular Pipe Options Schema",
|
|
1533
1533
|
"type": "object",
|
|
1534
1534
|
"additionalProperties": false,
|
|
1535
|
-
"description": "Creates a new
|
|
1535
|
+
"description": "Creates a new pipe in your project. Pipes are used to transform data for display in templates. They take input values and apply a specific transformation, such as formatting dates, currency, or filtering arrays. This schematic generates the necessary files and boilerplate code for a new pipe.",
|
|
1536
1536
|
"properties": {
|
|
1537
1537
|
"name": {
|
|
1538
1538
|
"type": "string",
|
|
1539
|
-
"description": "The name
|
|
1539
|
+
"description": "The name for the new pipe. This will be used to create the pipe's class and spec files (e.g., `my-pipe.pipe.ts` and `my-pipe.pipe.spec.ts`).",
|
|
1540
1540
|
"$default": {
|
|
1541
1541
|
"$source": "argv",
|
|
1542
1542
|
"index": 0
|
|
@@ -1548,12 +1548,12 @@
|
|
|
1548
1548
|
"$default": {
|
|
1549
1549
|
"$source": "workingDirectory"
|
|
1550
1550
|
},
|
|
1551
|
-
"description": "The path
|
|
1551
|
+
"description": "The path where the pipe files should be created, relative to the workspace root. If not provided, the pipe will be created in the current directory.",
|
|
1552
1552
|
"visible": false
|
|
1553
1553
|
},
|
|
1554
1554
|
"project": {
|
|
1555
1555
|
"type": "string",
|
|
1556
|
-
"description": "The name of the project.",
|
|
1556
|
+
"description": "The name of the project where the pipe should be created. If not specified, the CLI will determine the project from the current directory.",
|
|
1557
1557
|
"$default": {
|
|
1558
1558
|
"$source": "projectName"
|
|
1559
1559
|
}
|
|
@@ -1561,47 +1561,47 @@
|
|
|
1561
1561
|
"flat": {
|
|
1562
1562
|
"type": "boolean",
|
|
1563
1563
|
"default": true,
|
|
1564
|
-
"description": "
|
|
1564
|
+
"description": "Creates the new pipe files at the top level of the current project. If set to false, a new folder with the pipe's name will be created to contain the files."
|
|
1565
1565
|
},
|
|
1566
1566
|
"skipTests": {
|
|
1567
1567
|
"type": "boolean",
|
|
1568
|
-
"description": "
|
|
1568
|
+
"description": "Prevent the generation of a unit test file `spec.ts` for the new pipe.",
|
|
1569
1569
|
"default": false
|
|
1570
1570
|
},
|
|
1571
1571
|
"skipImport": {
|
|
1572
1572
|
"type": "boolean",
|
|
1573
1573
|
"default": false,
|
|
1574
|
-
"description": "Do not import
|
|
1574
|
+
"description": "Do not automatically import the new pipe into its closest NgModule."
|
|
1575
1575
|
},
|
|
1576
1576
|
"standalone": {
|
|
1577
|
-
"description": "
|
|
1577
|
+
"description": "Generate a standalone pipe. Standalone pipes are self-contained and don't need to be declared in an NgModule. They can be used independently or imported directly into other standalone components, directives, or pipes.",
|
|
1578
1578
|
"type": "boolean",
|
|
1579
1579
|
"default": true
|
|
1580
1580
|
},
|
|
1581
1581
|
"module": {
|
|
1582
1582
|
"type": "string",
|
|
1583
|
-
"description": "
|
|
1583
|
+
"description": "Specify the NgModule where the pipe should be declared. If not provided, the CLI will attempt to find the closest NgModule in the pipe's path.",
|
|
1584
1584
|
"alias": "m"
|
|
1585
1585
|
},
|
|
1586
1586
|
"export": {
|
|
1587
1587
|
"type": "boolean",
|
|
1588
1588
|
"default": false,
|
|
1589
|
-
"description": "
|
|
1589
|
+
"description": "Automatically export the pipe from the specified NgModule, making it accessible to other modules in the application."
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
1592
|
},
|
|
1593
1593
|
"SchematicsAngularNgNewSchema": {
|
|
1594
1594
|
"title": "Angular Ng New Options Schema",
|
|
1595
1595
|
"type": "object",
|
|
1596
|
-
"description": "Creates a new project
|
|
1596
|
+
"description": "Creates a new Angular workspace and an initial project. This schematic sets up the foundation for your Angular development, generating the workspace configuration files and an optional starter application. You can customize various aspects of the workspace and the initial project, such as routing, styling, and testing.",
|
|
1597
1597
|
"additionalProperties": false,
|
|
1598
1598
|
"properties": {
|
|
1599
1599
|
"directory": {
|
|
1600
1600
|
"type": "string",
|
|
1601
|
-
"description": "The directory
|
|
1601
|
+
"description": "The directory where the new workspace and project should be created. If not specified, the workspace will be created in the current directory."
|
|
1602
1602
|
},
|
|
1603
1603
|
"name": {
|
|
1604
|
-
"description": "The name
|
|
1604
|
+
"description": "The name for the new workspace and the initial project. This name will be used for the root directory and various identifiers throughout the project.",
|
|
1605
1605
|
"type": "string",
|
|
1606
1606
|
"$default": {
|
|
1607
1607
|
"$source": "argv",
|
|
@@ -1609,18 +1609,18 @@
|
|
|
1609
1609
|
}
|
|
1610
1610
|
},
|
|
1611
1611
|
"skipInstall": {
|
|
1612
|
-
"description": "
|
|
1612
|
+
"description": "Skip the automatic installation of packages. You will need to manually install the dependencies later.",
|
|
1613
1613
|
"type": "boolean",
|
|
1614
1614
|
"default": false
|
|
1615
1615
|
},
|
|
1616
1616
|
"skipGit": {
|
|
1617
|
-
"description": "Do not initialize a
|
|
1617
|
+
"description": "Do not initialize a Git repository in the new workspace. By default, a Git repository is initialized to help you track changes to your project.",
|
|
1618
1618
|
"type": "boolean",
|
|
1619
1619
|
"default": false,
|
|
1620
1620
|
"alias": "g"
|
|
1621
1621
|
},
|
|
1622
1622
|
"commit": {
|
|
1623
|
-
"description": "
|
|
1623
|
+
"description": "Configure the initial Git commit for the new repository.",
|
|
1624
1624
|
"oneOf": [
|
|
1625
1625
|
{
|
|
1626
1626
|
"type": "boolean"
|
|
@@ -1644,22 +1644,22 @@
|
|
|
1644
1644
|
"default": true
|
|
1645
1645
|
},
|
|
1646
1646
|
"newProjectRoot": {
|
|
1647
|
-
"description": "The path where new projects will be created, relative to the
|
|
1647
|
+
"description": "The path where new projects will be created within the workspace, relative to the workspace root. By default, new projects are created in the `projects` directory.",
|
|
1648
1648
|
"type": "string",
|
|
1649
1649
|
"default": "projects"
|
|
1650
1650
|
},
|
|
1651
1651
|
"inlineStyle": {
|
|
1652
|
-
"description": "Include styles
|
|
1652
|
+
"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.",
|
|
1653
1653
|
"type": "boolean",
|
|
1654
1654
|
"alias": "s"
|
|
1655
1655
|
},
|
|
1656
1656
|
"inlineTemplate": {
|
|
1657
|
-
"description": "Include template
|
|
1657
|
+
"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.",
|
|
1658
1658
|
"type": "boolean",
|
|
1659
1659
|
"alias": "t"
|
|
1660
1660
|
},
|
|
1661
1661
|
"viewEncapsulation": {
|
|
1662
|
-
"description": "
|
|
1662
|
+
"description": "Sets the view encapsulation mode for components in the initial project. This determines how component styles are scoped and applied. Options include: `Emulated` (default, styles are scoped to the component), `None` (styles are global), and `ShadowDom` (styles are encapsulated using Shadow DOM).",
|
|
1663
1663
|
"enum": [
|
|
1664
1664
|
"Emulated",
|
|
1665
1665
|
"None",
|
|
@@ -1677,18 +1677,18 @@
|
|
|
1677
1677
|
},
|
|
1678
1678
|
"routing": {
|
|
1679
1679
|
"type": "boolean",
|
|
1680
|
-
"description": "Enable routing in the initial project."
|
|
1680
|
+
"description": "Enable routing in the initial application project. This sets up the necessary files and modules for managing navigation between different views in your application."
|
|
1681
1681
|
},
|
|
1682
1682
|
"prefix": {
|
|
1683
1683
|
"type": "string",
|
|
1684
1684
|
"format": "html-selector",
|
|
1685
|
-
"description": "The prefix to apply to generated selectors for the initial project.",
|
|
1685
|
+
"description": "The prefix to apply to generated selectors for the initial project. For example, if the prefix is `my-app` and you generate a component named `my-component`, the selector will be `my-app-my-component`.",
|
|
1686
1686
|
"minLength": 1,
|
|
1687
1687
|
"default": "app",
|
|
1688
1688
|
"alias": "p"
|
|
1689
1689
|
},
|
|
1690
1690
|
"style": {
|
|
1691
|
-
"description": "The
|
|
1691
|
+
"description": "The type of stylesheet files to be created for components in the initial project.",
|
|
1692
1692
|
"type": "string",
|
|
1693
1693
|
"enum": [
|
|
1694
1694
|
"css",
|
|
@@ -1698,23 +1698,23 @@
|
|
|
1698
1698
|
]
|
|
1699
1699
|
},
|
|
1700
1700
|
"skipTests": {
|
|
1701
|
-
"description": "
|
|
1701
|
+
"description": "Skip the generation of unit test files `spec.ts`.",
|
|
1702
1702
|
"type": "boolean",
|
|
1703
1703
|
"default": false,
|
|
1704
1704
|
"alias": "S"
|
|
1705
1705
|
},
|
|
1706
1706
|
"createApplication": {
|
|
1707
|
-
"description": "Create a new initial application project in the
|
|
1707
|
+
"description": "Create a new initial application project in the new workspace. When false, creates an empty workspace with no initial application. You can then use the `ng generate application` command to create applications in the `projects` directory.",
|
|
1708
1708
|
"type": "boolean",
|
|
1709
1709
|
"default": true
|
|
1710
1710
|
},
|
|
1711
1711
|
"minimal": {
|
|
1712
|
-
"description": "
|
|
1712
|
+
"description": "Generate a minimal Angular workspace without any testing frameworks. This is intended for learning purposes and simple experimentation, not for production applications.",
|
|
1713
1713
|
"type": "boolean",
|
|
1714
1714
|
"default": false
|
|
1715
1715
|
},
|
|
1716
1716
|
"strict": {
|
|
1717
|
-
"description": "
|
|
1717
|
+
"description": "Enable 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.dev/tools/cli/template-typecheck#strict-mode",
|
|
1718
1718
|
"type": "boolean",
|
|
1719
1719
|
"default": true
|
|
1720
1720
|
},
|
|
@@ -1735,29 +1735,29 @@
|
|
|
1735
1735
|
"default": true
|
|
1736
1736
|
},
|
|
1737
1737
|
"ssr": {
|
|
1738
|
-
"description": "
|
|
1738
|
+
"description": "Configure the initial application for Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering).",
|
|
1739
1739
|
"type": "boolean"
|
|
1740
1740
|
},
|
|
1741
1741
|
"serverRouting": {
|
|
1742
|
-
"description": "
|
|
1742
|
+
"description": "Create a server application in the initial project using the Server Routing and App Engine APIs (Developer Preview).",
|
|
1743
1743
|
"type": "boolean"
|
|
1744
1744
|
},
|
|
1745
1745
|
"experimentalZoneless": {
|
|
1746
|
-
"description": "Create an application that does not utilize zone.js
|
|
1746
|
+
"description": "Create an initial application that does not utilize `zone.js`.",
|
|
1747
1747
|
"type": "boolean",
|
|
1748
1748
|
"default": false
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
1751
|
},
|
|
1752
1752
|
"SchematicsAngularResolverSchema": {
|
|
1753
|
-
"title": "Angular
|
|
1753
|
+
"title": "Angular Resolver Options Schema",
|
|
1754
1754
|
"type": "object",
|
|
1755
1755
|
"additionalProperties": false,
|
|
1756
|
-
"description": "
|
|
1756
|
+
"description": "Creates a new resolver in your project. Resolvers are used to pre-fetch data before a route is activated, ensuring that the necessary data is available before the component is displayed. This can improve the user experience by preventing delays and loading states. This schematic generates a new resolver with the specified name and options.",
|
|
1757
1757
|
"properties": {
|
|
1758
1758
|
"name": {
|
|
1759
1759
|
"type": "string",
|
|
1760
|
-
"description": "The name
|
|
1760
|
+
"description": "The name for the new resolver. This will be used to create the resolver's class and spec files (e.g., `my-resolver.resolver.ts` and `my-resolver.resolver.spec.ts`).",
|
|
1761
1761
|
"$default": {
|
|
1762
1762
|
"$source": "argv",
|
|
1763
1763
|
"index": 0
|
|
@@ -1765,17 +1765,17 @@
|
|
|
1765
1765
|
},
|
|
1766
1766
|
"skipTests": {
|
|
1767
1767
|
"type": "boolean",
|
|
1768
|
-
"description": "
|
|
1768
|
+
"description": "Skip the generation of a unit test file `spec.ts` for the new resolver.",
|
|
1769
1769
|
"default": false
|
|
1770
1770
|
},
|
|
1771
1771
|
"flat": {
|
|
1772
1772
|
"type": "boolean",
|
|
1773
|
-
"description": "
|
|
1773
|
+
"description": "Creates the new resolver files at the top level of the current project. If set to false, a new folder with the resolver's name will be created to contain the files.",
|
|
1774
1774
|
"default": true
|
|
1775
1775
|
},
|
|
1776
1776
|
"functional": {
|
|
1777
1777
|
"type": "boolean",
|
|
1778
|
-
"description": "Creates the resolver as a `ResolveFn
|
|
1778
|
+
"description": "Creates the resolver as a function `ResolveFn` instead of a class. Functional resolvers can be simpler for basic scenarios.",
|
|
1779
1779
|
"default": true
|
|
1780
1780
|
},
|
|
1781
1781
|
"path": {
|
|
@@ -1784,12 +1784,12 @@
|
|
|
1784
1784
|
"$default": {
|
|
1785
1785
|
"$source": "workingDirectory"
|
|
1786
1786
|
},
|
|
1787
|
-
"description": "The path
|
|
1787
|
+
"description": "The path where the resolver files should be created, relative to the current workspace. If not provided, the resolver will be created in the current directory.",
|
|
1788
1788
|
"visible": false
|
|
1789
1789
|
},
|
|
1790
1790
|
"project": {
|
|
1791
1791
|
"type": "string",
|
|
1792
|
-
"description": "The name of the project.",
|
|
1792
|
+
"description": "The name of the project where the resolver should be created. If not specified, the CLI will determine the project from the current directory.",
|
|
1793
1793
|
"$default": {
|
|
1794
1794
|
"$source": "projectName"
|
|
1795
1795
|
}
|
|
@@ -1800,11 +1800,11 @@
|
|
|
1800
1800
|
"title": "Angular Service Options Schema",
|
|
1801
1801
|
"type": "object",
|
|
1802
1802
|
"additionalProperties": false,
|
|
1803
|
-
"description": "Creates a new,
|
|
1803
|
+
"description": "Creates a new service in your project. Services are used to encapsulate reusable logic, such as data access, API calls, or utility functions. This schematic simplifies the process of generating a new service with the necessary files and boilerplate code.",
|
|
1804
1804
|
"properties": {
|
|
1805
1805
|
"name": {
|
|
1806
1806
|
"type": "string",
|
|
1807
|
-
"description": "The name
|
|
1807
|
+
"description": "The name for the new service. This will be used to create the service's class and spec files (e.g., `my-service.service.ts` and `my-service.service.spec.ts`).",
|
|
1808
1808
|
"$default": {
|
|
1809
1809
|
"$source": "argv",
|
|
1810
1810
|
"index": 0
|
|
@@ -1815,12 +1815,12 @@
|
|
|
1815
1815
|
"$default": {
|
|
1816
1816
|
"$source": "workingDirectory"
|
|
1817
1817
|
},
|
|
1818
|
-
"description": "The path
|
|
1818
|
+
"description": "The path where the service files should be created, relative to the workspace root. If not provided, the service will be created in the project's `src/app` directory.",
|
|
1819
1819
|
"visible": false
|
|
1820
1820
|
},
|
|
1821
1821
|
"project": {
|
|
1822
1822
|
"type": "string",
|
|
1823
|
-
"description": "The name of the project.",
|
|
1823
|
+
"description": "The name of the project where the service should be added. If not specified, the CLI will determine the project from the current directory.",
|
|
1824
1824
|
"$default": {
|
|
1825
1825
|
"$source": "projectName"
|
|
1826
1826
|
}
|
|
@@ -1828,11 +1828,11 @@
|
|
|
1828
1828
|
"flat": {
|
|
1829
1829
|
"type": "boolean",
|
|
1830
1830
|
"default": true,
|
|
1831
|
-
"description": "
|
|
1831
|
+
"description": "Creates files at the top level of the project or the given path. If set to false, a new folder with the service's name will be created to contain the files."
|
|
1832
1832
|
},
|
|
1833
1833
|
"skipTests": {
|
|
1834
1834
|
"type": "boolean",
|
|
1835
|
-
"description": "
|
|
1835
|
+
"description": "Skip the generation of a unit test file `spec.ts` for the service.",
|
|
1836
1836
|
"default": false
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
@@ -1841,7 +1841,7 @@
|
|
|
1841
1841
|
"title": "Angular Web Worker Options Schema",
|
|
1842
1842
|
"type": "object",
|
|
1843
1843
|
"additionalProperties": false,
|
|
1844
|
-
"description": "Creates a new
|
|
1844
|
+
"description": "Creates a new web worker in your project. Web workers allow you to run JavaScript code in the background, improving the performance and responsiveness of your application by offloading computationally intensive tasks. This schematic generates the necessary files for a new web worker and provides an optional code snippet to demonstrate its usage.",
|
|
1845
1845
|
"properties": {
|
|
1846
1846
|
"path": {
|
|
1847
1847
|
"type": "string",
|
|
@@ -1849,19 +1849,19 @@
|
|
|
1849
1849
|
"$default": {
|
|
1850
1850
|
"$source": "workingDirectory"
|
|
1851
1851
|
},
|
|
1852
|
-
"description": "The path
|
|
1852
|
+
"description": "The path where the web worker file should be created, relative to the current workspace. If not specified, the worker will be created in the current directory.",
|
|
1853
1853
|
"visible": false
|
|
1854
1854
|
},
|
|
1855
1855
|
"project": {
|
|
1856
1856
|
"type": "string",
|
|
1857
|
-
"description": "The name of the project.",
|
|
1857
|
+
"description": "The name of the project where the web worker should be created. If not specified, the CLI will determine the project from the current directory.",
|
|
1858
1858
|
"$default": {
|
|
1859
1859
|
"$source": "projectName"
|
|
1860
1860
|
}
|
|
1861
1861
|
},
|
|
1862
1862
|
"name": {
|
|
1863
1863
|
"type": "string",
|
|
1864
|
-
"description": "The name
|
|
1864
|
+
"description": "The name for the new web worker. This will be used to create the worker file (e.g., `my-worker.worker.ts`).",
|
|
1865
1865
|
"$default": {
|
|
1866
1866
|
"$source": "argv",
|
|
1867
1867
|
"index": 0
|
|
@@ -1870,7 +1870,7 @@
|
|
|
1870
1870
|
"snippet": {
|
|
1871
1871
|
"type": "boolean",
|
|
1872
1872
|
"default": true,
|
|
1873
|
-
"description": "
|
|
1873
|
+
"description": "Generate a code snippet that demonstrates how to create and use the new web worker."
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
1876
|
},
|