@schematics/angular 19.1.0-next.2 → 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.
Files changed (56) hide show
  1. package/LICENSE +1 -1
  2. package/app-shell/schema.d.ts +4 -3
  3. package/app-shell/schema.json +3 -3
  4. package/application/schema.d.ts +40 -25
  5. package/application/schema.js +3 -2
  6. package/application/schema.json +18 -18
  7. package/class/schema.d.ts +13 -6
  8. package/class/schema.json +6 -6
  9. package/component/schema.d.ts +47 -29
  10. package/component/schema.js +5 -4
  11. package/component/schema.json +21 -21
  12. package/config/schema.d.ts +6 -4
  13. package/config/schema.js +1 -1
  14. package/config/schema.json +3 -3
  15. package/directive/schema.d.ts +25 -13
  16. package/directive/schema.json +12 -12
  17. package/enum/schema.d.ts +11 -6
  18. package/enum/schema.json +5 -5
  19. package/environments/schema.d.ts +5 -2
  20. package/environments/schema.json +2 -2
  21. package/guard/schema.d.ts +18 -9
  22. package/guard/schema.json +8 -8
  23. package/interceptor/schema.d.ts +16 -7
  24. package/interceptor/schema.json +7 -7
  25. package/interface/schema.d.ts +14 -6
  26. package/interface/schema.json +6 -6
  27. package/library/index.js +3 -3
  28. package/library/schema.d.ts +22 -10
  29. package/library/schema.json +9 -9
  30. package/migrations/use-application-builder/migration.js +4 -0
  31. package/ng-new/schema.d.ts +51 -31
  32. package/ng-new/schema.js +5 -2
  33. package/ng-new/schema.json +20 -20
  34. package/package.json +3 -3
  35. package/pipe/schema.d.ts +21 -10
  36. package/pipe/schema.json +10 -10
  37. package/resolver/schema.d.ts +15 -8
  38. package/resolver/schema.json +8 -8
  39. package/server/schema.d.ts +7 -4
  40. package/server/schema.json +4 -4
  41. package/service/schema.d.ts +12 -6
  42. package/service/schema.json +6 -6
  43. package/service-worker/schema.d.ts +7 -3
  44. package/service-worker/schema.json +3 -3
  45. package/ssr/schema.d.ts +12 -4
  46. package/ssr/schema.json +4 -3
  47. package/utility/latest-versions/package.json +2 -2
  48. package/utility/latest-versions.d.ts +1 -0
  49. package/utility/latest-versions.js +3 -2
  50. package/utility/workspace-models.d.ts +1 -0
  51. package/utility/workspace-models.js +1 -0
  52. package/web-worker/schema.d.ts +11 -5
  53. package/web-worker/schema.json +5 -5
  54. package/workspace/schema.d.ts +15 -10
  55. package/workspace/schema.js +1 -1
  56. package/workspace/schema.json +6 -6
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
3
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,13 +1,14 @@
1
1
  /**
2
- * Generates an application shell for running a server-side version of an app.
2
+ * Configures your project to generate an app-shell during build time.
3
3
  */
4
4
  export interface Schema {
5
5
  /**
6
- * The name of the related client app.
6
+ * The name of the project where the app-shell should be generated.
7
7
  */
8
8
  project: string;
9
9
  /**
10
- * Creates a server application using the Server Routing API (Developer Preview).
10
+ * Set up a server application using the Server Routing and App Engine APIs (Developer
11
+ * Preview).
11
12
  */
12
13
  serverRouting?: boolean;
13
14
  }
@@ -3,18 +3,18 @@
3
3
  "$id": "SchematicsAngularAppShell",
4
4
  "title": "Angular AppShell Options Schema",
5
5
  "type": "object",
6
- "description": "Generates an application shell for running a server-side version of an app.",
6
+ "description": "Configures your project to generate an app-shell during build time.",
7
7
  "additionalProperties": false,
8
8
  "properties": {
9
9
  "project": {
10
10
  "type": "string",
11
- "description": "The name of the related client app.",
11
+ "description": "The name of the project where the app-shell should be generated.",
12
12
  "$default": {
13
13
  "$source": "projectName"
14
14
  }
15
15
  },
16
16
  "serverRouting": {
17
- "description": "Creates a server application using the Server Routing API (Developer Preview).",
17
+ "description": "Set up a server application using the Server Routing and App Engine APIs (Developer Preview).",
18
18
  "type": "boolean",
19
19
  "default": false
20
20
  }
@@ -1,84 +1,98 @@
1
1
  /**
2
- * Generates a new basic application definition in the "projects" subfolder of the workspace.
2
+ * Generates a new Angular application within your workspace. This schematic sets up the
3
+ * foundational structure of your project, including the root component, module, and
4
+ * configuration files. You can customize various aspects of the application, such as
5
+ * routing, styling, and testing.
3
6
  */
4
7
  export interface Schema {
5
8
  /**
6
- * Create an application that does not utilize zone.js.
9
+ * Generate an application that does not use `zone.js`.
7
10
  */
8
11
  experimentalZoneless?: boolean;
9
12
  /**
10
- * Include styles inline in the root component.ts file. Only CSS styles can be included
11
- * inline. Default is false, meaning that an external styles file is created and referenced
12
- * in the root component.ts file.
13
+ * Include the styles for the root component directly within the `app.component.ts` file.
14
+ * Only CSS styles can be included inline. By default, a separate stylesheet file (e.g.,
15
+ * `app.component.css`) is created.
13
16
  */
14
17
  inlineStyle?: boolean;
15
18
  /**
16
- * Include template inline in the root component.ts file. Default is false, meaning that an
17
- * external template file is created and referenced in the root component.ts file.
19
+ * Include the HTML template for the root component directly within the `app.component.ts`
20
+ * file. By default, a separate template file (e.g., `app.component.html`) is created.
18
21
  */
19
22
  inlineTemplate?: boolean;
20
23
  /**
21
- * Create a bare-bones project without any testing frameworks. (Use for learning purposes
22
- * only.)
24
+ * Generate a minimal project without any testing frameworks. This is intended for learning
25
+ * purposes and simple experimentation, not for production applications.
23
26
  */
24
27
  minimal?: boolean;
25
28
  /**
26
- * The name of the new application.
29
+ * The name for the new application. This name will be used for the project directory and
30
+ * various identifiers throughout the application's code.
27
31
  */
28
32
  name: string;
29
33
  /**
30
- * A prefix to apply to generated selectors.
34
+ * A prefix to be added to the selectors of components generated within this application.
35
+ * For example, if the prefix is `my-app` and you generate a component named `my-component`,
36
+ * the selector will be `my-app-my-component`.
31
37
  */
32
38
  prefix?: string;
33
39
  /**
34
- * The root directory of the new application.
40
+ * The directory where the new application's files will be created, relative to the
41
+ * workspace root. If not specified, the application will be created in a subfolder within
42
+ * the `projects` directory, using the application's name.
35
43
  */
36
44
  projectRoot?: string;
37
45
  /**
38
- * Creates an application with routing enabled.
46
+ * Generate an application with routing already configured. This sets up the necessary files
47
+ * and modules for managing navigation between different views in your application.
39
48
  */
40
49
  routing?: boolean;
41
50
  /**
42
- * Creates a server application using the Server Routing and App Engine APIs (Developer
51
+ * Set up a server application using the Server Routing and App Engine APIs (Developer
43
52
  * Preview).
44
53
  */
45
54
  serverRouting?: boolean;
46
55
  /**
47
- * Skip installing dependency packages.
56
+ * Skip the automatic installation of packages. You will need to manually install the
57
+ * dependencies later.
48
58
  */
49
59
  skipInstall?: boolean;
50
60
  /**
51
- * Do not add dependencies to the "package.json" file.
61
+ * Do not add dependencies to the `package.json` file.
52
62
  */
53
63
  skipPackageJson?: boolean;
54
64
  /**
55
- * Do not create "spec.ts" test files for the application.
65
+ * Skip the generation of a unit test files `spec.ts`.
56
66
  */
57
67
  skipTests?: boolean;
58
68
  /**
59
- * Creates an application with Server-Side Rendering (SSR) and Static Site Generation
60
- * (SSG/Prerendering) enabled.
69
+ * Configure the application for Server-Side Rendering (SSR) and Static Site Generation
70
+ * (SSG/Prerendering).
61
71
  */
62
72
  ssr?: boolean;
63
73
  /**
64
- * Creates an application based upon the standalone API, without NgModules.
74
+ * Create an application that utilizes the standalone API, eliminating the need for
75
+ * NgModules. This can simplify the structure of your application.
65
76
  */
66
77
  standalone?: boolean;
67
78
  /**
68
- * Creates an application with stricter bundle budgets settings.
79
+ * Enable stricter bundle budget settings for the application. This helps to keep your
80
+ * application's bundle size small and improve performance. For more information, see
81
+ * https://angular.dev/tools/cli/template-typecheck#strict-mode
69
82
  */
70
83
  strict?: boolean;
71
84
  /**
72
- * The file extension or preprocessor to use for style files.
85
+ * The type of stylesheet files to be created for components in the application.
73
86
  */
74
87
  style?: Style;
75
88
  /**
76
- * The view encapsulation strategy to use in the new application.
89
+ * Sets the view encapsulation mode for the application's components. This determines how
90
+ * component styles are scoped and applied.
77
91
  */
78
92
  viewEncapsulation?: ViewEncapsulation;
79
93
  }
80
94
  /**
81
- * The file extension or preprocessor to use for style files.
95
+ * The type of stylesheet files to be created for components in the application.
82
96
  */
83
97
  export declare enum Style {
84
98
  Css = "css",
@@ -87,7 +101,8 @@ export declare enum Style {
87
101
  Scss = "scss"
88
102
  }
89
103
  /**
90
- * The view encapsulation strategy to use in the new application.
104
+ * Sets the view encapsulation mode for the application's components. This determines how
105
+ * component styles are scoped and applied.
91
106
  */
92
107
  export declare enum ViewEncapsulation {
93
108
  Emulated = "Emulated",
@@ -4,7 +4,7 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.ViewEncapsulation = exports.Style = void 0;
6
6
  /**
7
- * The file extension or preprocessor to use for style files.
7
+ * The type of stylesheet files to be created for components in the application.
8
8
  */
9
9
  var Style;
10
10
  (function (Style) {
@@ -14,7 +14,8 @@ var Style;
14
14
  Style["Scss"] = "scss";
15
15
  })(Style || (exports.Style = Style = {}));
16
16
  /**
17
- * The view encapsulation strategy to use in the new application.
17
+ * Sets the view encapsulation mode for the application's components. This determines how
18
+ * component styles are scoped and applied.
18
19
  */
19
20
  var ViewEncapsulation;
20
21
  (function (ViewEncapsulation) {
@@ -3,15 +3,15 @@
3
3
  "$id": "SchematicsAngularApp",
4
4
  "title": "Angular Application Options Schema",
5
5
  "type": "object",
6
- "description": "Generates a new basic application definition in the \"projects\" subfolder of the workspace.",
6
+ "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.",
7
7
  "additionalProperties": false,
8
8
  "properties": {
9
9
  "projectRoot": {
10
- "description": "The root directory of the new application.",
10
+ "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.",
11
11
  "type": "string"
12
12
  },
13
13
  "name": {
14
- "description": "The name of the new application.",
14
+ "description": "The name for the new application. This name will be used for the project directory and various identifiers throughout the application's code.",
15
15
  "type": "string",
16
16
  "pattern": "^(?:@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*/)?[a-zA-Z0-9-~][a-zA-Z0-9-._~]*$",
17
17
  "$default": {
@@ -21,37 +21,37 @@
21
21
  "x-prompt": "What name would you like to use for the application?"
22
22
  },
23
23
  "inlineStyle": {
24
- "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.",
24
+ "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.",
25
25
  "type": "boolean",
26
26
  "alias": "s",
27
27
  "x-user-analytics": "ep.ng_inline_style"
28
28
  },
29
29
  "inlineTemplate": {
30
- "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. ",
30
+ "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.",
31
31
  "type": "boolean",
32
32
  "alias": "t",
33
33
  "x-user-analytics": "ep.ng_inline_template"
34
34
  },
35
35
  "viewEncapsulation": {
36
- "description": "The view encapsulation strategy to use in the new application.",
36
+ "description": "Sets the view encapsulation mode for the application's components. This determines how component styles are scoped and applied.",
37
37
  "enum": ["Emulated", "None", "ShadowDom"],
38
38
  "type": "string"
39
39
  },
40
40
  "routing": {
41
41
  "type": "boolean",
42
- "description": "Creates an application with routing enabled.",
42
+ "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.",
43
43
  "default": true,
44
44
  "x-user-analytics": "ep.ng_routing"
45
45
  },
46
46
  "prefix": {
47
47
  "type": "string",
48
48
  "format": "html-selector",
49
- "description": "A prefix to apply to generated selectors.",
49
+ "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`.",
50
50
  "default": "app",
51
51
  "alias": "p"
52
52
  },
53
53
  "style": {
54
- "description": "The file extension or preprocessor to use for style files.",
54
+ "description": "The type of stylesheet files to be created for components in the application.",
55
55
  "type": "string",
56
56
  "default": "css",
57
57
  "enum": ["css", "scss", "sass", "less"],
@@ -80,7 +80,7 @@
80
80
  "x-user-analytics": "ep.ng_style"
81
81
  },
82
82
  "skipTests": {
83
- "description": "Do not create \"spec.ts\" test files for the application.",
83
+ "description": "Skip the generation of a unit test files `spec.ts`.",
84
84
  "type": "boolean",
85
85
  "default": false,
86
86
  "alias": "S"
@@ -88,42 +88,42 @@
88
88
  "skipPackageJson": {
89
89
  "type": "boolean",
90
90
  "default": false,
91
- "description": "Do not add dependencies to the \"package.json\" file."
91
+ "description": "Do not add dependencies to the `package.json` file."
92
92
  },
93
93
  "minimal": {
94
- "description": "Create a bare-bones project without any testing frameworks. (Use for learning purposes only.)",
94
+ "description": "Generate a minimal project without any testing frameworks. This is intended for learning purposes and simple experimentation, not for production applications.",
95
95
  "type": "boolean",
96
96
  "default": false
97
97
  },
98
98
  "skipInstall": {
99
- "description": "Skip installing dependency packages.",
99
+ "description": "Skip the automatic installation of packages. You will need to manually install the dependencies later.",
100
100
  "type": "boolean",
101
101
  "default": false
102
102
  },
103
103
  "strict": {
104
- "description": "Creates an application with stricter bundle budgets settings.",
104
+ "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",
105
105
  "type": "boolean",
106
106
  "default": true
107
107
  },
108
108
  "standalone": {
109
- "description": "Creates an application based upon the standalone API, without NgModules.",
109
+ "description": "Create an application that utilizes the standalone API, eliminating the need for NgModules. This can simplify the structure of your application.",
110
110
  "type": "boolean",
111
111
  "default": true,
112
112
  "x-user-analytics": "ep.ng_standalone"
113
113
  },
114
114
  "ssr": {
115
- "description": "Creates an application with Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) enabled.",
115
+ "description": "Configure the application for Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering).",
116
116
  "x-prompt": "Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)?",
117
117
  "type": "boolean",
118
118
  "default": false,
119
119
  "x-user-analytics": "ep.ng_ssr"
120
120
  },
121
121
  "serverRouting": {
122
- "description": "Creates a server application using the Server Routing and App Engine APIs (Developer Preview).",
122
+ "description": "Set up a server application using the Server Routing and App Engine APIs (Developer Preview).",
123
123
  "type": "boolean"
124
124
  },
125
125
  "experimentalZoneless": {
126
- "description": "Create an application that does not utilize zone.js.",
126
+ "description": "Generate an application that does not use `zone.js`.",
127
127
  "type": "boolean",
128
128
  "default": false
129
129
  }
package/class/schema.d.ts CHANGED
@@ -1,25 +1,32 @@
1
1
  /**
2
- * Creates a new, generic class definition in the given project.
2
+ * Creates a new class in your project. Classes are the fundamental building blocks for
3
+ * object-oriented programming in TypeScript. They provide a blueprint for creating objects
4
+ * with properties and methods. This schematic helps you generate a new class with the basic
5
+ * structure and optional test files.
3
6
  */
4
7
  export interface Schema {
5
8
  /**
6
- * The name of the new class.
9
+ * The name for the new class. This will be used to create the class file (e.g.,
10
+ * `my-class.ts`) and, if enabled, the corresponding test file `my-class.spec.ts`.
7
11
  */
8
12
  name: string;
9
13
  /**
10
- * The path at which to create the class, relative to the workspace root.
14
+ * The path where the class file should be created, relative to the workspace root. If not
15
+ * specified, the class will be created in the current directory.
11
16
  */
12
17
  path?: string;
13
18
  /**
14
- * The name of the project.
19
+ * The name of the project where the class should be added. If not specified, the CLI will
20
+ * determine the project from the current directory.
15
21
  */
16
22
  project: string;
17
23
  /**
18
- * Do not create "spec.ts" test files for the new class.
24
+ * Skip the generation of a unit test file `spec.ts` for the new class.
19
25
  */
20
26
  skipTests?: boolean;
21
27
  /**
22
- * Adds a developer-defined type to the filename, in the format "name.type.ts".
28
+ * Adds a custom type to the filename, allowing you to create more descriptive class names.
29
+ * For example, if you set the type to `helper`, the filename will be `my-class.helper.ts`.
23
30
  */
24
31
  type?: string;
25
32
  }
package/class/schema.json CHANGED
@@ -3,12 +3,12 @@
3
3
  "$id": "SchematicsAngularClass",
4
4
  "title": "Angular Class Options Schema",
5
5
  "type": "object",
6
- "description": "Creates a new, generic class definition in the given project.",
6
+ "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.",
7
7
  "additionalProperties": false,
8
8
  "properties": {
9
9
  "name": {
10
10
  "type": "string",
11
- "description": "The name of the new class.",
11
+ "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`.",
12
12
  "$default": {
13
13
  "$source": "argv",
14
14
  "index": 0
@@ -21,24 +21,24 @@
21
21
  "$default": {
22
22
  "$source": "workingDirectory"
23
23
  },
24
- "description": "The path at which to create the class, relative to the workspace root.",
24
+ "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.",
25
25
  "visible": false
26
26
  },
27
27
  "project": {
28
28
  "type": "string",
29
- "description": "The name of the project.",
29
+ "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.",
30
30
  "$default": {
31
31
  "$source": "projectName"
32
32
  }
33
33
  },
34
34
  "skipTests": {
35
35
  "type": "boolean",
36
- "description": "Do not create \"spec.ts\" test files for the new class.",
36
+ "description": "Skip the generation of a unit test file `spec.ts` for the new class.",
37
37
  "default": false
38
38
  },
39
39
  "type": {
40
40
  "type": "string",
41
- "description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\"."
41
+ "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`."
42
42
  }
43
43
  },
44
44
  "required": ["name", "project"]
@@ -1,102 +1,119 @@
1
1
  /**
2
- * Creates a new, generic component definition in the given project.
2
+ * Creates a new Angular component. Components are the basic building blocks of Angular
3
+ * applications. Each component consists of a TypeScript class, an HTML template, and an
4
+ * optional CSS stylesheet. Use this schematic to generate a new component in your project.
3
5
  */
4
6
  export interface Schema {
5
7
  /**
6
- * The change detection strategy to use in the new component.
8
+ * Configures the change detection strategy for the component.
7
9
  */
8
10
  changeDetection?: ChangeDetection;
9
11
  /**
10
- * Specifies if the style will contain `:host { display: block; }`.
12
+ * Adds `:host { display: block; }` to the component's stylesheet, ensuring the component
13
+ * renders as a block-level element. This is useful for layout purposes.
11
14
  */
12
15
  displayBlock?: boolean;
13
16
  /**
14
- * The declaring NgModule exports this component.
17
+ * Automatically export the component from the specified NgModule, making it accessible to
18
+ * other modules in the application.
15
19
  */
16
20
  export?: boolean;
17
21
  /**
18
- * Use default export for the component instead of a named export.
22
+ * Use a default export for the component in its TypeScript file instead of a named export.
19
23
  */
20
24
  exportDefault?: boolean;
21
25
  /**
22
- * Create the new files at the top level of the current project.
26
+ * Create the component files directly in the project's `src/app` directory instead of
27
+ * creating a new folder for them.
23
28
  */
24
29
  flat?: boolean;
25
30
  /**
26
- * Include styles inline in the component.ts file. Only CSS styles can be included inline.
27
- * By default, an external styles file is created and referenced in the component.ts file.
31
+ * Include the component's styles directly in the `component.ts` file. By default, a
32
+ * separate stylesheet file (e.g., `my-component.component.css`) is created.
28
33
  */
29
34
  inlineStyle?: boolean;
30
35
  /**
31
- * Include template inline in the component.ts file. By default, an external template file
32
- * is created and referenced in the component.ts file.
36
+ * Include the component's HTML template directly in the `component.ts` file. By default, a
37
+ * separate template file (e.g., `my-component.component.html`) is created.
33
38
  */
34
39
  inlineTemplate?: boolean;
35
40
  /**
36
- * The declaring NgModule.
41
+ * Specify the NgModule where the component should be declared. If not provided, the CLI
42
+ * will attempt to find the closest NgModule in the component's path.
37
43
  */
38
44
  module?: string;
39
45
  /**
40
- * The name of the component.
46
+ * The name for the new component. This will be used to create the component's class,
47
+ * template, and stylesheet files. For example, if you provide `my-component`, the files
48
+ * will be named `my-component.component.ts`, `my-component.component.html`, and
49
+ * `my-component.component.css`.
41
50
  */
42
51
  name: string;
43
52
  /**
44
- * The path at which to create the component file, relative to the current workspace.
45
- * Default is a folder with the same name as the component in the project root.
53
+ * The path where the component files should be created, relative to the current workspace.
54
+ * If not provided, a folder with the same name as the component will be created in the
55
+ * project's `src/app` directory.
46
56
  */
47
57
  path?: string;
48
58
  /**
49
- * The prefix to apply to the generated component selector.
59
+ * A prefix to be added to the component's selector. For example, if the prefix is `app` and
60
+ * the component name is `my-component`, the selector will be `app-my-component`.
50
61
  */
51
62
  prefix?: string;
52
63
  /**
53
- * The name of the project.
64
+ * The name of the project where the component should be added. If not specified, the CLI
65
+ * will determine the project from the current directory.
54
66
  */
55
67
  project: string;
56
68
  /**
57
- * The HTML selector to use for this component.
69
+ * The HTML selector to use for this component. If not provided, a selector will be
70
+ * generated based on the component name (e.g., `app-my-component`).
58
71
  */
59
72
  selector?: string;
60
73
  /**
61
- * Do not import this component into the owning NgModule.
74
+ * Do not automatically import the new component into its closest NgModule.
62
75
  */
63
76
  skipImport?: boolean;
64
77
  /**
65
- * Specifies if the component should have a selector or not.
78
+ * Skip the generation of an HTML selector for the component.
66
79
  */
67
80
  skipSelector?: boolean;
68
81
  /**
69
- * Do not create "spec.ts" test files for the new component.
82
+ * Skip the generation of unit test files `spec.ts`.
70
83
  */
71
84
  skipTests?: boolean;
72
85
  /**
73
- * Whether the generated component is standalone.
86
+ * Generate a standalone component. Standalone components are self-contained and don't need
87
+ * to be declared in an NgModule. They can be used independently or imported directly into
88
+ * other standalone components.
74
89
  */
75
90
  standalone?: boolean;
76
91
  /**
77
- * The file extension or preprocessor to use for style files, or 'none' to skip generating
78
- * the style file.
92
+ * Specify the type of stylesheet to be created for the component, or `none` to skip
93
+ * creating a stylesheet.
79
94
  */
80
95
  style?: Style;
81
96
  /**
82
- * Adds a developer-defined type to the filename, in the format "name.type.ts".
97
+ * Append a custom type to the component's filename. For example, if you set the type to
98
+ * `container`, the file will be named `my-component.container.ts`.
83
99
  */
84
100
  type?: string;
85
101
  /**
86
- * The view encapsulation strategy to use in the new component.
102
+ * Sets the view encapsulation mode for the component. This determines how the component's
103
+ * styles are scoped and applied.
87
104
  */
88
105
  viewEncapsulation?: ViewEncapsulation;
89
106
  }
90
107
  /**
91
- * The change detection strategy to use in the new component.
108
+ * Configures the change detection strategy for the component.
92
109
  */
93
110
  export declare enum ChangeDetection {
94
111
  Default = "Default",
95
112
  OnPush = "OnPush"
96
113
  }
97
114
  /**
98
- * The file extension or preprocessor to use for style files, or 'none' to skip generating
99
- * the style file.
115
+ * Specify the type of stylesheet to be created for the component, or `none` to skip
116
+ * creating a stylesheet.
100
117
  */
101
118
  export declare enum Style {
102
119
  Css = "css",
@@ -106,7 +123,8 @@ export declare enum Style {
106
123
  Scss = "scss"
107
124
  }
108
125
  /**
109
- * The view encapsulation strategy to use in the new component.
126
+ * Sets the view encapsulation mode for the component. This determines how the component's
127
+ * styles are scoped and applied.
110
128
  */
111
129
  export declare enum ViewEncapsulation {
112
130
  Emulated = "Emulated",
@@ -4,7 +4,7 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.ViewEncapsulation = exports.Style = exports.ChangeDetection = void 0;
6
6
  /**
7
- * The change detection strategy to use in the new component.
7
+ * Configures the change detection strategy for the component.
8
8
  */
9
9
  var ChangeDetection;
10
10
  (function (ChangeDetection) {
@@ -12,8 +12,8 @@ var ChangeDetection;
12
12
  ChangeDetection["OnPush"] = "OnPush";
13
13
  })(ChangeDetection || (exports.ChangeDetection = ChangeDetection = {}));
14
14
  /**
15
- * The file extension or preprocessor to use for style files, or 'none' to skip generating
16
- * the style file.
15
+ * Specify the type of stylesheet to be created for the component, or `none` to skip
16
+ * creating a stylesheet.
17
17
  */
18
18
  var Style;
19
19
  (function (Style) {
@@ -24,7 +24,8 @@ var Style;
24
24
  Style["Scss"] = "scss";
25
25
  })(Style || (exports.Style = Style = {}));
26
26
  /**
27
- * The view encapsulation strategy to use in the new component.
27
+ * Sets the view encapsulation mode for the component. This determines how the component's
28
+ * styles are scoped and applied.
28
29
  */
29
30
  var ViewEncapsulation;
30
31
  (function (ViewEncapsulation) {