1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "id": "SchematicsAngularClass",
|
4 | "title": "Angular Class Options Schema",
|
5 | "type": "object",
|
6 | "description": "Creates a new generic class definition in the given or default project.",
|
7 | "properties": {
|
8 | "name": {
|
9 | "type": "string",
|
10 | "description": "The name of the new class.",
|
11 | "$default": {
|
12 | "$source": "argv",
|
13 | "index": 0
|
14 | },
|
15 | "x-prompt": "What name would you like to use for the class?"
|
16 | },
|
17 | "path": {
|
18 | "type": "string",
|
19 | "format": "path",
|
20 | "description": "The path at which to create the class, relative to the workspace root.",
|
21 | "visible": false
|
22 | },
|
23 | "project": {
|
24 | "type": "string",
|
25 | "description": "The name of the project.",
|
26 | "$default": {
|
27 | "$source": "projectName"
|
28 | }
|
29 | },
|
30 | "skipTests": {
|
31 | "type": "boolean",
|
32 | "description": "When true, does not create \"spec.ts\" test files for the new class.",
|
33 | "default": false,
|
34 | "x-user-analytics": 12
|
35 | },
|
36 | "type": {
|
37 | "type": "string",
|
38 | "description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\".",
|
39 | "default": ""
|
40 | },
|
41 | "lintFix": {
|
42 | "type": "boolean",
|
43 | "default": false,
|
44 | "description": "When true, applies lint fixes after generating the class.",
|
45 | "x-user-analytics": 15
|
46 | }
|
47 | },
|
48 | "required": [
|
49 | "name"
|
50 | ]
|
51 | }
|