|
1 | 1 | { |
2 | 2 | "$schema": "http://json-schema.org/draft-07/schema", |
3 | | - "$id": "SchematicsAngularService", |
4 | | - "title": "Angular Service Options Schema", |
| 3 | + "$id": "SchematicsAngularInjectable", |
| 4 | + "title": "Angular Injectable Options Schema", |
5 | 5 | "type": "object", |
6 | 6 | "additionalProperties": false, |
7 | | - "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.", |
| 7 | + "description": "Creates a new injectable in your project. Injectables are used to encapsulate reusable logic, such as data access, API calls, or utility functions. This schematic simplifies the process of generating a new injectable with the necessary files and boilerplate code.", |
8 | 8 | "properties": { |
9 | 9 | "name": { |
10 | 10 | "type": "string", |
11 | | - "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`).", |
| 11 | + "description": "The name for the new injectable. This will be used to create the injectable class and spec files (e.g., `my-inj.service.ts` and `my-inj.service.spec.ts`).", |
12 | 12 | "$default": { |
13 | 13 | "$source": "argv", |
14 | 14 | "index": 0 |
15 | 15 | }, |
16 | | - "x-prompt": "What name would you like to use for the service?" |
| 16 | + "x-prompt": "What name would you like to use for the injectable?" |
17 | 17 | }, |
18 | 18 | "path": { |
19 | 19 | "type": "string", |
20 | 20 | "$default": { |
21 | 21 | "$source": "workingDirectory" |
22 | 22 | }, |
23 | | - "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.", |
| 23 | + "description": "The path where the injectable files should be created, relative to the workspace root. If not provided, the injectable will be created in the project's `src/app` directory.", |
24 | 24 | "visible": false |
25 | 25 | }, |
26 | 26 | "project": { |
27 | 27 | "type": "string", |
28 | | - "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.", |
| 28 | + "description": "The name of the project where the injectable should be added. If not specified, the CLI will determine the project from the current directory.", |
29 | 29 | "$default": { |
30 | 30 | "$source": "projectName" |
31 | 31 | } |
32 | 32 | }, |
33 | 33 | "flat": { |
34 | 34 | "type": "boolean", |
35 | 35 | "default": true, |
36 | | - "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." |
| 36 | + "description": "Creates files at the top level of the project or the given path. If set to false, a new folder with the injectable's name will be created to contain the files." |
37 | 37 | }, |
38 | 38 | "skipTests": { |
39 | 39 | "type": "boolean", |
40 | | - "description": "Skip the generation of a unit test file `spec.ts` for the service.", |
| 40 | + "description": "Skip the generation of a unit test file `spec.ts` for the injectable.", |
41 | 41 | "default": false |
42 | 42 | }, |
43 | 43 | "type": { |
44 | 44 | "type": "string", |
45 | | - "description": "Append a custom type to the service's filename. For example, if you set the type to `service`, the file will be named `my-service.service.ts`." |
| 45 | + "description": "Append a custom type to the injectable's filename. For example, if you set the type to `service`, the file will be named `my-inj.service.ts`." |
46 | 46 | }, |
47 | 47 | "addTypeToClassName": { |
48 | 48 | "type": "boolean", |
|
0 commit comments