@sassoftware/vi-solution-extension-angular-schematics
Version:
Schematics for SAS Visual Investigator solution extensions
69 lines (68 loc) • 2.52 kB
JSON
{
"$schema": "http://json-schema.org/schema",
"$id": "SchematicsWebComponent",
"title": "Web Component Options Schema",
"description": "Generates a new skeleton web component in the \"projects/components/src/lib\" subfolder of the workspace.",
"properties": {
"path": {
"type": "string",
"format": "path",
"description": "The path at which to create the web component file, relative to the current workspace. Default is a folder with the same name as the web component in the project root.",
"visible": false
},
"project": {
"type": "string",
"description": "The name of the project.",
"$default": {
"$source": "projectName"
}
},
"name": {
"description": "The name of the component to be created.",
"type": "string",
"$default": {
"$source": "argv",
"index": 0
},
"x-prompt": "What name would you like to use for the new web component?"
},
"controlType": {
"enum": ["MobileHomepageControls", "MobileObjectControls"],
"description": "Specify the type of control for SAS Mobile Investigator",
"default": "MobileHomepageControls",
"x-prompt": "Specify the type of control for SAS Mobile Investigator (default: MobileHomepageControls)"
},
"prefix": {
"type": "string",
"description": "The prefix to apply to the generated component selector.",
"alias": "p",
"default": "mobile-sol",
"oneOf": [
{
"maxLength": 0
},
{
"minLength": 1,
"format": "html-selector"
}
]
},
"module": {
"type": "string",
"description": "The declaring NgModule.",
"alias": "m",
"default": "mobile-app"
},
"selector": {
"type": "string",
"format": "html-selector",
"description": "The HTML selector to use for this web component. Defaults to the dasherized form of name."
},
"skipImport": {
"type": "boolean",
"description": "Do not import this web component into the owning NgModule.",
"default": false
}
},
"required": ["name"]
}