You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.3 KiB
44 lines
1.3 KiB
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"$id": "SchematicsAngularWebWorker",
|
|
"title": "Angular Web Worker Options Schema",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"description": "Creates a new, generic web worker definition in the given or default project.",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"format": "path",
|
|
"description": "The path at which to create the worker file, relative to the current workspace.",
|
|
"visible": false
|
|
},
|
|
"project": {
|
|
"type": "string",
|
|
"description": "The name of the project.",
|
|
"$default": {
|
|
"$source": "projectName"
|
|
}
|
|
},
|
|
"target": {
|
|
"type": "string",
|
|
"description": "The target to apply web worker to.",
|
|
"default": "build",
|
|
"x-deprecated": "No longer has an effect."
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "The name of the worker.",
|
|
"$default": {
|
|
"$source": "argv",
|
|
"index": 0
|
|
},
|
|
"x-prompt": "What name would you like to use for the worker?"
|
|
},
|
|
"snippet": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Add a worker creation snippet in a sibling file of the same name."
|
|
}
|
|
},
|
|
"required": ["name", "project"]
|
|
}
|