mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 11:44:05 +08:00
style(@angular/cli): Alphabetized the keys for the angular:component properties object
This commit is contained in:
parent
f3af8cc085
commit
fb597589cc
@ -74,6 +74,23 @@
|
|||||||
"@schematics/angular:component": {
|
"@schematics/angular:component": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"changeDetection": {
|
||||||
|
"description": "Specifies the change detection strategy.",
|
||||||
|
"enum": ["Default", "OnPush"],
|
||||||
|
"type": "string",
|
||||||
|
"default": "Default",
|
||||||
|
"alias": "c"
|
||||||
|
},
|
||||||
|
"export": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false,
|
||||||
|
"description": "Specifies if declaring module exports the component."
|
||||||
|
},
|
||||||
|
"flat": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Flag to indicate if a dir is created.",
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
"inlineStyle": {
|
"inlineStyle": {
|
||||||
"description": "Specifies if the style will be in the ts file.",
|
"description": "Specifies if the style will be in the ts file.",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@ -86,18 +103,10 @@
|
|||||||
"default": false,
|
"default": false,
|
||||||
"alias": "t"
|
"alias": "t"
|
||||||
},
|
},
|
||||||
"viewEncapsulation": {
|
"module": {
|
||||||
"description": "Specifies the view encapsulation strategy.",
|
|
||||||
"enum": ["Emulated", "Native", "None"],
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"alias": "v"
|
"description": "Allows specification of the declaring module.",
|
||||||
},
|
"alias": "m"
|
||||||
"changeDetection": {
|
|
||||||
"description": "Specifies the change detection strategy.",
|
|
||||||
"enum": ["Default", "OnPush"],
|
|
||||||
"type": "string",
|
|
||||||
"default": "Default",
|
|
||||||
"alias": "c"
|
|
||||||
},
|
},
|
||||||
"prefix": {
|
"prefix": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -105,40 +114,31 @@
|
|||||||
"description": "The prefix to apply to generated selectors.",
|
"description": "The prefix to apply to generated selectors.",
|
||||||
"alias": "p"
|
"alias": "p"
|
||||||
},
|
},
|
||||||
"styleext": {
|
"selector": {
|
||||||
"description": "The file extension to be used for style files.",
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "css"
|
"format": "html-selector",
|
||||||
},
|
"description": "The selector to use for the component."
|
||||||
"spec": {
|
|
||||||
"type": "boolean",
|
|
||||||
"description": "Specifies if a spec file is generated.",
|
|
||||||
"default": true
|
|
||||||
},
|
|
||||||
"flat": {
|
|
||||||
"type": "boolean",
|
|
||||||
"description": "Flag to indicate if a dir is created.",
|
|
||||||
"default": false
|
|
||||||
},
|
},
|
||||||
"skipImport": {
|
"skipImport": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Flag to skip the module import.",
|
"description": "Flag to skip the module import.",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"selector": {
|
"spec": {
|
||||||
"type": "string",
|
|
||||||
"format": "html-selector",
|
|
||||||
"description": "The selector to use for the component."
|
|
||||||
},
|
|
||||||
"module": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "Allows specification of the declaring module.",
|
|
||||||
"alias": "m"
|
|
||||||
},
|
|
||||||
"export": {
|
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"description": "Specifies if a spec file is generated.",
|
||||||
"description": "Specifies if declaring module exports the component."
|
"default": true
|
||||||
|
},
|
||||||
|
"styleext": {
|
||||||
|
"description": "The file extension to be used for style files.",
|
||||||
|
"type": "string",
|
||||||
|
"default": "css"
|
||||||
|
},
|
||||||
|
"viewEncapsulation": {
|
||||||
|
"description": "Specifies the view encapsulation strategy.",
|
||||||
|
"enum": ["Emulated", "Native", "None"],
|
||||||
|
"type": "string",
|
||||||
|
"alias": "v"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user