schema.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema",
  3. "$id": "SchematicsAngularPipe",
  4. "title": "Angular Pipe Options Schema",
  5. "type": "object",
  6. "additionalProperties": false,
  7. "description": "Creates a new, generic pipe definition in the given project.",
  8. "properties": {
  9. "name": {
  10. "type": "string",
  11. "description": "The name of the pipe.",
  12. "$default": {
  13. "$source": "argv",
  14. "index": 0
  15. },
  16. "x-prompt": "What name would you like to use for the pipe?"
  17. },
  18. "path": {
  19. "type": "string",
  20. "format": "path",
  21. "$default": {
  22. "$source": "workingDirectory"
  23. },
  24. "description": "The path at which to create the pipe, relative to the workspace root.",
  25. "visible": false
  26. },
  27. "project": {
  28. "type": "string",
  29. "description": "The name of the project.",
  30. "$default": {
  31. "$source": "projectName"
  32. }
  33. },
  34. "flat": {
  35. "type": "boolean",
  36. "default": true,
  37. "description": "When true (the default) creates files at the top level of the project."
  38. },
  39. "skipTests": {
  40. "type": "boolean",
  41. "description": "Do not create \"spec.ts\" test files for the new pipe.",
  42. "default": false
  43. },
  44. "skipImport": {
  45. "type": "boolean",
  46. "default": false,
  47. "description": "Do not import this pipe into the owning NgModule."
  48. },
  49. "standalone": {
  50. "description": "Whether the generated pipe is standalone.",
  51. "type": "boolean",
  52. "default": false,
  53. "x-user-analytics": "ep.ng_standalone"
  54. },
  55. "module": {
  56. "type": "string",
  57. "description": "The declaring NgModule.",
  58. "alias": "m"
  59. },
  60. "export": {
  61. "type": "boolean",
  62. "default": false,
  63. "description": "The declaring NgModule exports this pipe."
  64. }
  65. },
  66. "required": ["name", "project"]
  67. }