schema.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "$schema": "http://json-schema.org/schema",
  3. "$id": "nz-ng-add",
  4. "title": "Ant Design of Angular(NG-ZORRO) ng-add schematic",
  5. "type": "object",
  6. "properties": {
  7. "project": {
  8. "type": "string",
  9. "description": "Name of the project.",
  10. "$default": {
  11. "$source": "projectName"
  12. }
  13. },
  14. "skipPackageJson": {
  15. "type": "boolean",
  16. "default": false,
  17. "description": "Do not add ng-zorro-antd dependencies to package.json (e.g., --skipPackageJson)"
  18. },
  19. "skipInstall": {
  20. "type": "boolean",
  21. "default": false,
  22. "description": "Do not install dependency package."
  23. },
  24. "dynamicIcon": {
  25. "type": "boolean",
  26. "default": false,
  27. "description": "Whether icon should dynamic loading.",
  28. "x-prompt": "Enable icon dynamic loading [ Detail: https://ng.ant.design/components/icon/en ]"
  29. },
  30. "theme": {
  31. "type": "boolean",
  32. "default": false,
  33. "description": "Whether custom theme file should be set up.",
  34. "x-prompt": "Set up custom theme file [ Detail: https://ng.ant.design/docs/customize-theme/en ]"
  35. },
  36. "locale": {
  37. "type": "string",
  38. "description": "Add locale code to module (e.g., --locale=en_US)",
  39. "default": "en_US",
  40. "x-prompt": {
  41. "message": "Choose your locale code:",
  42. "type": "list",
  43. "items": [
  44. "en_US",
  45. "uk_UA",
  46. "de_DE",
  47. "fr_FR",
  48. "zh_CN",
  49. "zh_TW",
  50. "ko_KR",
  51. "ja_JP",
  52. "ar_EG",
  53. "cs_CZ",
  54. "el_GR",
  55. "et_EE",
  56. "hu_HU",
  57. "it_IT",
  58. "ms_MY",
  59. "nl_NL",
  60. "pt_PT",
  61. "sl_SI",
  62. "th_TH",
  63. "vi_VN",
  64. "bg_BG",
  65. "da_DK",
  66. "en_GB",
  67. "fa_IR",
  68. "he_IL",
  69. "hy_AM",
  70. "ku_IQ",
  71. "nb_NO",
  72. "ro_RO",
  73. "sr_RS",
  74. "ca_ES",
  75. "fi_FI",
  76. "hi_IN",
  77. "id_ID",
  78. "ka_GE",
  79. "lv_LV",
  80. "ne_NP",
  81. "pl_PL",
  82. "ru_RU",
  83. "sv_SE",
  84. "tr_TR",
  85. "es_ES",
  86. "fr_BE",
  87. "hr_HR",
  88. "is_IS",
  89. "kn_IN",
  90. "mn_MN",
  91. "nl_BE",
  92. "pt_BR",
  93. "sk_SK",
  94. "ta_IN"
  95. ]
  96. }
  97. },
  98. "template": {
  99. "type": "string",
  100. "default": "blank",
  101. "description": "Create an Angular project with using preset template.",
  102. "x-prompt": {
  103. "message": "Choose template to create project:",
  104. "type": "list",
  105. "items": [
  106. "blank",
  107. "sidemenu"
  108. ]
  109. }
  110. },
  111. "gestures": {
  112. "type": "boolean",
  113. "default": false,
  114. "description": "Whether gesture support should be set up."
  115. },
  116. "animations": {
  117. "type": "boolean",
  118. "default": true,
  119. "description": "Whether Angular browser animations should be set up."
  120. }
  121. },
  122. "required": []
  123. }