@nx/nest 22.7.0-beta.7 → 22.7.0-beta.9

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.
@@ -1,48 +1,48 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxNestProviderGenerator",
4
- "title": "Nest Provider Options Schema",
5
- "description": "Nest Provider Options Schema.",
6
- "cli": "nx",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "description": "Generate the provider `Foo` at `myapp/src/app/foo.ts`",
11
- "command": "nx g @nx/nest:provider myapp/src/app/foo.ts"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxNestProviderGenerator",
4
+ "title": "Nest Provider Options Schema",
5
+ "description": "Nest Provider Options Schema.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "description": "Generate the provider `Foo` at `myapp/src/app/foo.ts`",
11
+ "command": "nx g @nx/nest:provider myapp/src/app/foo.ts"
12
+ },
13
+ {
14
+ "description": "Generate the provider without providing the file extension. It results in the provider `Foo` at `myapp/src/app/foo.ts`",
15
+ "command": "nx g @nx/nest:provider myapp/src/app/foo"
16
+ }
17
+ ],
18
+ "properties": {
19
+ "path": {
20
+ "description": "The file path to the provider. Relative to the current working directory.",
21
+ "type": "string",
22
+ "$default": {
23
+ "$source": "argv",
24
+ "index": 0
25
+ },
26
+ "x-prompt": "What is the provider file path?"
27
+ },
28
+ "skipFormat": {
29
+ "description": "Skip formatting files.",
30
+ "type": "boolean",
31
+ "default": false,
32
+ "x-priority": "internal"
33
+ },
34
+ "unitTestRunner": {
35
+ "description": "Test runner to use for unit tests.",
36
+ "type": "string",
37
+ "enum": ["jest", "none"],
38
+ "default": "jest"
39
+ },
40
+ "language": {
41
+ "description": "Nest provider language.",
42
+ "type": "string",
43
+ "enum": ["js", "ts"]
44
+ }
12
45
  },
13
- {
14
- "description": "Generate the provider without providing the file extension. It results in the provider `Foo` at `myapp/src/app/foo.ts`",
15
- "command": "nx g @nx/nest:provider myapp/src/app/foo"
16
- }
17
- ],
18
- "properties": {
19
- "path": {
20
- "description": "The file path to the provider. Relative to the current working directory.",
21
- "type": "string",
22
- "$default": {
23
- "$source": "argv",
24
- "index": 0
25
- },
26
- "x-prompt": "What is the provider file path?"
27
- },
28
- "skipFormat": {
29
- "description": "Skip formatting files.",
30
- "type": "boolean",
31
- "default": false,
32
- "x-priority": "internal"
33
- },
34
- "unitTestRunner": {
35
- "description": "Test runner to use for unit tests.",
36
- "type": "string",
37
- "enum": ["jest", "none"],
38
- "default": "jest"
39
- },
40
- "language": {
41
- "description": "Nest provider language.",
42
- "type": "string",
43
- "enum": ["js", "ts"]
44
- }
45
- },
46
- "additionalProperties": false,
47
- "required": ["path"]
46
+ "additionalProperties": false,
47
+ "required": ["path"]
48
48
  }
@@ -1,48 +1,48 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxNestResolverGenerator",
4
- "title": "Nest Resolver Options Schema",
5
- "description": "Nest Resolver Options Schema.",
6
- "cli": "nx",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "description": "Generate the resolver `FooResolver` at `myapp/src/app/foo.resolver.ts`",
11
- "command": "nx g @nx/nest:resolver myapp/src/app/foo.resolver.ts"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxNestResolverGenerator",
4
+ "title": "Nest Resolver Options Schema",
5
+ "description": "Nest Resolver Options Schema.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "description": "Generate the resolver `FooResolver` at `myapp/src/app/foo.resolver.ts`",
11
+ "command": "nx g @nx/nest:resolver myapp/src/app/foo.resolver.ts"
12
+ },
13
+ {
14
+ "description": "Generate the resolver without providing the file extension. It results in the resolver `FooResolver` at `myapp/src/app/foo.resolver.ts`",
15
+ "command": "nx g @nx/nest:resolver myapp/src/app/foo"
16
+ }
17
+ ],
18
+ "properties": {
19
+ "path": {
20
+ "description": "The file path to the resolver. Relative to the current working directory.",
21
+ "type": "string",
22
+ "$default": {
23
+ "$source": "argv",
24
+ "index": 0
25
+ },
26
+ "x-prompt": "What is the resolver file path?"
27
+ },
28
+ "skipFormat": {
29
+ "description": "Skip formatting files.",
30
+ "type": "boolean",
31
+ "default": false,
32
+ "x-priority": "internal"
33
+ },
34
+ "unitTestRunner": {
35
+ "description": "Test runner to use for unit tests.",
36
+ "type": "string",
37
+ "enum": ["jest", "none"],
38
+ "default": "jest"
39
+ },
40
+ "language": {
41
+ "description": "Nest resolver language.",
42
+ "type": "string",
43
+ "enum": ["js", "ts"]
44
+ }
12
45
  },
13
- {
14
- "description": "Generate the resolver without providing the file extension. It results in the resolver `FooResolver` at `myapp/src/app/foo.resolver.ts`",
15
- "command": "nx g @nx/nest:resolver myapp/src/app/foo"
16
- }
17
- ],
18
- "properties": {
19
- "path": {
20
- "description": "The file path to the resolver. Relative to the current working directory.",
21
- "type": "string",
22
- "$default": {
23
- "$source": "argv",
24
- "index": 0
25
- },
26
- "x-prompt": "What is the resolver file path?"
27
- },
28
- "skipFormat": {
29
- "description": "Skip formatting files.",
30
- "type": "boolean",
31
- "default": false,
32
- "x-priority": "internal"
33
- },
34
- "unitTestRunner": {
35
- "description": "Test runner to use for unit tests.",
36
- "type": "string",
37
- "enum": ["jest", "none"],
38
- "default": "jest"
39
- },
40
- "language": {
41
- "description": "Nest resolver language.",
42
- "type": "string",
43
- "enum": ["js", "ts"]
44
- }
45
- },
46
- "additionalProperties": false,
47
- "required": ["path"]
46
+ "additionalProperties": false,
47
+ "required": ["path"]
48
48
  }
@@ -1,88 +1,88 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxNestResourceGenerator",
4
- "title": "Nest Resource Options Schema",
5
- "description": "Nest Resource Options Schema.",
6
- "cli": "nx",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "description": "Generate `myapp/src/app/entities/foo.entity.ts`, `myapp/src/app/dto/create-foo.dto.ts`, `myapp/src/app/dto/update-foo.dto.ts`, `myapp/src/app/foo.service.ts`, `myapp/src/app/foo.controller.ts`, and `myapp/src/app/foo.module.ts`",
11
- "command": "nx g @nx/nest:resource myapp/src/app/foo"
12
- }
13
- ],
14
- "properties": {
15
- "path": {
16
- "type": "string",
17
- "description": "The file path to the resource. Relative to the current working directory.",
18
- "$default": {
19
- "$source": "argv",
20
- "index": 0
21
- },
22
- "x-prompt": "What is the resource file path?"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxNestResourceGenerator",
4
+ "title": "Nest Resource Options Schema",
5
+ "description": "Nest Resource Options Schema.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "description": "Generate `myapp/src/app/entities/foo.entity.ts`, `myapp/src/app/dto/create-foo.dto.ts`, `myapp/src/app/dto/update-foo.dto.ts`, `myapp/src/app/foo.service.ts`, `myapp/src/app/foo.controller.ts`, and `myapp/src/app/foo.module.ts`",
11
+ "command": "nx g @nx/nest:resource myapp/src/app/foo"
12
+ }
13
+ ],
14
+ "properties": {
15
+ "path": {
16
+ "type": "string",
17
+ "description": "The file path to the resource. Relative to the current working directory.",
18
+ "$default": {
19
+ "$source": "argv",
20
+ "index": 0
21
+ },
22
+ "x-prompt": "What is the resource file path?"
23
+ },
24
+ "skipFormat": {
25
+ "description": "Skip formatting files.",
26
+ "type": "boolean",
27
+ "default": false,
28
+ "x-priority": "internal"
29
+ },
30
+ "unitTestRunner": {
31
+ "description": "Test runner to use for unit tests.",
32
+ "type": "string",
33
+ "enum": ["jest", "none"],
34
+ "default": "jest"
35
+ },
36
+ "type": {
37
+ "type": "string",
38
+ "description": "The transport layer.",
39
+ "default": "rest",
40
+ "enum": [
41
+ "rest",
42
+ "graphql-code-first",
43
+ "graphql-schema-first",
44
+ "microservice",
45
+ "ws"
46
+ ],
47
+ "x-prompt": {
48
+ "message": "What transport layer do you use?",
49
+ "type": "list",
50
+ "items": [
51
+ { "value": "rest", "label": "REST API" },
52
+ {
53
+ "value": "graphql-code-first",
54
+ "label": "GraphQL (code first)"
55
+ },
56
+ {
57
+ "value": "graphql-schema-first",
58
+ "label": "GraphQL (schema first)"
59
+ },
60
+ {
61
+ "value": "microservice",
62
+ "label": "Microservice (non-HTTP)"
63
+ },
64
+ {
65
+ "value": "ws",
66
+ "label": "WebSockets"
67
+ }
68
+ ]
69
+ }
70
+ },
71
+ "skipImport": {
72
+ "type": "boolean",
73
+ "description": "Flag to skip the module import.",
74
+ "default": false
75
+ },
76
+ "crud": {
77
+ "type": "boolean",
78
+ "description": "When true, CRUD entry points are generated.",
79
+ "default": true,
80
+ "x-prompt": {
81
+ "message": "Would you like to generate CRUD entry points?",
82
+ "type": "confirmation"
83
+ }
84
+ }
23
85
  },
24
- "skipFormat": {
25
- "description": "Skip formatting files.",
26
- "type": "boolean",
27
- "default": false,
28
- "x-priority": "internal"
29
- },
30
- "unitTestRunner": {
31
- "description": "Test runner to use for unit tests.",
32
- "type": "string",
33
- "enum": ["jest", "none"],
34
- "default": "jest"
35
- },
36
- "type": {
37
- "type": "string",
38
- "description": "The transport layer.",
39
- "default": "rest",
40
- "enum": [
41
- "rest",
42
- "graphql-code-first",
43
- "graphql-schema-first",
44
- "microservice",
45
- "ws"
46
- ],
47
- "x-prompt": {
48
- "message": "What transport layer do you use?",
49
- "type": "list",
50
- "items": [
51
- { "value": "rest", "label": "REST API" },
52
- {
53
- "value": "graphql-code-first",
54
- "label": "GraphQL (code first)"
55
- },
56
- {
57
- "value": "graphql-schema-first",
58
- "label": "GraphQL (schema first)"
59
- },
60
- {
61
- "value": "microservice",
62
- "label": "Microservice (non-HTTP)"
63
- },
64
- {
65
- "value": "ws",
66
- "label": "WebSockets"
67
- }
68
- ]
69
- }
70
- },
71
- "skipImport": {
72
- "type": "boolean",
73
- "description": "Flag to skip the module import.",
74
- "default": false
75
- },
76
- "crud": {
77
- "type": "boolean",
78
- "description": "When true, CRUD entry points are generated.",
79
- "default": true,
80
- "x-prompt": {
81
- "message": "Would you like to generate CRUD entry points?",
82
- "type": "confirmation"
83
- }
84
- }
85
- },
86
- "additionalProperties": false,
87
- "required": ["path"]
86
+ "additionalProperties": false,
87
+ "required": ["path"]
88
88
  }
@@ -1,48 +1,48 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxNestServiceGenerator",
4
- "title": "Nest Service Options Schema",
5
- "description": "Nest Service Options Schema.",
6
- "cli": "nx",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "description": "Generate the service `FooService` at `myapp/src/app/foo.service.ts`",
11
- "command": "nx g @nx/nest:service myapp/src/app/foo.service.ts"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxNestServiceGenerator",
4
+ "title": "Nest Service Options Schema",
5
+ "description": "Nest Service Options Schema.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "description": "Generate the service `FooService` at `myapp/src/app/foo.service.ts`",
11
+ "command": "nx g @nx/nest:service myapp/src/app/foo.service.ts"
12
+ },
13
+ {
14
+ "description": "Generate the service without providing the file extension. It results in the service `FooService` at `myapp/src/app/foo.service.ts`",
15
+ "command": "nx g @nx/nest:service myapp/src/app/foo"
16
+ }
17
+ ],
18
+ "properties": {
19
+ "path": {
20
+ "description": "The file path to the service. Relative to the current working directory.",
21
+ "type": "string",
22
+ "$default": {
23
+ "$source": "argv",
24
+ "index": 0
25
+ },
26
+ "x-prompt": "What is the service file path?"
27
+ },
28
+ "skipFormat": {
29
+ "description": "Skip formatting files.",
30
+ "type": "boolean",
31
+ "default": false,
32
+ "x-priority": "internal"
33
+ },
34
+ "unitTestRunner": {
35
+ "description": "Test runner to use for unit tests.",
36
+ "type": "string",
37
+ "enum": ["jest", "none"],
38
+ "default": "jest"
39
+ },
40
+ "language": {
41
+ "description": "Nest service language.",
42
+ "type": "string",
43
+ "enum": ["js", "ts"]
44
+ }
12
45
  },
13
- {
14
- "description": "Generate the service without providing the file extension. It results in the service `FooService` at `myapp/src/app/foo.service.ts`",
15
- "command": "nx g @nx/nest:service myapp/src/app/foo"
16
- }
17
- ],
18
- "properties": {
19
- "path": {
20
- "description": "The file path to the service. Relative to the current working directory.",
21
- "type": "string",
22
- "$default": {
23
- "$source": "argv",
24
- "index": 0
25
- },
26
- "x-prompt": "What is the service file path?"
27
- },
28
- "skipFormat": {
29
- "description": "Skip formatting files.",
30
- "type": "boolean",
31
- "default": false,
32
- "x-priority": "internal"
33
- },
34
- "unitTestRunner": {
35
- "description": "Test runner to use for unit tests.",
36
- "type": "string",
37
- "enum": ["jest", "none"],
38
- "default": "jest"
39
- },
40
- "language": {
41
- "description": "Nest service language.",
42
- "type": "string",
43
- "enum": ["js", "ts"]
44
- }
45
- },
46
- "additionalProperties": false,
47
- "required": ["path"]
46
+ "additionalProperties": false,
47
+ "required": ["path"]
48
48
  }