UNPKG

ohayolibs

Version:

Ohayo is a set of essential modules for ohayojp.

135 lines (134 loc) 3.61 kB
{ "$schema": "http://json-schema.org/schema", "id": "SchematicsNgOhayoEmptyComponent", "title": "Ng Ohayo Empty Component Options Schema", "type": "object", "properties": { "path": { "type": "string", "format": "path", "description": "The path to create the component.", "visible": false }, "project": { "type": "string", "description": "The name of the project.", "$default": { "$source": "projectName" } }, "name": { "type": "string", "description": "The name of the component.", "$default": { "$source": "argv", "index": 0 }, "x-prompt": "What name would you like to use for the component:" }, "inlineStyle": { "description": "Specifies if the style will be in the ts file.", "type": "boolean", "default": false, "alias": "s" }, "inlineTemplate": { "description": "Specifies if the template will be in the ts file.", "type": "boolean", "default": false }, "viewEncapsulation": { "description": "Specifies the view encapsulation strategy.", "enum": ["Emulated", "Native", "None", "ShadowDom"], "type": "string", "alias": "v" }, "changeDetection": { "description": "Specifies the change detection strategy.", "enum": ["Default", "OnPush"], "type": "string", "default": "Default", "alias": "c" }, "prefix": { "type": "string", "description": "The prefix to apply to generated selectors.", "alias": "p", "oneOf": [{ "maxLength": 0 }, { "minLength": 1, "format": "html-selector" } ] }, "style": { "description": "The file extension or preprocessor to use for style files.", "type": "string", "default": "css", "enum": [ "css", "scss", "sass", "less", "styl" ] }, "spec": { "type": "boolean", "description": "Specifies if a spec file is generated.", "default": true }, "flat": { "type": "boolean", "description": "Flag to indicate if a directory is created.", "default": false }, "skipImport": { "type": "boolean", "description": "Flag to skip the module import.", "default": false }, "selector": { "type": "string", "format": "html-selector", "description": "The selector to use for the component." }, "export": { "type": "boolean", "default": false, "description": "Specifies if declaring module exports the component." }, "entryComponent": { "type": "boolean", "default": false, "description": "Specifies if the component is an entry component of declaring module." }, "lintFix": { "type": "boolean", "default": false, "description": "Specifies whether to apply lint fixes after generating the component." }, "withoutPrefix": { "type": "boolean", "description": "组件名不加前缀 (Without prefix to selectors)", "default": false }, "module": { "type": "string", "description": "Allows specification of the declaring module.", "alias": "m", "x-prompt": "Specify which module name:" }, "target": { "type": "string", "description": "指定目标路径,支持 `bus/list` 写法 (Specifies relative path, could be set like `bus/list`.)", "alias": "t" } }, "required": [ "name", "module" ] }