49 lines
1.6 KiB
JSON
49 lines
1.6 KiB
JSON
{
|
|
"name": "create-rule",
|
|
"factory": "./src/generators/create-rule/create-rule",
|
|
"schema": {
|
|
"$schema": "http://json-schema.org/schema",
|
|
"id": "NxPowerpackConformanceCreateRule",
|
|
"title": "Create a new conformance rule",
|
|
"type": "object",
|
|
"cli": "nx",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"description": "The name of the rule.",
|
|
"$default": { "$source": "argv", "index": 0 },
|
|
"x-prompt": "What is the name of the rule?",
|
|
"x-priority": "important"
|
|
},
|
|
"directory": {
|
|
"type": "string",
|
|
"description": "A directory where the rule directory is created.",
|
|
"x-prompt": "Which directory do you want to create the rule directory in?",
|
|
"x-priority": "important"
|
|
},
|
|
"category": {
|
|
"type": "string",
|
|
"enum": ["consistency", "maintainability", "reliability", "security"],
|
|
"description": "The category of the rule.",
|
|
"x-prompt": "What category does this rule belong to?",
|
|
"x-priority": "important"
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "The description of the rule.",
|
|
"x-prompt": "What is the description of the rule?",
|
|
"x-priority": "important"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["name", "directory", "category"],
|
|
"presets": []
|
|
},
|
|
"description": "Create a new conformance rule",
|
|
"implementation": "/libs/nx-packages/conformance/src/generators/create-rule/create-rule.ts",
|
|
"aliases": [],
|
|
"hidden": false,
|
|
"path": "/libs/nx-packages/conformance/src/generators/create-rule/schema.json",
|
|
"type": "generator"
|
|
}
|