@nx/node
Version:
70 lines (69 loc) • 2.07 kB
JSON
{
"$schema": "https://json-schema.org/schema",
"cli": "nx",
"$id": "SchematicsNxNodeE2eProject",
"title": "Node E2E Project Generator",
"description": "Generate an E2E project for a Node server application.",
"type": "object",
"properties": {
"project": {
"type": "string",
"description": "The name of the project.",
"$default": { "$source": "argv", "index": 0 },
"x-dropdown": "project",
"x-prompt": "What project is this for?"
},
"directory": {
"description": "The directory of the e2e project.",
"type": "string",
"x-priority": "important"
},
"name": {
"description": "The name of the e2e project. Defaults to the project name with '-e2e' suffix.",
"type": "string"
},
"projectType": {
"description": "The type of application that is being tested.",
"type": "string",
"enum": ["server", "cli"],
"default": "server"
},
"port": {
"description": "The port that the server runs on. Only application for server application.",
"type": "number",
"default": 3000
},
"linter": {
"description": "Linter to be used for the E2E project",
"type": "string",
"enum": ["eslint", "none"],
"default": "eslint"
},
"isNest": {
"description": "Is the E2E server project nest",
"type": "boolean",
"default": false,
"hidden": true,
"x-priority": "internal"
},
"rootProject": {
"description": "Create node application at the root of the workspace.",
"type": "boolean",
"default": false,
"hidden": true,
"x-priority": "internal"
},
"skipFormat": {
"description": "Skip formatting files.",
"type": "boolean",
"default": false,
"hidden": true,
"x-priority": "internal"
},
"useProjectJson": {
"type": "boolean",
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
}
},
"required": ["project"]
}