@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.
package/generators.json CHANGED
@@ -1,103 +1,103 @@
1
1
  {
2
- "name": "nx/nest",
3
- "version": "0.1",
4
- "extends": ["@nx/workspace"],
5
- "generators": {
6
- "application": {
7
- "factory": "./src/generators/application/application#applicationGeneratorInternal",
8
- "schema": "./src/generators/application/schema.json",
9
- "aliases": ["app"],
10
- "x-type": "application",
11
- "description": "Create a NestJS application."
12
- },
13
- "init": {
14
- "factory": "./src/generators/init/init",
15
- "schema": "./src/generators/init/schema.json",
16
- "description": "Initialize the `@nx/nest` plugin.",
17
- "aliases": ["ng-add"],
18
- "hidden": true
19
- },
20
- "library": {
21
- "factory": "./src/generators/library/library#libraryGeneratorInternal",
22
- "schema": "./src/generators/library/schema.json",
23
- "aliases": ["lib"],
24
- "x-type": "library",
25
- "description": "Create a new NestJS library."
26
- },
27
- "class": {
28
- "factory": "./src/generators/class/class",
29
- "schema": "./src/generators/class/schema.json",
30
- "description": "Run the `class` NestJS generator with Nx project support."
31
- },
32
- "controller": {
33
- "factory": "./src/generators/controller/controller",
34
- "schema": "./src/generators/controller/schema.json",
35
- "description": "Run the `controller` NestJS generator with Nx project support."
36
- },
37
- "decorator": {
38
- "factory": "./src/generators/decorator/decorator",
39
- "schema": "./src/generators/decorator/schema.json",
40
- "description": "Run the `decorator` NestJS generator with Nx project support."
41
- },
42
- "filter": {
43
- "factory": "./src/generators/filter/filter",
44
- "schema": "./src/generators/filter/schema.json",
45
- "description": "Run the `filter` NestJS generator with Nx project support."
46
- },
47
- "gateway": {
48
- "factory": "./src/generators/gateway/gateway",
49
- "schema": "./src/generators/gateway/schema.json",
50
- "description": "Run the `gateway` NestJS generator with Nx project support."
51
- },
52
- "guard": {
53
- "factory": "./src/generators/guard/guard",
54
- "schema": "./src/generators/guard/schema.json",
55
- "description": "Run the `guard` NestJS generator with Nx project support."
56
- },
57
- "interceptor": {
58
- "factory": "./src/generators/interceptor/interceptor",
59
- "schema": "./src/generators/interceptor/schema.json",
60
- "description": "Run the `interceptor` NestJS generator with Nx project support."
61
- },
62
- "interface": {
63
- "factory": "./src/generators/interface/interface",
64
- "schema": "./src/generators/interface/schema.json",
65
- "description": "Run the `interface` NestJS generator with Nx project support."
66
- },
67
- "middleware": {
68
- "factory": "./src/generators/middleware/middleware",
69
- "schema": "./src/generators/middleware/schema.json",
70
- "description": "Run the `middleware` NestJS generator with Nx project support."
71
- },
72
- "module": {
73
- "factory": "./src/generators/module/module",
74
- "schema": "./src/generators/module/schema.json",
75
- "description": "Run the `module` NestJS generator with Nx project support."
76
- },
77
- "pipe": {
78
- "factory": "./src/generators/pipe/pipe",
79
- "schema": "./src/generators/pipe/schema.json",
80
- "description": "Run the `pipe` NestJS generator with Nx project support."
81
- },
82
- "provider": {
83
- "factory": "./src/generators/provider/provider",
84
- "schema": "./src/generators/provider/schema.json",
85
- "description": "Run the `provider` NestJS generator with Nx project support."
86
- },
87
- "resolver": {
88
- "factory": "./src/generators/resolver/resolver",
89
- "schema": "./src/generators/resolver/schema.json",
90
- "description": "Run the `resolver` NestJS generator with Nx project support."
91
- },
92
- "resource": {
93
- "factory": "./src/generators/resource/resource",
94
- "schema": "./src/generators/resource/schema.json",
95
- "description": "Run the `resource` NestJS generator with Nx project support."
96
- },
97
- "service": {
98
- "factory": "./src/generators/service/service",
99
- "schema": "./src/generators/service/schema.json",
100
- "description": "Run the `service` NestJS generator with Nx project support."
2
+ "name": "nx/nest",
3
+ "version": "0.1",
4
+ "extends": ["@nx/workspace"],
5
+ "generators": {
6
+ "application": {
7
+ "factory": "./src/generators/application/application#applicationGeneratorInternal",
8
+ "schema": "./src/generators/application/schema.json",
9
+ "aliases": ["app"],
10
+ "x-type": "application",
11
+ "description": "Create a NestJS application."
12
+ },
13
+ "init": {
14
+ "factory": "./src/generators/init/init",
15
+ "schema": "./src/generators/init/schema.json",
16
+ "description": "Initialize the `@nx/nest` plugin.",
17
+ "aliases": ["ng-add"],
18
+ "hidden": true
19
+ },
20
+ "library": {
21
+ "factory": "./src/generators/library/library#libraryGeneratorInternal",
22
+ "schema": "./src/generators/library/schema.json",
23
+ "aliases": ["lib"],
24
+ "x-type": "library",
25
+ "description": "Create a new NestJS library."
26
+ },
27
+ "class": {
28
+ "factory": "./src/generators/class/class",
29
+ "schema": "./src/generators/class/schema.json",
30
+ "description": "Run the `class` NestJS generator with Nx project support."
31
+ },
32
+ "controller": {
33
+ "factory": "./src/generators/controller/controller",
34
+ "schema": "./src/generators/controller/schema.json",
35
+ "description": "Run the `controller` NestJS generator with Nx project support."
36
+ },
37
+ "decorator": {
38
+ "factory": "./src/generators/decorator/decorator",
39
+ "schema": "./src/generators/decorator/schema.json",
40
+ "description": "Run the `decorator` NestJS generator with Nx project support."
41
+ },
42
+ "filter": {
43
+ "factory": "./src/generators/filter/filter",
44
+ "schema": "./src/generators/filter/schema.json",
45
+ "description": "Run the `filter` NestJS generator with Nx project support."
46
+ },
47
+ "gateway": {
48
+ "factory": "./src/generators/gateway/gateway",
49
+ "schema": "./src/generators/gateway/schema.json",
50
+ "description": "Run the `gateway` NestJS generator with Nx project support."
51
+ },
52
+ "guard": {
53
+ "factory": "./src/generators/guard/guard",
54
+ "schema": "./src/generators/guard/schema.json",
55
+ "description": "Run the `guard` NestJS generator with Nx project support."
56
+ },
57
+ "interceptor": {
58
+ "factory": "./src/generators/interceptor/interceptor",
59
+ "schema": "./src/generators/interceptor/schema.json",
60
+ "description": "Run the `interceptor` NestJS generator with Nx project support."
61
+ },
62
+ "interface": {
63
+ "factory": "./src/generators/interface/interface",
64
+ "schema": "./src/generators/interface/schema.json",
65
+ "description": "Run the `interface` NestJS generator with Nx project support."
66
+ },
67
+ "middleware": {
68
+ "factory": "./src/generators/middleware/middleware",
69
+ "schema": "./src/generators/middleware/schema.json",
70
+ "description": "Run the `middleware` NestJS generator with Nx project support."
71
+ },
72
+ "module": {
73
+ "factory": "./src/generators/module/module",
74
+ "schema": "./src/generators/module/schema.json",
75
+ "description": "Run the `module` NestJS generator with Nx project support."
76
+ },
77
+ "pipe": {
78
+ "factory": "./src/generators/pipe/pipe",
79
+ "schema": "./src/generators/pipe/schema.json",
80
+ "description": "Run the `pipe` NestJS generator with Nx project support."
81
+ },
82
+ "provider": {
83
+ "factory": "./src/generators/provider/provider",
84
+ "schema": "./src/generators/provider/schema.json",
85
+ "description": "Run the `provider` NestJS generator with Nx project support."
86
+ },
87
+ "resolver": {
88
+ "factory": "./src/generators/resolver/resolver",
89
+ "schema": "./src/generators/resolver/schema.json",
90
+ "description": "Run the `resolver` NestJS generator with Nx project support."
91
+ },
92
+ "resource": {
93
+ "factory": "./src/generators/resource/resource",
94
+ "schema": "./src/generators/resource/schema.json",
95
+ "description": "Run the `resource` NestJS generator with Nx project support."
96
+ },
97
+ "service": {
98
+ "factory": "./src/generators/service/service",
99
+ "schema": "./src/generators/service/schema.json",
100
+ "description": "Run the `service` NestJS generator with Nx project support."
101
+ }
101
102
  }
102
- }
103
103
  }
package/migrations.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
- "generators": {},
3
- "packageJsonUpdates": {
4
- "21.2.0-beta.2": {
5
- "version": "21.2.0-beta.2",
6
- "packages": {
7
- "nest": {
8
- "version": "^11.0.0",
9
- "alwaysAddToPackageJson": false
10
- },
11
- "@nestjs/schematics": {
12
- "version": "^11.0.0",
13
- "alwaysAddToPackageJson": false
2
+ "generators": {},
3
+ "packageJsonUpdates": {
4
+ "21.2.0-beta.2": {
5
+ "version": "21.2.0-beta.2",
6
+ "packages": {
7
+ "nest": {
8
+ "version": "^11.0.0",
9
+ "alwaysAddToPackageJson": false
10
+ },
11
+ "@nestjs/schematics": {
12
+ "version": "^11.0.0",
13
+ "alwaysAddToPackageJson": false
14
+ }
15
+ }
14
16
  }
15
- }
16
17
  }
17
- }
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/nest",
3
- "version": "22.7.0-beta.7",
3
+ "version": "22.7.0-beta.9",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Nest contains executors and generators for allowing your workspace to create powerful Nest best in class APIs.",
6
6
  "repository": {
@@ -33,10 +33,10 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@nestjs/schematics": "^11.0.0",
36
- "@nx/devkit": "22.7.0-beta.7",
37
- "@nx/js": "22.7.0-beta.7",
38
- "@nx/eslint": "22.7.0-beta.7",
39
- "@nx/node": "22.7.0-beta.7",
36
+ "@nx/devkit": "22.7.0-beta.9",
37
+ "@nx/js": "22.7.0-beta.9",
38
+ "@nx/eslint": "22.7.0-beta.9",
39
+ "@nx/node": "22.7.0-beta.9",
40
40
  "tslib": "^2.3.0"
41
41
  },
42
42
  "publishConfig": {
@@ -1,89 +1,89 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxNestApplicationGenerator",
4
- "title": "Nx Application Options Schema",
5
- "description": "Nx Application Options Schema.",
6
- "cli": "nx",
7
- "type": "object",
8
- "properties": {
9
- "directory": {
10
- "description": "The directory of the new application.",
11
- "type": "string",
12
- "$default": {
13
- "$source": "argv",
14
- "index": 0
15
- },
16
- "x-prompt": "Which directory do you want to create the application in?"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxNestApplicationGenerator",
4
+ "title": "Nx Application Options Schema",
5
+ "description": "Nx Application Options Schema.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "properties": {
9
+ "directory": {
10
+ "description": "The directory of the new application.",
11
+ "type": "string",
12
+ "$default": {
13
+ "$source": "argv",
14
+ "index": 0
15
+ },
16
+ "x-prompt": "Which directory do you want to create the application in?"
17
+ },
18
+ "name": {
19
+ "description": "The name of the application.",
20
+ "type": "string",
21
+ "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
22
+ "x-priority": "important"
23
+ },
24
+ "skipFormat": {
25
+ "description": "Skip formatting files.",
26
+ "type": "boolean",
27
+ "default": false,
28
+ "x-priority": "internal"
29
+ },
30
+ "skipPackageJson": {
31
+ "description": "Do not add dependencies to `package.json`.",
32
+ "type": "boolean",
33
+ "default": false,
34
+ "x-priority": "internal"
35
+ },
36
+ "linter": {
37
+ "description": "The tool to use for running lint checks.",
38
+ "type": "string",
39
+ "enum": ["eslint", "none"],
40
+ "default": "none",
41
+ "x-prompt": "Which linter would you like to use?",
42
+ "x-priority": "important"
43
+ },
44
+ "unitTestRunner": {
45
+ "description": "Test runner to use for unit tests.",
46
+ "type": "string",
47
+ "enum": ["jest", "none"],
48
+ "default": "none",
49
+ "x-prompt": "Which unit test runner would you like to use?"
50
+ },
51
+ "e2eTestRunner": {
52
+ "type": "string",
53
+ "enum": ["jest", "none"],
54
+ "description": "Test runner to use for end to end (e2e) tests",
55
+ "default": "jest"
56
+ },
57
+ "tags": {
58
+ "description": "Add tags to the application (used for linting).",
59
+ "type": "string"
60
+ },
61
+ "frontendProject": {
62
+ "description": "Frontend project that needs to access this application. This sets up proxy configuration.",
63
+ "type": "string",
64
+ "x-priority": "important"
65
+ },
66
+ "standaloneConfig": {
67
+ "description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
68
+ "type": "boolean",
69
+ "default": true,
70
+ "x-deprecated": "Nx only supports standaloneConfig"
71
+ },
72
+ "setParserOptionsProject": {
73
+ "type": "boolean",
74
+ "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
75
+ "default": false
76
+ },
77
+ "strict": {
78
+ "type": "boolean",
79
+ "description": "Adds strictNullChecks, noImplicitAny, strictBindCallApply, forceConsistentCasingInFileNames and noFallthroughCasesInSwitch to tsconfig.",
80
+ "default": false
81
+ },
82
+ "useProjectJson": {
83
+ "type": "boolean",
84
+ "description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
85
+ }
17
86
  },
18
- "name": {
19
- "description": "The name of the application.",
20
- "type": "string",
21
- "pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
22
- "x-priority": "important"
23
- },
24
- "skipFormat": {
25
- "description": "Skip formatting files.",
26
- "type": "boolean",
27
- "default": false,
28
- "x-priority": "internal"
29
- },
30
- "skipPackageJson": {
31
- "description": "Do not add dependencies to `package.json`.",
32
- "type": "boolean",
33
- "default": false,
34
- "x-priority": "internal"
35
- },
36
- "linter": {
37
- "description": "The tool to use for running lint checks.",
38
- "type": "string",
39
- "enum": ["eslint", "none"],
40
- "default": "none",
41
- "x-prompt": "Which linter would you like to use?",
42
- "x-priority": "important"
43
- },
44
- "unitTestRunner": {
45
- "description": "Test runner to use for unit tests.",
46
- "type": "string",
47
- "enum": ["jest", "none"],
48
- "default": "none",
49
- "x-prompt": "Which unit test runner would you like to use?"
50
- },
51
- "e2eTestRunner": {
52
- "type": "string",
53
- "enum": ["jest", "none"],
54
- "description": "Test runner to use for end to end (e2e) tests",
55
- "default": "jest"
56
- },
57
- "tags": {
58
- "description": "Add tags to the application (used for linting).",
59
- "type": "string"
60
- },
61
- "frontendProject": {
62
- "description": "Frontend project that needs to access this application. This sets up proxy configuration.",
63
- "type": "string",
64
- "x-priority": "important"
65
- },
66
- "standaloneConfig": {
67
- "description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
68
- "type": "boolean",
69
- "default": true,
70
- "x-deprecated": "Nx only supports standaloneConfig"
71
- },
72
- "setParserOptionsProject": {
73
- "type": "boolean",
74
- "description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
75
- "default": false
76
- },
77
- "strict": {
78
- "type": "boolean",
79
- "description": "Adds strictNullChecks, noImplicitAny, strictBindCallApply, forceConsistentCasingInFileNames and noFallthroughCasesInSwitch to tsconfig.",
80
- "default": false
81
- },
82
- "useProjectJson": {
83
- "type": "boolean",
84
- "description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
85
- }
86
- },
87
- "additionalProperties": false,
88
- "required": ["directory"]
87
+ "additionalProperties": false,
88
+ "required": ["directory"]
89
89
  }
@@ -1,48 +1,48 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxNestClassGenerator",
4
- "title": "Nest Class Options Schema",
5
- "description": "Nest Class Options Schema.",
6
- "cli": "nx",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "description": "Generate the class `Foo` at `myapp/src/app/foo.ts`",
11
- "command": "nx g @nx/nest:class myapp/src/app/foo.ts"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxNestClassGenerator",
4
+ "title": "Nest Class Options Schema",
5
+ "description": "Nest Class Options Schema.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "description": "Generate the class `Foo` at `myapp/src/app/foo.ts`",
11
+ "command": "nx g @nx/nest:class myapp/src/app/foo.ts"
12
+ },
13
+ {
14
+ "description": "Generate the class without providing the file extension. It results in the class `Foo` at `myapp/src/app/foo.ts`",
15
+ "command": "nx g @nx/nest:class myapp/src/app/foo"
16
+ }
17
+ ],
18
+ "properties": {
19
+ "path": {
20
+ "description": "The file path to the class. Relative to the current working directory.",
21
+ "type": "string",
22
+ "$default": {
23
+ "$source": "argv",
24
+ "index": 0
25
+ },
26
+ "x-prompt": "What is the class 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 class language.",
42
+ "type": "string",
43
+ "enum": ["js", "ts"]
44
+ }
12
45
  },
13
- {
14
- "description": "Generate the class without providing the file extension. It results in the class `Foo` at `myapp/src/app/foo.ts`",
15
- "command": "nx g @nx/nest:class myapp/src/app/foo"
16
- }
17
- ],
18
- "properties": {
19
- "path": {
20
- "description": "The file path to the class. Relative to the current working directory.",
21
- "type": "string",
22
- "$default": {
23
- "$source": "argv",
24
- "index": 0
25
- },
26
- "x-prompt": "What is the class 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 class 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,57 +1,57 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxNestControllerGenerator",
4
- "title": "Nest Controller Options Schema",
5
- "description": "Nest Controller Options Schema.",
6
- "cli": "nx",
7
- "type": "object",
8
- "examples": [
9
- {
10
- "description": "Generate the controller `FooController` at `myapp/src/app/foo.controller.ts`",
11
- "command": "nx g @nx/nest:controller myapp/src/app/foo.controller.ts"
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxNestControllerGenerator",
4
+ "title": "Nest Controller Options Schema",
5
+ "description": "Nest Controller Options Schema.",
6
+ "cli": "nx",
7
+ "type": "object",
8
+ "examples": [
9
+ {
10
+ "description": "Generate the controller `FooController` at `myapp/src/app/foo.controller.ts`",
11
+ "command": "nx g @nx/nest:controller myapp/src/app/foo.controller.ts"
12
+ },
13
+ {
14
+ "description": "Generate the controller without providing the file extension. It results in the controller `FooController` at `myapp/src/app/foo.controller.ts`",
15
+ "command": "nx g @nx/nest:controller myapp/src/app/foo"
16
+ }
17
+ ],
18
+ "properties": {
19
+ "path": {
20
+ "description": "The file path to the controller. Relative to the current working directory.",
21
+ "type": "string",
22
+ "$default": {
23
+ "$source": "argv",
24
+ "index": 0
25
+ },
26
+ "x-prompt": "What is the controller 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 controller language.",
42
+ "type": "string",
43
+ "enum": ["js", "ts"]
44
+ },
45
+ "skipImport": {
46
+ "description": "Flag to skip the module import.",
47
+ "type": "boolean",
48
+ "default": false
49
+ },
50
+ "module": {
51
+ "description": "Allows specification of the declaring module.",
52
+ "type": "string"
53
+ }
12
54
  },
13
- {
14
- "description": "Generate the controller without providing the file extension. It results in the controller `FooController` at `myapp/src/app/foo.controller.ts`",
15
- "command": "nx g @nx/nest:controller myapp/src/app/foo"
16
- }
17
- ],
18
- "properties": {
19
- "path": {
20
- "description": "The file path to the controller. Relative to the current working directory.",
21
- "type": "string",
22
- "$default": {
23
- "$source": "argv",
24
- "index": 0
25
- },
26
- "x-prompt": "What is the controller 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 controller language.",
42
- "type": "string",
43
- "enum": ["js", "ts"]
44
- },
45
- "skipImport": {
46
- "description": "Flag to skip the module import.",
47
- "type": "boolean",
48
- "default": false
49
- },
50
- "module": {
51
- "description": "Allows specification of the declaring module.",
52
- "type": "string"
53
- }
54
- },
55
- "additionalProperties": false,
56
- "required": ["path"]
55
+ "additionalProperties": false,
56
+ "required": ["path"]
57
57
  }