UNPKG

@nx/nest

Version:

The Nx Plugin for Nest contains executors and generators for allowing your workspace to create powerful Nest best in class APIs.

49 lines (48 loc) 1.43 kB
{ "$schema": "https://json-schema.org/schema", "$id": "NxNestServiceGenerator", "title": "Nest Service Options Schema", "description": "Nest Service Options Schema.", "cli": "nx", "type": "object", "examples": [ { "description": "Generate the service `FooService` at `myapp/src/app/foo.service.ts`", "command": "nx g @nx/nest:service myapp/src/app/foo.service.ts" }, { "description": "Generate the service without providing the file extension. It results in the service `FooService` at `myapp/src/app/foo.service.ts`", "command": "nx g @nx/nest:service myapp/src/app/foo" } ], "properties": { "path": { "description": "The file path to the service. Relative to the current working directory.", "type": "string", "$default": { "$source": "argv", "index": 0 }, "x-prompt": "What is the service file path?" }, "skipFormat": { "description": "Skip formatting files.", "type": "boolean", "default": false, "x-priority": "internal" }, "unitTestRunner": { "description": "Test runner to use for unit tests.", "type": "string", "enum": ["jest", "none"], "default": "jest" }, "language": { "description": "Nest service language.", "type": "string", "enum": ["js", "ts"] } }, "additionalProperties": false, "required": ["path"] }