UNPKG

1.16 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/draft-07/schema",
3 "$id": "SchematicsAngularWebWorker",
4 "title": "Angular Web Worker Options Schema",
5 "type": "object",
6 "additionalProperties": false,
7 "description": "Creates a new, generic web worker definition in the given project.",
8 "properties": {
9 "path": {
10 "type": "string",
11 "format": "path",
12 "$default": {
13 "$source": "workingDirectory"
14 },
15 "description": "The path at which to create the worker file, relative to the current workspace.",
16 "visible": false
17 },
18 "project": {
19 "type": "string",
20 "description": "The name of the project.",
21 "$default": {
22 "$source": "projectName"
23 }
24 },
25 "name": {
26 "type": "string",
27 "description": "The name of the worker.",
28 "$default": {
29 "$source": "argv",
30 "index": 0
31 },
32 "x-prompt": "What name would you like to use for the worker?"
33 },
34 "snippet": {
35 "type": "boolean",
36 "default": true,
37 "description": "Add a worker creation snippet in a sibling file of the same name."
38 }
39 },
40 "required": ["name", "project"]
41}