schema.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "$schema": "http://json-schema.org/schema",
  3. "id": "SchematicsAngularModule",
  4. "title": "Angular Module Options Schema",
  5. "type": "object",
  6. "description": "Creates a new generic NgModule definition in the given or default project.",
  7. "properties": {
  8. "name": {
  9. "type": "string",
  10. "description": "The name of the NgModule.",
  11. "$default": {
  12. "$source": "argv",
  13. "index": 0
  14. },
  15. "x-prompt": "What name would you like to use for the NgModule?"
  16. },
  17. "path": {
  18. "type": "string",
  19. "format": "path",
  20. "description": "The path at which to create the NgModule, relative to the workspace root.",
  21. "visible": false
  22. },
  23. "project": {
  24. "type": "string",
  25. "description": "The name of the project.",
  26. "$default": {
  27. "$source": "projectName"
  28. }
  29. },
  30. "routing": {
  31. "type": "boolean",
  32. "description": "When true, creates a routing module.",
  33. "default": false,
  34. "x-user-analytics": 17
  35. },
  36. "routingScope": {
  37. "enum": ["Child", "Root"],
  38. "type": "string",
  39. "description": "The scope for the new routing module.",
  40. "default": "Child"
  41. },
  42. "route": {
  43. "type": "string",
  44. "description": "The route path for a lazy-loaded module. When supplied, creates a component in the new module, and adds the route to that component in the `Routes` array declared in the module provided in the `--module` option."
  45. },
  46. "flat": {
  47. "type": "boolean",
  48. "description": "When true, creates the new files at the top level of the current project root. ",
  49. "default": false
  50. },
  51. "commonModule": {
  52. "type": "boolean",
  53. "description": "When true, the new NgModule imports \"CommonModule\". ",
  54. "default": true,
  55. "visible": false
  56. },
  57. "module": {
  58. "type": "string",
  59. "description": "The declaring NgModule.",
  60. "alias": "m"
  61. },
  62. "lintFix": {
  63. "type": "boolean",
  64. "default": false,
  65. "description": "When true, applies lint fixes after generating the module.",
  66. "x-user-analytics": 15
  67. }
  68. },
  69. "required": [
  70. "name"
  71. ]
  72. }