options.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "additionalProperties": false,
  3. "type": "object",
  4. "definitions": {
  5. "Path": { "type": "string" },
  6. "MatchCondition": {
  7. "anyOf": [{ "instanceof": "RegExp" }, { "$ref": "#/definitions/Path" }]
  8. },
  9. "MatchConditions": {
  10. "type": "array",
  11. "items": { "$ref": "#/definitions/MatchCondition" },
  12. "minItems": 1
  13. },
  14. "ESModuleOptions": {
  15. "additionalProperties": false,
  16. "type": "object",
  17. "properties": {
  18. "exclude": {
  19. "anyOf": [
  20. { "$ref": "#/definitions/MatchCondition" },
  21. { "$ref": "#/definitions/MatchConditions" }
  22. ]
  23. },
  24. "include": {
  25. "anyOf": [
  26. { "$ref": "#/definitions/MatchCondition" },
  27. { "$ref": "#/definitions/MatchConditions" }
  28. ]
  29. }
  30. }
  31. },
  32. "OverlayOptions": {
  33. "additionalProperties": false,
  34. "type": "object",
  35. "properties": {
  36. "entry": {
  37. "anyOf": [{ "const": false }, { "$ref": "#/definitions/Path" }]
  38. },
  39. "module": {
  40. "anyOf": [{ "const": false }, { "$ref": "#/definitions/Path" }]
  41. },
  42. "sockIntegration": {
  43. "anyOf": [
  44. { "const": false },
  45. { "enum": ["wds", "whm", "wps"] },
  46. { "$ref": "#/definitions/Path" }
  47. ]
  48. },
  49. "sockHost": { "type": "string" },
  50. "sockPath": { "type": "string" },
  51. "sockPort": { "type": "number", "minimum": 0 },
  52. "sockProtocol": { "enum": ["http", "https", "ws", "wss"] },
  53. "useURLPolyfill": { "type": "boolean" }
  54. }
  55. }
  56. },
  57. "properties": {
  58. "esModule": {
  59. "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/ESModuleOptions" }]
  60. },
  61. "exclude": {
  62. "anyOf": [
  63. { "$ref": "#/definitions/MatchCondition" },
  64. { "$ref": "#/definitions/MatchConditions" }
  65. ]
  66. },
  67. "forceEnable": { "type": "boolean" },
  68. "include": {
  69. "anyOf": [
  70. { "$ref": "#/definitions/MatchCondition" },
  71. { "$ref": "#/definitions/MatchConditions" }
  72. ]
  73. },
  74. "library": { "type": "string" },
  75. "overlay": {
  76. "anyOf": [{ "type": "boolean" }, { "$ref": "#/definitions/OverlayOptions" }]
  77. }
  78. }
  79. }