
| Property Name | Type | Description |
|---|---|---|
| styleExt | string |
A String value
The file extension to be used for style files..
|
| poll | number |
A Number
value
How often to check for file updates..
|
| lintFix | boolean | lintFix |
| class | object | class |
| component | object | component |
| directive | object | directive |
| guard | object | guard |
| interface | object | interface |
| module | object | module |
| pipe | object | pipe |
| service | object | service |
| build | object | build |
| serve | object | serve |
"defaults": {
"type": "object",
"description": "Specify the default values for generating.",
"additionalProperties": false,
"properties": {
"styleExt": {
"type": "string",
"description": "The file extension to be used for style files."
},
"poll": {
"type": "number",
"description": "How often to check for file updates."
},
"lintFix": {
"type": "boolean",
"description": "Use lint to fix files after generation",
"default": false
},
"class": {
"type": "object",
"description": "Options for generating a class.",
"properties": {
"spec": {
"type": "boolean",
"description": "Specifies if a spec file is generated.",
"default": false
}
}
},
"component": {
"type": "object",
"description": "Options for generating a component.",
"properties": {
"flat": {
"type": "boolean",
"description": "Flag to indicate if a dir is created.",
"default": false
},
"spec": {
"type": "boolean",
"description": "Specifies if a spec file is generated.",
"default": true
},
"inlineStyle": {
"type": "boolean",
"description": "Specifies if the style will be in the ts file.",
"default": false
},
"inlineTemplate": {
"type": "boolean",
"description": "Specifies if the template will be in the ts file.",
"default": false
},
"viewEncapsulation": {
"type": "string",
"description": "Specifies the view encapsulation strategy.",
"enum": [
"Emulated",
"Native",
"None"
]
},
"changeDetection": {
"type": "string",
"description": "Specifies the change detection strategy.",
"enum": [
"Default",
"OnPush"
]
}
}
},
"directive": {
"type": "object",
"description": "Options for generating a directive.",
"properties": {
"flat": {
"type": "boolean",
"description": "Flag to indicate if a dir is created.",
"default": true
},
"spec": {
"type": "boolean",
"description": "Specifies if a spec file is generated.",
"default": true
}
}
},
"guard": {
"type": "object",
"description": "Options for generating a guard.",
"properties": {
"flat": {
"type": "boolean",
"description": "Flag to indicate if a dir is created.",
"default": true
},
"spec": {
"type": "boolean",
"description": "Specifies if a spec file is generated.",
"default": true
}
}
},
"interface": {
"type": "object",
"description": "Options for generating an interface.",
"properties": {
"prefix": {
"type": "string",
"description": "Prefix to apply to interface names. (i.e. I)",
"default": ""
}
}
},
"module": {
"type": "object",
"description": "Options for generating a module.",
"properties": {
"flat": {
"type": "boolean",
"description": "Flag to indicate if a dir is created.",
"default": false
},
"spec": {
"type": "boolean",
"description": "Specifies if a spec file is generated.",
"default": false
}
}
},
"pipe": {
"type": "object",
"description": "Options for generating a pipe.",
"properties": {
"flat": {
"type": "boolean",
"description": "Flag to indicate if a dir is created.",
"default": true
},
"spec": {
"type": "boolean",
"description": "Specifies if a spec file is generated.",
"default": true
}
}
},
"service": {
"type": "object",
"description": "Options for generating a service.",
"properties": {
"flat": {
"type": "boolean",
"description": "Flag to indicate if a dir is created.",
"default": true
},
"spec": {
"type": "boolean",
"description": "Specifies if a spec file is generated.",
"default": true
}
}
},
"build": {
"type": "object",
"description": "Properties to be passed to the build command.",
"properties": {
"sourcemaps": {
"type": "boolean",
"description": "Output sourcemaps."
},
"baseHref": {
"type": "string",
"description": "Base url for the application being built."
},
"progress": {
"type": "boolean",
"description": "The ssl key used by the server.",
"default": true
},
"poll": {
"type": "number",
"description": "Enable and define the file watching poll time period (milliseconds)."
},
"deleteOutputPath": {
"type": "boolean",
"description": "Delete output path before build.",
"default": true
},
"preserveSymlinks": {
"type": "boolean",
"description": "Do not use the real path when resolving modules.",
"default": false
},
"showCircularDependencies": {
"type": "boolean",
"description": "Show circular dependency warnings on builds.",
"default": true
}
}
},
"serve": {
"type": "object",
"description": "Properties to be passed to the serve command.",
"properties": {
"port": {
"type": "number",
"description": "The port the application will be served on.",
"default": 4200
},
"host": {
"type": "string",
"description": "The host the application will be served on.",
"default": "localhost"
},
"ssl": {
"type": "boolean",
"description": "Enables ssl for the application.",
"default": false
},
"sslKey": {
"type": "string",
"description": "The ssl key used by the server.",
"default": "ssl/server.key"
},
"sslCert": {
"type": "string",
"description": "The ssl certificate used by the server.",
"default": "ssl/server.crt"
},
"proxyConfig": {
"type": "string",
"description": "Proxy configuration file."
}
}
}
}
}