@o3r/core
Version:
Core of the Otter Framework
92 lines (91 loc) • 2.47 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "NgGenerateComponentSchematicsSchema",
"title": "Generate Otter Component",
"description": "ng generate Otter Component",
"properties": {
"projectName": {
"type": "string",
"description": "Project name",
"$default": {
"$source": "projectName"
}
},
"componentName": {
"type": "string",
"description": "Component name",
"x-prompt": "Your component name?",
"minLength": 1,
"$default": {
"$source": "argv",
"index": 0
}
},
"path": {
"type": "string",
"description": "Directory containing the components"
},
"prefix": {
"type": "string",
"description": "Prefix of your component selector"
},
"componentStructure": {
"type": "string",
"enum": [
"full",
"presenter",
"simple"
],
"description": "Structure of the component you want to generate ('full' | 'presenter' | 'simple')",
"default": "presenter"
},
"useComponentFixtures": {
"type": "boolean",
"description": "Generate component fixtures for tests"
},
"useOtterTheming": {
"type": "boolean",
"description": "Generate component with Otter theming architecture"
},
"useOtterConfig": {
"type": "boolean",
"description": "Generate component with Otter configuration"
},
"useOtterAnalytics": {
"type": "boolean",
"description": "Generate component with Otter analytics architecture"
},
"useLocalization": {
"type": "boolean",
"description": "Generate component with localization"
},
"useContext": {
"type": "boolean",
"description": "Generate component context"
},
"description": {
"type": "string",
"description": "Component description",
"x-prompt": "Your presenter description?"
},
"activateDummy": {
"type": "boolean",
"description": "Generate dummy values",
"default": false
},
"skipLinter": {
"type": "boolean",
"description": "Skip the linter process which includes EsLint and EditorConfig rules applying",
"default": false
},
"standalone": {
"type": "boolean",
"description": "Whether the generated component is standalone.",
"default": true
}
},
"additionalProperties": true,
"required": [
"componentName"
]
}