You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

481 lines
13 KiB

4 years ago
  1. {
  2. "type": "object",
  3. "properties": {
  4. "after": {
  5. "instanceof": "Function"
  6. },
  7. "allowedHosts": {
  8. "type": "array",
  9. "items": {
  10. "type": "string"
  11. }
  12. },
  13. "before": {
  14. "instanceof": "Function"
  15. },
  16. "bonjour": {
  17. "type": "boolean"
  18. },
  19. "ca": {
  20. "anyOf": [
  21. {
  22. "type": "string"
  23. },
  24. {
  25. "instanceof": "Buffer"
  26. }
  27. ]
  28. },
  29. "cert": {
  30. "anyOf": [
  31. {
  32. "type": "string"
  33. },
  34. {
  35. "instanceof": "Buffer"
  36. }
  37. ]
  38. },
  39. "clientLogLevel": {
  40. "enum": [
  41. "info",
  42. "warn",
  43. "error",
  44. "debug",
  45. "trace",
  46. "silent",
  47. "none",
  48. "warning"
  49. ]
  50. },
  51. "compress": {
  52. "type": "boolean"
  53. },
  54. "contentBase": {
  55. "anyOf": [
  56. {
  57. "enum": [false]
  58. },
  59. {
  60. "type": "number"
  61. },
  62. {
  63. "type": "string"
  64. },
  65. {
  66. "type": "array",
  67. "items": {
  68. "type": "string"
  69. },
  70. "minItems": 1
  71. }
  72. ]
  73. },
  74. "disableHostCheck": {
  75. "type": "boolean"
  76. },
  77. "features": {
  78. "type": "array",
  79. "items": {
  80. "type": "string"
  81. }
  82. },
  83. "filename": {
  84. "anyOf": [
  85. {
  86. "type": "string"
  87. },
  88. {
  89. "instanceof": "RegExp"
  90. },
  91. {
  92. "instanceof": "Function"
  93. }
  94. ]
  95. },
  96. "fs": {
  97. "type": "object"
  98. },
  99. "headers": {
  100. "type": "object"
  101. },
  102. "historyApiFallback": {
  103. "anyOf": [
  104. {
  105. "type": "boolean"
  106. },
  107. {
  108. "type": "object"
  109. }
  110. ]
  111. },
  112. "host": {
  113. "anyOf": [
  114. {
  115. "type": "string"
  116. },
  117. {
  118. "type": "null"
  119. }
  120. ]
  121. },
  122. "hot": {
  123. "type": "boolean"
  124. },
  125. "hotOnly": {
  126. "type": "boolean"
  127. },
  128. "http2": {
  129. "type": "boolean"
  130. },
  131. "https": {
  132. "anyOf": [
  133. {
  134. "type": "object"
  135. },
  136. {
  137. "type": "boolean"
  138. }
  139. ]
  140. },
  141. "index": {
  142. "type": "string"
  143. },
  144. "injectClient": {
  145. "anyOf": [
  146. {
  147. "type": "boolean"
  148. },
  149. {
  150. "instanceof": "Function"
  151. }
  152. ]
  153. },
  154. "injectHot": {
  155. "anyOf": [
  156. {
  157. "type": "boolean"
  158. },
  159. {
  160. "instanceof": "Function"
  161. }
  162. ]
  163. },
  164. "inline": {
  165. "type": "boolean"
  166. },
  167. "key": {
  168. "anyOf": [
  169. {
  170. "type": "string"
  171. },
  172. {
  173. "instanceof": "Buffer"
  174. }
  175. ]
  176. },
  177. "lazy": {
  178. "type": "boolean"
  179. },
  180. "liveReload": {
  181. "type": "boolean"
  182. },
  183. "log": {
  184. "instanceof": "Function"
  185. },
  186. "logLevel": {
  187. "enum": ["info", "warn", "error", "debug", "trace", "silent"]
  188. },
  189. "logTime": {
  190. "type": "boolean"
  191. },
  192. "mimeTypes": {
  193. "type": "object"
  194. },
  195. "noInfo": {
  196. "type": "boolean"
  197. },
  198. "onListening": {
  199. "instanceof": "Function"
  200. },
  201. "open": {
  202. "anyOf": [
  203. {
  204. "type": "string"
  205. },
  206. {
  207. "type": "boolean"
  208. }
  209. ]
  210. },
  211. "openPage": {
  212. "anyOf": [
  213. {
  214. "type": "string"
  215. },
  216. {
  217. "type": "array",
  218. "items": {
  219. "type": "string"
  220. },
  221. "minItems": 1
  222. }
  223. ]
  224. },
  225. "overlay": {
  226. "anyOf": [
  227. {
  228. "type": "boolean"
  229. },
  230. {
  231. "type": "object",
  232. "properties": {
  233. "errors": {
  234. "type": "boolean"
  235. },
  236. "warnings": {
  237. "type": "boolean"
  238. }
  239. }
  240. }
  241. ]
  242. },
  243. "pfx": {
  244. "anyOf": [
  245. {
  246. "type": "string"
  247. },
  248. {
  249. "instanceof": "Buffer"
  250. }
  251. ]
  252. },
  253. "pfxPassphrase": {
  254. "type": "string"
  255. },
  256. "port": {
  257. "anyOf": [
  258. {
  259. "type": "number"
  260. },
  261. {
  262. "type": "string"
  263. },
  264. {
  265. "type": "null"
  266. }
  267. ]
  268. },
  269. "profile": {
  270. "type": "boolean"
  271. },
  272. "progress": {
  273. "type": "boolean"
  274. },
  275. "proxy": {
  276. "anyOf": [
  277. {
  278. "type": "object"
  279. },
  280. {
  281. "type": "array",
  282. "items": {
  283. "anyOf": [
  284. {
  285. "type": "object"
  286. },
  287. {
  288. "instanceof": "Function"
  289. }
  290. ]
  291. },
  292. "minItems": 1
  293. }
  294. ]
  295. },
  296. "public": {
  297. "type": "string"
  298. },
  299. "publicPath": {
  300. "type": "string"
  301. },
  302. "quiet": {
  303. "type": "boolean"
  304. },
  305. "reporter": {
  306. "instanceof": "Function"
  307. },
  308. "requestCert": {
  309. "type": "boolean"
  310. },
  311. "serveIndex": {
  312. "type": "boolean"
  313. },
  314. "serverSideRender": {
  315. "type": "boolean"
  316. },
  317. "setup": {
  318. "instanceof": "Function"
  319. },
  320. "sockHost": {
  321. "type": "string"
  322. },
  323. "sockPath": {
  324. "type": "string"
  325. },
  326. "sockPort": {
  327. "anyOf": [
  328. {
  329. "type": "number"
  330. },
  331. {
  332. "type": "string"
  333. },
  334. {
  335. "type": "null"
  336. }
  337. ]
  338. },
  339. "socket": {
  340. "type": "string"
  341. },
  342. "staticOptions": {
  343. "type": "object"
  344. },
  345. "stats": {
  346. "anyOf": [
  347. {
  348. "type": "object"
  349. },
  350. {
  351. "type": "boolean"
  352. },
  353. {
  354. "enum": [
  355. "none",
  356. "errors-only",
  357. "errors-warnings",
  358. "minimal",
  359. "normal",
  360. "verbose"
  361. ]
  362. }
  363. ]
  364. },
  365. "transportMode": {
  366. "anyOf": [
  367. {
  368. "type": "object",
  369. "properties": {
  370. "client": {
  371. "type": "string"
  372. },
  373. "server": {
  374. "anyOf": [
  375. {
  376. "type": "string"
  377. },
  378. {
  379. "instanceof": "Function"
  380. }
  381. ]
  382. }
  383. },
  384. "additionalProperties": false
  385. },
  386. {
  387. "enum": ["sockjs", "ws"]
  388. }
  389. ]
  390. },
  391. "useLocalIp": {
  392. "type": "boolean"
  393. },
  394. "warn": {
  395. "instanceof": "Function"
  396. },
  397. "watchContentBase": {
  398. "type": "boolean"
  399. },
  400. "watchOptions": {
  401. "type": "object"
  402. },
  403. "writeToDisk": {
  404. "anyOf": [
  405. {
  406. "type": "boolean"
  407. },
  408. {
  409. "instanceof": "Function"
  410. }
  411. ]
  412. }
  413. },
  414. "errorMessage": {
  415. "properties": {
  416. "after": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserverafter)",
  417. "allowedHosts": "should be {Array} (https://webpack.js.org/configuration/dev-server/#devserverallowedhosts)",
  418. "before": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserverbefore)",
  419. "bonjour": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverbonjour)",
  420. "ca": "should be {String|Buffer}",
  421. "cert": "should be {String|Buffer}",
  422. "clientLogLevel": "should be {String} and equal to one of the allowed values\n\n [ 'none', 'silent', 'info', 'debug', 'trace', 'error', 'warning', 'warn' ]\n\n (https://webpack.js.org/configuration/dev-server/#devserverclientloglevel)",
  423. "compress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devservercompress)",
  424. "contentBase": "should be {Number|String|Array} (https://webpack.js.org/configuration/dev-server/#devservercontentbase)",
  425. "disableHostCheck": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck)",
  426. "features": "should be {Array}",
  427. "filename": "should be {String|RegExp|Function} (https://webpack.js.org/configuration/dev-server/#devserverfilename-)",
  428. "fs": "should be {Object} (https://github.com/webpack/webpack-dev-middleware#fs)",
  429. "headers": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverheaders-)",
  430. "historyApiFallback": "should be {Boolean|Object} (https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback)",
  431. "host": "should be {String|Null} (https://webpack.js.org/configuration/dev-server/#devserverhost)",
  432. "hot": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhot)",
  433. "hotOnly": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhotonly)",
  434. "http2": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhttp2)",
  435. "https": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserverhttps)",
  436. "index": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverindex)",
  437. "injectClient": "should be {Boolean|Function} (https://webpack.js.org/configuration/dev-server/#devserverinjectclient)",
  438. "injectHot": "should be {Boolean|Function} (https://webpack.js.org/configuration/dev-server/#devserverinjecthot)",
  439. "inline": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverinline)",
  440. "key": "should be {String|Buffer}",
  441. "lazy": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverlazy-)",
  442. "liveReload": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverlivereload-)",
  443. "log": "should be {Function}",
  444. "logLevel": "should be {String} and equal to one of the allowed values\n\n [ 'info', 'warn', 'error', 'debug', 'trace', 'silent' ]\n\n (https://github.com/webpack/webpack-dev-middleware#loglevel)",
  445. "logTime": "should be {Boolean} (https://github.com/webpack/webpack-dev-middleware#logtime)",
  446. "mimeTypes": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devservermimetypes-)",
  447. "noInfo": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devservernoinfo-)",
  448. "onListening": "should be {Function} (https://webpack.js.org/configuration/dev-server/#onlistening)",
  449. "open": "should be {String|Boolean} (https://webpack.js.org/configuration/dev-server/#devserveropen)",
  450. "openPage": "should be {String|Array} (https://webpack.js.org/configuration/dev-server/#devserveropenpage)",
  451. "overlay": "should be {Boolean|Object} (https://webpack.js.org/configuration/dev-server/#devserveroverlay)",
  452. "pfx": "should be {String|Buffer} (https://webpack.js.org/configuration/dev-server/#devserverpfx)",
  453. "pfxPassphrase": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpfxpassphrase)",
  454. "port": "should be {Number|String|Null} (https://webpack.js.org/configuration/dev-server/#devserverport)",
  455. "profile": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverprofile)",
  456. "progress": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverprogress---cli-only)",
  457. "proxy": "should be {Object|Array} (https://webpack.js.org/configuration/dev-server/#devserverproxy)",
  458. "public": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpublic)",
  459. "publicPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpublicpath-)",
  460. "quiet": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverquiet-)",
  461. "reporter": "should be {Function} (https://github.com/webpack/webpack-dev-middleware#reporter)",
  462. "requestCert": "should be {Boolean}",
  463. "serveIndex": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverserveindex)",
  464. "serverSideRender": "should be {Boolean} (https://github.com/webpack/webpack-dev-middleware#serversiderender)",
  465. "setup": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserversetup)",
  466. "sockHost": "should be {String|Null} (https://webpack.js.org/configuration/dev-server/#devserversockhost)",
  467. "sockPath": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserversockpath)",
  468. "sockPort": "should be {Number|String|Null} (https://webpack.js.org/configuration/dev-server/#devserversockport)",
  469. "socket": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserversocket)",
  470. "staticOptions": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverstaticoptions)",
  471. "stats": "should be {Object|Boolean} (https://webpack.js.org/configuration/dev-server/#devserverstats-)",
  472. "transportMode": "should be {String|Object} (https://webpack.js.org/configuration/dev-server/#devservertransportmode)",
  473. "useLocalIp": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserveruselocalip)",
  474. "warn": "should be {Function}",
  475. "watchContentBase": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserverwatchcontentbase)",
  476. "watchOptions": "should be {Object} (https://webpack.js.org/configuration/dev-server/#devserverwatchoptions-)",
  477. "writeToDisk": "should be {Boolean|Function} (https://webpack.js.org/configuration/dev-server/#devserverwritetodisk-)"
  478. }
  479. },
  480. "additionalProperties": false
  481. }