@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,139 +1,139 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxNestLibraryGenerator",
4
- "title": "Create a NestJS Library for Nx",
5
- "description": "Create a NestJS Library for Nx.",
6
- "cli": "nx",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "command": "nx g lib mylib --directory=myapp",
11
- "description": "Generate libs/myapp/mylib"
12
- }
13
- ],
14
- "properties": {
15
- "directory": {
16
- "description": "A directory where the library is placed.",
17
- "type": "string",
18
- "alias": "dir",
19
- "$default": {
20
- "$source": "argv",
21
- "index": 0
22
- },
23
- "x-prompt": "Which directory do you want to create the library in?"
24
- },
25
- "name": {
26
- "description": "Library name.",
27
- "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
28
- "type": "string"
29
- },
30
- "linter": {
31
- "description": "The tool to use for running lint checks.",
32
- "type": "string",
33
- "enum": ["eslint", "none"],
34
- "default": "none",
35
- "x-prompt": "Which linter would you like to use?",
36
- "x-priority": "important"
37
- },
38
- "unitTestRunner": {
39
- "description": "Test runner to use for unit tests.",
40
- "type": "string",
41
- "enum": ["jest", "none"],
42
- "default": "none",
43
- "x-prompt": "Which unit test runner would you like to use?",
44
- "x-priority": "important"
45
- },
46
- "tags": {
47
- "description": "Add tags to the library (used for linting).",
48
- "type": "string",
49
- "alias": "t"
50
- },
51
- "skipFormat": {
52
- "description": "Skip formatting files.",
53
- "type": "boolean",
54
- "default": false,
55
- "x-priority": "internal"
56
- },
57
- "skipTsConfig": {
58
- "description": "Do not update tsconfig.base.json for development experience.",
59
- "type": "boolean",
60
- "default": false,
61
- "x-priority": "internal"
62
- },
63
- "publishable": {
64
- "description": "Create a publishable library.",
65
- "type": "boolean",
66
- "x-priority": "important"
67
- },
68
- "buildable": {
69
- "description": "Generate a buildable library.",
70
- "type": "boolean",
71
- "default": false,
72
- "x-priority": "important"
73
- },
74
- "importPath": {
75
- "description": "The library name used to import it, like @myorg/my-awesome-lib. Must be a valid npm name.",
76
- "type": "string"
77
- },
78
- "global": {
79
- "description": "Add the Global decorator to the generated module.",
80
- "type": "boolean",
81
- "default": false
82
- },
83
- "service": {
84
- "description": "Include a service with the library.",
85
- "type": "boolean",
86
- "default": false
87
- },
88
- "controller": {
89
- "description": "Include a controller with the library.",
90
- "type": "boolean",
91
- "default": false
92
- },
93
- "testEnvironment": {
94
- "description": "The test environment for jest, for node applications this should stay as node unless doing DOM testing.",
95
- "type": "string",
96
- "enum": ["jsdom", "node"],
97
- "default": "node"
98
- },
99
- "target": {
100
- "description": "The ES target, Nest suggest using es2021 or higher.",
101
- "type": "string",
102
- "default": "es2021",
103
- "enum": [
104
- "es5",
105
- "es6",
106
- "esnext",
107
- "es2015",
108
- "es2016",
109
- "es2017",
110
- "es2018",
111
- "es2019",
112
- "es2020",
113
- "es2021"
114
- ]
115
- },
116
- "strict": {
117
- "description": "Whether to enable tsconfig strict mode or not.",
118
- "type": "boolean",
119
- "default": true
120
- },
121
- "setParserOptionsProject": {
122
- "type": "boolean",
123
- "description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.",
124
- "default": false
125
- },
126
- "skipPackageJson": {
127
- "description": "Do not add dependencies to `package.json`.",
128
- "type": "boolean",
129
- "default": false,
130
- "x-priority": "internal"
131
- },
132
- "useProjectJson": {
133
- "type": "boolean",
134
- "description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
135
- }
136
- },
137
- "additionalProperties": false,
138
- "required": ["directory"]
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxNestLibraryGenerator",
4
+ "title": "Create a NestJS Library for Nx",
5
+ "description": "Create a NestJS Library for Nx.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "command": "nx g lib mylib --directory=myapp",
11
+ "description": "Generate libs/myapp/mylib"
12
+ }
13
+ ],
14
+ "properties": {
15
+ "directory": {
16
+ "description": "A directory where the library is placed.",
17
+ "type": "string",
18
+ "alias": "dir",
19
+ "$default": {
20
+ "$source": "argv",
21
+ "index": 0
22
+ },
23
+ "x-prompt": "Which directory do you want to create the library in?"
24
+ },
25
+ "name": {
26
+ "description": "Library name.",
27
+ "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
28
+ "type": "string"
29
+ },
30
+ "linter": {
31
+ "description": "The tool to use for running lint checks.",
32
+ "type": "string",
33
+ "enum": ["eslint", "none"],
34
+ "default": "none",
35
+ "x-prompt": "Which linter would you like to use?",
36
+ "x-priority": "important"
37
+ },
38
+ "unitTestRunner": {
39
+ "description": "Test runner to use for unit tests.",
40
+ "type": "string",
41
+ "enum": ["jest", "none"],
42
+ "default": "none",
43
+ "x-prompt": "Which unit test runner would you like to use?",
44
+ "x-priority": "important"
45
+ },
46
+ "tags": {
47
+ "description": "Add tags to the library (used for linting).",
48
+ "type": "string",
49
+ "alias": "t"
50
+ },
51
+ "skipFormat": {
52
+ "description": "Skip formatting files.",
53
+ "type": "boolean",
54
+ "default": false,
55
+ "x-priority": "internal"
56
+ },
57
+ "skipTsConfig": {
58
+ "description": "Do not update tsconfig.base.json for development experience.",
59
+ "type": "boolean",
60
+ "default": false,
61
+ "x-priority": "internal"
62
+ },
63
+ "publishable": {
64
+ "description": "Create a publishable library.",
65
+ "type": "boolean",
66
+ "x-priority": "important"
67
+ },
68
+ "buildable": {
69
+ "description": "Generate a buildable library.",
70
+ "type": "boolean",
71
+ "default": false,
72
+ "x-priority": "important"
73
+ },
74
+ "importPath": {
75
+ "description": "The library name used to import it, like @myorg/my-awesome-lib. Must be a valid npm name.",
76
+ "type": "string"
77
+ },
78
+ "global": {
79
+ "description": "Add the Global decorator to the generated module.",
80
+ "type": "boolean",
81
+ "default": false
82
+ },
83
+ "service": {
84
+ "description": "Include a service with the library.",
85
+ "type": "boolean",
86
+ "default": false
87
+ },
88
+ "controller": {
89
+ "description": "Include a controller with the library.",
90
+ "type": "boolean",
91
+ "default": false
92
+ },
93
+ "testEnvironment": {
94
+ "description": "The test environment for jest, for node applications this should stay as node unless doing DOM testing.",
95
+ "type": "string",
96
+ "enum": ["jsdom", "node"],
97
+ "default": "node"
98
+ },
99
+ "target": {
100
+ "description": "The ES target, Nest suggest using es2021 or higher.",
101
+ "type": "string",
102
+ "default": "es2021",
103
+ "enum": [
104
+ "es5",
105
+ "es6",
106
+ "esnext",
107
+ "es2015",
108
+ "es2016",
109
+ "es2017",
110
+ "es2018",
111
+ "es2019",
112
+ "es2020",
113
+ "es2021"
114
+ ]
115
+ },
116
+ "strict": {
117
+ "description": "Whether to enable tsconfig strict mode or not.",
118
+ "type": "boolean",
119
+ "default": true
120
+ },
121
+ "setParserOptionsProject": {
122
+ "type": "boolean",
123
+ "description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.",
124
+ "default": false
125
+ },
126
+ "skipPackageJson": {
127
+ "description": "Do not add dependencies to `package.json`.",
128
+ "type": "boolean",
129
+ "default": false,
130
+ "x-priority": "internal"
131
+ },
132
+ "useProjectJson": {
133
+ "type": "boolean",
134
+ "description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
135
+ }
136
+ },
137
+ "additionalProperties": false,
138
+ "required": ["directory"]
139
139
  }
@@ -1,48 +1,48 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxNestMiddlewareGenerator",
4
- "title": "Nest Middleware Options Schema",
5
- "description": "Nest Middleware Options Schema.",
6
- "cli": "nx",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "description": "Generate the middleware `FooMiddleware` at `myapp/src/app/foo.middleware.ts`",
11
- "command": "nx g @nx/nest:middleware myapp/src/app/foo.middleware.ts"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxNestMiddlewareGenerator",
4
+ "title": "Nest Middleware Options Schema",
5
+ "description": "Nest Middleware Options Schema.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "description": "Generate the middleware `FooMiddleware` at `myapp/src/app/foo.middleware.ts`",
11
+ "command": "nx g @nx/nest:middleware myapp/src/app/foo.middleware.ts"
12
+ },
13
+ {
14
+ "description": "Generate the middleware without providing the file extension. It results in the middleware `FooMiddleware` at `myapp/src/app/foo.middleware.ts`",
15
+ "command": "nx g @nx/nest:middleware myapp/src/app/foo"
16
+ }
17
+ ],
18
+ "properties": {
19
+ "path": {
20
+ "description": "The file path to the middleware. Relative to the current working directory.",
21
+ "type": "string",
22
+ "$default": {
23
+ "$source": "argv",
24
+ "index": 0
25
+ },
26
+ "x-prompt": "What is the middleware 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 middleware language.",
42
+ "type": "string",
43
+ "enum": ["js", "ts"]
44
+ }
12
45
  },
13
- {
14
- "description": "Generate the middleware without providing the file extension. It results in the middleware `FooMiddleware` at `myapp/src/app/foo.middleware.ts`",
15
- "command": "nx g @nx/nest:middleware myapp/src/app/foo"
16
- }
17
- ],
18
- "properties": {
19
- "path": {
20
- "description": "The file path to the middleware. Relative to the current working directory.",
21
- "type": "string",
22
- "$default": {
23
- "$source": "argv",
24
- "index": 0
25
- },
26
- "x-prompt": "What is the middleware 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 middleware 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,52 +1,52 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxNestModuleGenerator",
4
- "title": "Nest Module Options Schema",
5
- "description": "Nest Module Options Schema.",
6
- "cli": "nx",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "description": "Generate the module `FooModule` at `myapp/src/app/foo.module.ts`",
11
- "command": "nx g @nx/nest:module myapp/src/app/foo.module.ts"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxNestModuleGenerator",
4
+ "title": "Nest Module Options Schema",
5
+ "description": "Nest Module Options Schema.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "description": "Generate the module `FooModule` at `myapp/src/app/foo.module.ts`",
11
+ "command": "nx g @nx/nest:module myapp/src/app/foo.module.ts"
12
+ },
13
+ {
14
+ "description": "Generate the module without providing the file extension. It results in the module `FooModule` at `myapp/src/app/foo.module.ts`",
15
+ "command": "nx g @nx/nest:module myapp/src/app/foo"
16
+ }
17
+ ],
18
+ "properties": {
19
+ "path": {
20
+ "description": "The file path to the module. Relative to the current working directory.",
21
+ "type": "string",
22
+ "$default": {
23
+ "$source": "argv",
24
+ "index": 0
25
+ },
26
+ "x-prompt": "What is the module file path?"
27
+ },
28
+ "skipFormat": {
29
+ "description": "Skip formatting files.",
30
+ "type": "boolean",
31
+ "default": false,
32
+ "x-priority": "internal"
33
+ },
34
+ "language": {
35
+ "description": "Nest module language.",
36
+ "type": "string",
37
+ "enum": ["js", "ts"]
38
+ },
39
+ "module": {
40
+ "description": "The path to import the module.",
41
+ "type": "string",
42
+ "format": "path"
43
+ },
44
+ "skipImport": {
45
+ "description": "Flag to skip the module import.",
46
+ "type": "boolean",
47
+ "default": false
48
+ }
12
49
  },
13
- {
14
- "description": "Generate the module without providing the file extension. It results in the module `FooModule` at `myapp/src/app/foo.module.ts`",
15
- "command": "nx g @nx/nest:module myapp/src/app/foo"
16
- }
17
- ],
18
- "properties": {
19
- "path": {
20
- "description": "The file path to the module. Relative to the current working directory.",
21
- "type": "string",
22
- "$default": {
23
- "$source": "argv",
24
- "index": 0
25
- },
26
- "x-prompt": "What is the module file path?"
27
- },
28
- "skipFormat": {
29
- "description": "Skip formatting files.",
30
- "type": "boolean",
31
- "default": false,
32
- "x-priority": "internal"
33
- },
34
- "language": {
35
- "description": "Nest module language.",
36
- "type": "string",
37
- "enum": ["js", "ts"]
38
- },
39
- "module": {
40
- "description": "The path to import the module.",
41
- "type": "string",
42
- "format": "path"
43
- },
44
- "skipImport": {
45
- "description": "Flag to skip the module import.",
46
- "type": "boolean",
47
- "default": false
48
- }
49
- },
50
- "additionalProperties": false,
51
- "required": ["path"]
50
+ "additionalProperties": false,
51
+ "required": ["path"]
52
52
  }
@@ -1,48 +1,48 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxNestPipeGenerator",
4
- "title": "Nest Pipe Options Schema",
5
- "description": "Nest Pipe Options Schema.",
6
- "cli": "nx",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "description": "Generate the pipe `FooPipe` at `myapp/src/app/foo.pipe.ts`",
11
- "command": "nx g @nx/nest:pipe myapp/src/app/foo.pipe.ts"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxNestPipeGenerator",
4
+ "title": "Nest Pipe Options Schema",
5
+ "description": "Nest Pipe Options Schema.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "description": "Generate the pipe `FooPipe` at `myapp/src/app/foo.pipe.ts`",
11
+ "command": "nx g @nx/nest:pipe myapp/src/app/foo.pipe.ts"
12
+ },
13
+ {
14
+ "description": "Generate the pipe without providing the file extension. It results in the pipe `FooPipe` at `myapp/src/app/foo.pipe.ts`",
15
+ "command": "nx g @nx/nest:pipe myapp/src/app/foo"
16
+ }
17
+ ],
18
+ "properties": {
19
+ "path": {
20
+ "description": "The file path to the pipe. Relative to the current working directory.",
21
+ "type": "string",
22
+ "$default": {
23
+ "$source": "argv",
24
+ "index": 0
25
+ },
26
+ "x-prompt": "What is the pipe 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 pipe language.",
42
+ "type": "string",
43
+ "enum": ["js", "ts"]
44
+ }
12
45
  },
13
- {
14
- "description": "Generate the pipe without providing the file extension. It results in the pipe `FooPipe` at `myapp/src/app/foo.pipe.ts`",
15
- "command": "nx g @nx/nest:pipe myapp/src/app/foo"
16
- }
17
- ],
18
- "properties": {
19
- "path": {
20
- "description": "The file path to the pipe. Relative to the current working directory.",
21
- "type": "string",
22
- "$default": {
23
- "$source": "argv",
24
- "index": 0
25
- },
26
- "x-prompt": "What is the pipe 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 pipe language.",
42
- "type": "string",
43
- "enum": ["js", "ts"]
44
- }
45
- },
46
- "additionalProperties": false,
47
- "required": ["path"]
46
+ "additionalProperties": false,
47
+ "required": ["path"]
48
48
  }