options.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "definitions": {
  3. "ObjectPattern": {
  4. "type": "object",
  5. "properties": {
  6. "from": {
  7. "anyOf": [
  8. {
  9. "type": "string",
  10. "minLength": 1
  11. },
  12. {
  13. "type": "object"
  14. }
  15. ]
  16. },
  17. "to": {
  18. "type": "string"
  19. },
  20. "context": {
  21. "type": "string"
  22. },
  23. "toType": {
  24. "enum": ["dir", "file", "template"]
  25. },
  26. "test": {
  27. "anyOf": [
  28. {
  29. "type": "string"
  30. },
  31. {
  32. "instanceof": "RegExp"
  33. }
  34. ]
  35. },
  36. "force": {
  37. "type": "boolean"
  38. },
  39. "ignore": {
  40. "type": "array",
  41. "items": {
  42. "anyOf": [
  43. {
  44. "type": "string"
  45. },
  46. {
  47. "type": "object"
  48. }
  49. ]
  50. }
  51. },
  52. "flatten": {
  53. "type": "boolean"
  54. },
  55. "cache": {
  56. "anyOf": [
  57. {
  58. "type": "boolean"
  59. },
  60. {
  61. "type": "object"
  62. }
  63. ]
  64. },
  65. "transform": {
  66. "instanceof": "Function"
  67. },
  68. "transformPath": {
  69. "instanceof": "Function"
  70. }
  71. },
  72. "required": ["from"]
  73. },
  74. "StringPattern": {
  75. "type": "string",
  76. "minLength": 1
  77. }
  78. },
  79. "type": "array",
  80. "items": {
  81. "anyOf": [
  82. {
  83. "$ref": "#/definitions/StringPattern"
  84. },
  85. {
  86. "$ref": "#/definitions/ObjectPattern"
  87. }
  88. ]
  89. }
  90. }