schema.json 1.2 KB

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