@tellahq/rescript 10.1.0-alpha.2 → 10.1.4-republish-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (410) hide show
  1. package/CHANGELOG.md +204 -2
  2. package/README.md +1 -1
  3. package/darwinarm64/bsb_helper.exe +0 -0
  4. package/darwinarm64/bsc.exe +0 -0
  5. package/darwinarm64/rescript.exe +0 -0
  6. package/docs/docson/build-schema.json +497 -516
  7. package/lib/4.06.1/bsb_helper.ml +6 -1
  8. package/lib/4.06.1/rescript.ml +1414 -1191
  9. package/lib/4.06.1/whole_compiler.ml +69844 -69069
  10. package/lib/es6/belt_internalBuckets.js +13 -13
  11. package/lib/es6/caml_float.js +5 -5
  12. package/lib/es6/caml_format.js +1 -1
  13. package/lib/es6/caml_int64.js +1 -1
  14. package/lib/es6/caml_obj.js +26 -6
  15. package/lib/es6/complex.js +4 -4
  16. package/lib/es6/js.js +3 -0
  17. package/lib/es6/js_promise2.js +16 -0
  18. package/lib/es6/jsxPPXReactSupport.js +26 -0
  19. package/lib/js/belt_internalBuckets.js +13 -13
  20. package/lib/js/caml_float.js +5 -5
  21. package/lib/js/caml_format.js +1 -1
  22. package/lib/js/caml_int64.js +1 -1
  23. package/lib/js/caml_obj.js +26 -6
  24. package/lib/js/complex.js +4 -4
  25. package/lib/js/js.js +3 -0
  26. package/lib/js/js_promise2.js +14 -0
  27. package/lib/js/jsxPPXReactSupport.js +24 -0
  28. package/lib/ocaml/arg.cmi +0 -0
  29. package/lib/ocaml/arg.cmt +0 -0
  30. package/lib/ocaml/arg.cmti +0 -0
  31. package/lib/ocaml/arg.ml +2 -2
  32. package/lib/ocaml/array.cmi +0 -0
  33. package/lib/ocaml/array.cmt +0 -0
  34. package/lib/ocaml/array.cmti +0 -0
  35. package/lib/ocaml/arrayLabels.cmi +0 -0
  36. package/lib/ocaml/arrayLabels.cmt +0 -0
  37. package/lib/ocaml/arrayLabels.cmti +0 -0
  38. package/lib/ocaml/belt.cmt +0 -0
  39. package/lib/ocaml/belt_Array.cmi +0 -0
  40. package/lib/ocaml/belt_Array.cmt +0 -0
  41. package/lib/ocaml/belt_Array.cmti +0 -0
  42. package/lib/ocaml/belt_Float.cmt +0 -0
  43. package/lib/ocaml/belt_Float.cmti +0 -0
  44. package/lib/ocaml/belt_HashMap.cmi +0 -0
  45. package/lib/ocaml/belt_HashMap.cmt +0 -0
  46. package/lib/ocaml/belt_HashMap.cmti +0 -0
  47. package/lib/ocaml/belt_HashMapInt.cmi +0 -0
  48. package/lib/ocaml/belt_HashMapInt.cmt +0 -0
  49. package/lib/ocaml/belt_HashMapInt.cmti +0 -0
  50. package/lib/ocaml/belt_HashMapString.cmi +0 -0
  51. package/lib/ocaml/belt_HashMapString.cmt +0 -0
  52. package/lib/ocaml/belt_HashMapString.cmti +0 -0
  53. package/lib/ocaml/belt_HashSet.cmi +0 -0
  54. package/lib/ocaml/belt_HashSet.cmt +0 -0
  55. package/lib/ocaml/belt_HashSet.cmti +0 -0
  56. package/lib/ocaml/belt_HashSetInt.cmi +0 -0
  57. package/lib/ocaml/belt_HashSetInt.cmt +0 -0
  58. package/lib/ocaml/belt_HashSetInt.cmti +0 -0
  59. package/lib/ocaml/belt_HashSetString.cmi +0 -0
  60. package/lib/ocaml/belt_HashSetString.cmt +0 -0
  61. package/lib/ocaml/belt_HashSetString.cmti +0 -0
  62. package/lib/ocaml/belt_Id.cmi +0 -0
  63. package/lib/ocaml/belt_Id.cmt +0 -0
  64. package/lib/ocaml/belt_Id.cmti +0 -0
  65. package/lib/ocaml/belt_Int.cmt +0 -0
  66. package/lib/ocaml/belt_Int.cmti +0 -0
  67. package/lib/ocaml/belt_List.cmi +0 -0
  68. package/lib/ocaml/belt_List.cmt +0 -0
  69. package/lib/ocaml/belt_List.cmti +0 -0
  70. package/lib/ocaml/belt_Map.cmi +0 -0
  71. package/lib/ocaml/belt_Map.cmt +0 -0
  72. package/lib/ocaml/belt_Map.cmti +0 -0
  73. package/lib/ocaml/belt_MapDict.cmi +0 -0
  74. package/lib/ocaml/belt_MapDict.cmt +0 -0
  75. package/lib/ocaml/belt_MapDict.cmti +0 -0
  76. package/lib/ocaml/belt_MapInt.cmi +0 -0
  77. package/lib/ocaml/belt_MapInt.cmt +0 -0
  78. package/lib/ocaml/belt_MapInt.cmti +0 -0
  79. package/lib/ocaml/belt_MapString.cmi +0 -0
  80. package/lib/ocaml/belt_MapString.cmt +0 -0
  81. package/lib/ocaml/belt_MapString.cmti +0 -0
  82. package/lib/ocaml/belt_MutableMap.cmi +0 -0
  83. package/lib/ocaml/belt_MutableMap.cmt +0 -0
  84. package/lib/ocaml/belt_MutableMap.cmti +0 -0
  85. package/lib/ocaml/belt_MutableMapInt.cmi +0 -0
  86. package/lib/ocaml/belt_MutableMapInt.cmt +0 -0
  87. package/lib/ocaml/belt_MutableMapInt.cmti +0 -0
  88. package/lib/ocaml/belt_MutableMapString.cmi +0 -0
  89. package/lib/ocaml/belt_MutableMapString.cmt +0 -0
  90. package/lib/ocaml/belt_MutableMapString.cmti +0 -0
  91. package/lib/ocaml/belt_MutableQueue.cmi +0 -0
  92. package/lib/ocaml/belt_MutableQueue.cmt +0 -0
  93. package/lib/ocaml/belt_MutableQueue.cmti +0 -0
  94. package/lib/ocaml/belt_MutableSet.cmi +0 -0
  95. package/lib/ocaml/belt_MutableSet.cmt +0 -0
  96. package/lib/ocaml/belt_MutableSet.cmti +0 -0
  97. package/lib/ocaml/belt_MutableSetInt.cmi +0 -0
  98. package/lib/ocaml/belt_MutableSetInt.cmt +0 -0
  99. package/lib/ocaml/belt_MutableSetInt.cmti +0 -0
  100. package/lib/ocaml/belt_MutableSetString.cmi +0 -0
  101. package/lib/ocaml/belt_MutableSetString.cmt +0 -0
  102. package/lib/ocaml/belt_MutableSetString.cmti +0 -0
  103. package/lib/ocaml/belt_MutableStack.cmi +0 -0
  104. package/lib/ocaml/belt_MutableStack.cmt +0 -0
  105. package/lib/ocaml/belt_MutableStack.cmti +0 -0
  106. package/lib/ocaml/belt_Option.cmi +0 -0
  107. package/lib/ocaml/belt_Option.cmt +0 -0
  108. package/lib/ocaml/belt_Option.cmti +0 -0
  109. package/lib/ocaml/belt_Range.cmi +0 -0
  110. package/lib/ocaml/belt_Range.cmt +0 -0
  111. package/lib/ocaml/belt_Range.cmti +0 -0
  112. package/lib/ocaml/belt_Result.cmi +0 -0
  113. package/lib/ocaml/belt_Result.cmt +0 -0
  114. package/lib/ocaml/belt_Result.cmti +0 -0
  115. package/lib/ocaml/belt_Set.cmi +0 -0
  116. package/lib/ocaml/belt_Set.cmt +0 -0
  117. package/lib/ocaml/belt_Set.cmti +0 -0
  118. package/lib/ocaml/belt_SetDict.cmi +0 -0
  119. package/lib/ocaml/belt_SetDict.cmt +0 -0
  120. package/lib/ocaml/belt_SetDict.cmti +0 -0
  121. package/lib/ocaml/belt_SetInt.cmi +0 -0
  122. package/lib/ocaml/belt_SetInt.cmt +0 -0
  123. package/lib/ocaml/belt_SetInt.cmti +0 -0
  124. package/lib/ocaml/belt_SetString.cmi +0 -0
  125. package/lib/ocaml/belt_SetString.cmt +0 -0
  126. package/lib/ocaml/belt_SetString.cmti +0 -0
  127. package/lib/ocaml/belt_SortArray.cmi +0 -0
  128. package/lib/ocaml/belt_SortArray.cmt +0 -0
  129. package/lib/ocaml/belt_SortArray.cmti +0 -0
  130. package/lib/ocaml/belt_SortArrayInt.cmt +0 -0
  131. package/lib/ocaml/belt_SortArrayInt.cmti +0 -0
  132. package/lib/ocaml/belt_SortArrayString.cmt +0 -0
  133. package/lib/ocaml/belt_SortArrayString.cmti +0 -0
  134. package/lib/ocaml/belt_internalAVLset.cmt +0 -0
  135. package/lib/ocaml/belt_internalAVLset.cmti +0 -0
  136. package/lib/ocaml/belt_internalAVLtree.cmt +0 -0
  137. package/lib/ocaml/belt_internalAVLtree.cmti +0 -0
  138. package/lib/ocaml/belt_internalBuckets.cmt +0 -0
  139. package/lib/ocaml/belt_internalBuckets.cmti +0 -0
  140. package/lib/ocaml/belt_internalBucketsType.cmt +0 -0
  141. package/lib/ocaml/belt_internalBucketsType.cmti +0 -0
  142. package/lib/ocaml/belt_internalMapInt.cmt +0 -0
  143. package/lib/ocaml/belt_internalMapString.cmt +0 -0
  144. package/lib/ocaml/belt_internalSetBuckets.cmt +0 -0
  145. package/lib/ocaml/belt_internalSetBuckets.cmti +0 -0
  146. package/lib/ocaml/belt_internalSetInt.cmt +0 -0
  147. package/lib/ocaml/belt_internalSetString.cmt +0 -0
  148. package/lib/ocaml/belt_internals.cmti +0 -0
  149. package/lib/ocaml/buffer.cmi +0 -0
  150. package/lib/ocaml/buffer.cmt +0 -0
  151. package/lib/ocaml/buffer.cmti +0 -0
  152. package/lib/ocaml/bytes.cmi +0 -0
  153. package/lib/ocaml/bytes.cmt +0 -0
  154. package/lib/ocaml/bytes.cmti +0 -0
  155. package/lib/ocaml/bytesLabels.cmi +0 -0
  156. package/lib/ocaml/bytesLabels.cmt +0 -0
  157. package/lib/ocaml/bytesLabels.cmti +0 -0
  158. package/lib/ocaml/callback.cmi +0 -0
  159. package/lib/ocaml/callback.cmt +0 -0
  160. package/lib/ocaml/callback.cmti +0 -0
  161. package/lib/ocaml/camlinternalLazy.cmi +0 -0
  162. package/lib/ocaml/camlinternalLazy.cmt +0 -0
  163. package/lib/ocaml/camlinternalLazy.cmti +0 -0
  164. package/lib/ocaml/camlinternalMod.cmi +0 -0
  165. package/lib/ocaml/camlinternalMod.cmt +0 -0
  166. package/lib/ocaml/camlinternalMod.cmti +0 -0
  167. package/lib/ocaml/char.cmi +0 -0
  168. package/lib/ocaml/char.cmt +0 -0
  169. package/lib/ocaml/char.cmti +0 -0
  170. package/lib/ocaml/complex.cmi +0 -0
  171. package/lib/ocaml/complex.cmt +0 -0
  172. package/lib/ocaml/complex.cmti +0 -0
  173. package/lib/ocaml/digest.cmi +0 -0
  174. package/lib/ocaml/digest.cmt +0 -0
  175. package/lib/ocaml/digest.cmti +0 -0
  176. package/lib/ocaml/dom.cmt +0 -0
  177. package/lib/ocaml/dom_storage.cmt +0 -0
  178. package/lib/ocaml/dom_storage2.cmt +0 -0
  179. package/lib/ocaml/filename.cmi +0 -0
  180. package/lib/ocaml/filename.cmt +0 -0
  181. package/lib/ocaml/filename.cmti +0 -0
  182. package/lib/ocaml/genlex.cmi +0 -0
  183. package/lib/ocaml/genlex.cmt +0 -0
  184. package/lib/ocaml/genlex.cmti +0 -0
  185. package/lib/ocaml/hashtbl.cmi +0 -0
  186. package/lib/ocaml/hashtbl.cmt +0 -0
  187. package/lib/ocaml/hashtbl.cmti +0 -0
  188. package/lib/ocaml/hashtblLabels.cmi +0 -0
  189. package/lib/ocaml/hashtblLabels.cmt +0 -0
  190. package/lib/ocaml/int32.cmi +0 -0
  191. package/lib/ocaml/int32.cmt +0 -0
  192. package/lib/ocaml/int32.cmti +0 -0
  193. package/lib/ocaml/int64.cmi +0 -0
  194. package/lib/ocaml/int64.cmt +0 -0
  195. package/lib/ocaml/int64.cmti +0 -0
  196. package/lib/ocaml/js.cmi +0 -0
  197. package/lib/ocaml/js.cmt +0 -0
  198. package/lib/ocaml/js.ml +3 -0
  199. package/lib/ocaml/js_OO.cmt +0 -0
  200. package/lib/ocaml/js_array.cmt +0 -0
  201. package/lib/ocaml/js_array2.cmt +0 -0
  202. package/lib/ocaml/js_bigint.cmt +0 -0
  203. package/lib/ocaml/js_cast.cmt +0 -0
  204. package/lib/ocaml/js_cast.cmti +0 -0
  205. package/lib/ocaml/js_console.cmt +0 -0
  206. package/lib/ocaml/js_date.cmt +0 -0
  207. package/lib/ocaml/js_dict.cmi +0 -0
  208. package/lib/ocaml/js_dict.cmt +0 -0
  209. package/lib/ocaml/js_dict.cmti +0 -0
  210. package/lib/ocaml/js_exn.cmt +0 -0
  211. package/lib/ocaml/js_exn.cmti +0 -0
  212. package/lib/ocaml/js_float.cmt +0 -0
  213. package/lib/ocaml/js_global.cmt +0 -0
  214. package/lib/ocaml/js_int.cmt +0 -0
  215. package/lib/ocaml/js_json.cmi +0 -0
  216. package/lib/ocaml/js_json.cmt +0 -0
  217. package/lib/ocaml/js_json.cmti +0 -0
  218. package/lib/ocaml/js_list.cmi +0 -0
  219. package/lib/ocaml/js_list.cmt +0 -0
  220. package/lib/ocaml/js_list.cmti +0 -0
  221. package/lib/ocaml/js_map.cmt +0 -0
  222. package/lib/ocaml/js_mapperRt.cmt +0 -0
  223. package/lib/ocaml/js_mapperRt.cmti +0 -0
  224. package/lib/ocaml/js_math.cmi +0 -0
  225. package/lib/ocaml/js_math.cmt +0 -0
  226. package/lib/ocaml/js_math.ml +1 -1
  227. package/lib/ocaml/js_null.cmi +0 -0
  228. package/lib/ocaml/js_null.cmt +0 -0
  229. package/lib/ocaml/js_null.cmti +0 -0
  230. package/lib/ocaml/js_null_undefined.cmi +0 -0
  231. package/lib/ocaml/js_null_undefined.cmt +0 -0
  232. package/lib/ocaml/js_null_undefined.cmti +0 -0
  233. package/lib/ocaml/js_obj.cmt +0 -0
  234. package/lib/ocaml/js_option.cmi +0 -0
  235. package/lib/ocaml/js_option.cmt +0 -0
  236. package/lib/ocaml/js_option.cmti +0 -0
  237. package/lib/ocaml/js_promise.cmi +0 -0
  238. package/lib/ocaml/js_promise.cmt +0 -0
  239. package/lib/ocaml/js_promise.ml +19 -19
  240. package/lib/ocaml/js_promise2.cmi +0 -0
  241. package/lib/ocaml/js_promise2.cmt +0 -0
  242. package/lib/ocaml/js_promise2.res +58 -0
  243. package/lib/ocaml/js_re.cmi +0 -0
  244. package/lib/ocaml/js_re.cmt +0 -0
  245. package/lib/ocaml/js_result.cmt +0 -0
  246. package/lib/ocaml/js_result.cmti +0 -0
  247. package/lib/ocaml/js_set.cmt +0 -0
  248. package/lib/ocaml/js_string.cmi +0 -0
  249. package/lib/ocaml/js_string.cmt +0 -0
  250. package/lib/ocaml/js_string2.cmi +0 -0
  251. package/lib/ocaml/js_string2.cmt +0 -0
  252. package/lib/ocaml/js_typed_array.cmi +0 -0
  253. package/lib/ocaml/js_typed_array.cmt +0 -0
  254. package/lib/ocaml/js_typed_array2.cmi +0 -0
  255. package/lib/ocaml/js_typed_array2.cmt +0 -0
  256. package/lib/ocaml/js_types.cmt +0 -0
  257. package/lib/ocaml/js_types.cmti +0 -0
  258. package/lib/ocaml/js_undefined.cmi +0 -0
  259. package/lib/ocaml/js_undefined.cmt +0 -0
  260. package/lib/ocaml/js_undefined.cmti +0 -0
  261. package/lib/ocaml/js_vector.cmi +0 -0
  262. package/lib/ocaml/js_vector.cmt +0 -0
  263. package/lib/ocaml/js_vector.cmti +0 -0
  264. package/lib/ocaml/js_weakmap.cmt +0 -0
  265. package/lib/ocaml/js_weakset.cmt +0 -0
  266. package/lib/ocaml/jsx.cmi +0 -0
  267. package/lib/ocaml/jsx.cmt +0 -0
  268. package/lib/ocaml/{jsx.ml → jsx.res} +13 -12
  269. package/lib/ocaml/jsxDOM.cmi +0 -0
  270. package/lib/ocaml/jsxDOM.cmt +0 -0
  271. package/lib/ocaml/jsxDOM.res +620 -0
  272. package/lib/ocaml/jsxDOMStyle.cmi +0 -0
  273. package/lib/ocaml/jsxDOMStyle.cmt +0 -0
  274. package/lib/ocaml/jsxDOMStyle.ml +4 -0
  275. package/lib/ocaml/jsxEvent.cmt +0 -0
  276. package/lib/ocaml/jsxPPXReactSupport.cmi +0 -0
  277. package/lib/ocaml/jsxPPXReactSupport.cmt +0 -0
  278. package/{scripts/LICENSE.ml → lib/ocaml/jsxPPXReactSupport.res} +25 -4
  279. package/lib/ocaml/lazy.cmi +0 -0
  280. package/lib/ocaml/lazy.cmt +0 -0
  281. package/lib/ocaml/lazy.cmti +0 -0
  282. package/lib/ocaml/lexing.cmi +0 -0
  283. package/lib/ocaml/lexing.cmt +0 -0
  284. package/lib/ocaml/lexing.cmti +0 -0
  285. package/lib/ocaml/list.cmi +0 -0
  286. package/lib/ocaml/list.cmt +0 -0
  287. package/lib/ocaml/list.cmti +0 -0
  288. package/lib/ocaml/listLabels.cmi +0 -0
  289. package/lib/ocaml/listLabels.cmt +0 -0
  290. package/lib/ocaml/listLabels.cmti +0 -0
  291. package/lib/ocaml/map.cmi +0 -0
  292. package/lib/ocaml/map.cmt +0 -0
  293. package/lib/ocaml/map.cmti +0 -0
  294. package/lib/ocaml/mapLabels.cmi +0 -0
  295. package/lib/ocaml/mapLabels.cmt +0 -0
  296. package/lib/ocaml/moreLabels.cmi +0 -0
  297. package/lib/ocaml/moreLabels.cmt +0 -0
  298. package/lib/ocaml/moreLabels.cmti +0 -0
  299. package/lib/ocaml/node.cmi +0 -0
  300. package/lib/ocaml/node.cmt +0 -0
  301. package/lib/ocaml/node_buffer.cmi +0 -0
  302. package/lib/ocaml/node_buffer.cmt +0 -0
  303. package/lib/ocaml/node_child_process.cmi +0 -0
  304. package/lib/ocaml/node_child_process.cmt +0 -0
  305. package/lib/ocaml/node_fs.cmi +0 -0
  306. package/lib/ocaml/node_fs.cmt +0 -0
  307. package/lib/ocaml/node_module.cmi +0 -0
  308. package/lib/ocaml/node_module.cmt +0 -0
  309. package/lib/ocaml/node_path.cmt +0 -0
  310. package/lib/ocaml/node_process.cmi +0 -0
  311. package/lib/ocaml/node_process.cmt +0 -0
  312. package/lib/ocaml/node_process.cmti +0 -0
  313. package/lib/ocaml/obj.cmi +0 -0
  314. package/lib/ocaml/obj.cmt +0 -0
  315. package/lib/ocaml/obj.cmti +0 -0
  316. package/lib/ocaml/parsing.cmi +0 -0
  317. package/lib/ocaml/parsing.cmt +0 -0
  318. package/lib/ocaml/parsing.cmti +0 -0
  319. package/lib/ocaml/pervasives.cmi +0 -0
  320. package/lib/ocaml/pervasives.cmt +0 -0
  321. package/lib/ocaml/pervasives.cmti +0 -0
  322. package/lib/ocaml/printexc.cmi +0 -0
  323. package/lib/ocaml/printexc.cmt +0 -0
  324. package/lib/ocaml/printexc.cmti +0 -0
  325. package/lib/ocaml/printexc.ml +28 -32
  326. package/lib/ocaml/queue.cmi +0 -0
  327. package/lib/ocaml/queue.cmt +0 -0
  328. package/lib/ocaml/queue.cmti +0 -0
  329. package/lib/ocaml/random.cmi +0 -0
  330. package/lib/ocaml/random.cmt +0 -0
  331. package/lib/ocaml/random.cmti +0 -0
  332. package/lib/ocaml/set.cmi +0 -0
  333. package/lib/ocaml/set.cmt +0 -0
  334. package/lib/ocaml/set.cmti +0 -0
  335. package/lib/ocaml/setLabels.cmi +0 -0
  336. package/lib/ocaml/setLabels.cmt +0 -0
  337. package/lib/ocaml/sort.cmi +0 -0
  338. package/lib/ocaml/sort.cmt +0 -0
  339. package/lib/ocaml/sort.cmti +0 -0
  340. package/lib/ocaml/stack.cmi +0 -0
  341. package/lib/ocaml/stack.cmt +0 -0
  342. package/lib/ocaml/stack.cmti +0 -0
  343. package/lib/ocaml/stdLabels.cmi +0 -0
  344. package/lib/ocaml/stdLabels.cmt +0 -0
  345. package/lib/ocaml/stdLabels.cmti +0 -0
  346. package/lib/ocaml/stream.cmi +0 -0
  347. package/lib/ocaml/stream.cmt +0 -0
  348. package/lib/ocaml/stream.cmti +0 -0
  349. package/lib/ocaml/string.cmi +0 -0
  350. package/lib/ocaml/string.cmt +0 -0
  351. package/lib/ocaml/string.cmti +0 -0
  352. package/lib/ocaml/stringLabels.cmi +0 -0
  353. package/lib/ocaml/stringLabels.cmt +0 -0
  354. package/lib/ocaml/stringLabels.cmti +0 -0
  355. package/lib/ocaml/sys.cmi +0 -0
  356. package/lib/ocaml/sys.cmt +0 -0
  357. package/lib/ocaml/sys.cmti +0 -0
  358. package/lib/ocaml/uchar.cmi +0 -0
  359. package/lib/ocaml/uchar.cmt +0 -0
  360. package/lib/ocaml/uchar.cmti +0 -0
  361. package/package.json +2 -1
  362. package/scripts/buildNinjaBinary.js +29 -0
  363. package/scripts/install.js +7 -3
  364. package/scripts/installUtils.js +9 -1
  365. package/scripts/rescript_arg.js +2 -4
  366. package/scripts/rescript_format.js +73 -39
  367. package/win32/refmt.exe +0 -0
  368. package/darwin/bsb_helper.exe +0 -0
  369. package/darwin/bsc.exe +0 -0
  370. package/darwin/ninja.COPYING +0 -202
  371. package/darwin/ninja.exe +0 -0
  372. package/darwin/rescript.exe +0 -0
  373. package/darwinarm64/ninja.COPYING +0 -202
  374. package/freebsd/ninja.COPYING +0 -202
  375. package/lib/ocaml/jsxDOM.ml +0 -2087
  376. package/linux/bsb_helper.exe +0 -0
  377. package/linux/bsc.exe +0 -0
  378. package/linux/ninja.COPYING +0 -202
  379. package/linux/ninja.exe +0 -0
  380. package/linux/rescript.exe +0 -0
  381. package/openbsd/.keep +0 -0
  382. package/scripts/buckle_lto.js +0 -55
  383. package/scripts/build_sorted.ml +0 -233
  384. package/scripts/caml_oo_curry_gen.ml +0 -71
  385. package/scripts/checkUnused.js +0 -63
  386. package/scripts/ciTest.js +0 -172
  387. package/scripts/cover.sh +0 -3
  388. package/scripts/curry_gen.ml +0 -167
  389. package/scripts/dbg +0 -13
  390. package/scripts/dedupe.js +0 -44
  391. package/scripts/doc_gen.js +0 -117
  392. package/scripts/js_internal_gen.js +0 -135
  393. package/scripts/jsconfig.json +0 -12
  394. package/scripts/littlecase.js +0 -21
  395. package/scripts/ninja.js +0 -1980
  396. package/scripts/pack.js +0 -107
  397. package/scripts/prebuilt.js +0 -99
  398. package/scripts/release.js +0 -41
  399. package/scripts/repl.js +0 -151
  400. package/scripts/shake.js +0 -138
  401. package/scripts/tasks.js +0 -149
  402. package/scripts/test.sh +0 -3
  403. package/scripts/tmp.js +0 -98
  404. package/scripts/validate.js +0 -41
  405. package/vendor/ninja.tar.gz +0 -0
  406. package/win32/bsb_helper.exe +0 -0
  407. package/win32/bsc.exe +0 -0
  408. package/win32/ninja.COPYING +0 -202
  409. package/win32/ninja.exe +0 -0
  410. package/win32/rescript.exe +0 -0
package/scripts/pack.js DELETED
@@ -1,107 +0,0 @@
1
- //@ts-check
2
- var fs = require("fs");
3
- var path = require("path");
4
- var util = require("util");
5
- var child_process = require("child_process");
6
- // Note the escaping is escape to ocaml style string literals.
7
- // `util.format` is useful to escape to js style string literrals.
8
- // { name : "basic", children : ... }
9
- // { name : "xx", content : ... }
10
- /**
11
- *
12
- * @param {string} dir
13
- */
14
- function scanDir(dir) {
15
- var files = fs.readdirSync(dir).sort();
16
- var children = files.map(file => {
17
- var curFile = path.join(dir, file);
18
- var stat = fs.statSync(curFile);
19
- if (stat.isFile()) {
20
- var content = fs.readFileSync(curFile, "utf8");
21
- return { name: file, content };
22
- } else if (stat.isDirectory()) {
23
- return scanDir(curFile);
24
- }
25
- });
26
- return { name: path.basename(dir), children };
27
- }
28
-
29
- /**
30
- *
31
- * @param {string} s
32
- * @param {number} indent
33
- */
34
- function escape(s, indent) {
35
- return (
36
- " ".repeat(indent) +
37
- '"' +
38
- s.replace(/(\n|"|\\|\t|\r)/g, (match, _, offset) => {
39
- switch (match) {
40
- case "\n":
41
- var o = `\\n\\
42
- ${" ".repeat(indent)}`;
43
- if (s[offset + 1] === " ") {
44
- o += "\\";
45
- }
46
- return o;
47
- default:
48
- return "\\" + match;
49
- }
50
- }) +
51
- '"'
52
- );
53
- }
54
-
55
- function toString(data, indent) {
56
- var output = "";
57
- if (data.children) {
58
- output += `${" ".repeat(indent)}Dir("${data.name}",[
59
- ${data.children.map(x => toString(x, indent + 1)).join(";\n")}
60
- ${" ".repeat(indent)}])`;
61
- } else {
62
- output += `${" ".repeat(indent)}File("${data.name}",
63
- ${escape(data.content, indent)}
64
- ${" ".repeat(indent)})`;
65
- }
66
- return output;
67
- }
68
-
69
- /**
70
- *
71
- */
72
- function updateThemes() {
73
- var templatesDir = path.join(__dirname, "..", "jscomp", "bsb", "templates");
74
- var output = child_process.spawnSync(`git clean -dfx ${templatesDir}`, {
75
- shell: true,
76
- encoding: "utf-8",
77
- });
78
- if (output.error) {
79
- throw output.error;
80
- }
81
- console.log(output.stdout);
82
- if (output.status !== 0) {
83
- console.log(output.stderr);
84
- }
85
-
86
- // run git clean -dfx . first
87
- fs.writeFileSync(
88
- path.join(templatesDir, "..", "bsb_templates.ml"),
89
- `
90
- type node =
91
- | Dir of string * node list
92
- | File of string * string
93
- let root = ([
94
- ${fs
95
- .readdirSync(templatesDir)
96
- .filter(x => fs.statSync(path.join(templatesDir, x)).isDirectory())
97
- .map(x => toString(scanDir(path.join(templatesDir, x)), 3))
98
- .join(";\n")}
99
- ])`,
100
- "utf8"
101
- );
102
- }
103
- exports.updateThemes = updateThemes;
104
-
105
- if (require.main === module) {
106
- updateThemes();
107
- }
@@ -1,99 +0,0 @@
1
- #!/usr/bin/env node
2
- //@ts-check
3
- var cp = require("child_process");
4
- var path = require("path");
5
- var { is_windows } = require("./config.js");
6
-
7
- var root = path.join(__dirname, "..");
8
- var root_config = { cwd: root, stdio: [0, 1, 2], encoding: "utf8" };
9
-
10
- var ocamlVersion = require("./buildocaml.js").getVersionPrefix();
11
- var fs = require("fs");
12
- var package_config = require(path.join(__dirname, "..", "package.json"));
13
- var bsVersion = fs.readFileSync(
14
- path.join(__dirname, "..", "jscomp", "common", "bs_version.ml"),
15
- "utf-8"
16
- );
17
- /**
18
- *
19
- * @param {string} bsVersion
20
- * @param {string} version
21
- */
22
- function verifyVersion(bsVersion, version) {
23
- try {
24
- let [major, minor] = bsVersion
25
- .split("\n")
26
- .find(x => x.startsWith("let version = "))
27
- .split("=")[1]
28
- .trim()
29
- .slice(1, -1)
30
- .split(".");
31
- let [specifiedMajor, specifiedMinor] = version.split(".");
32
- console.log(
33
- `package.json ${specifiedMajor}.${specifiedMinor} vs ABI : ${major}.${minor}`
34
- );
35
- return major === specifiedMajor && minor === specifiedMinor;
36
- } catch (e) {
37
- return false;
38
- }
39
- }
40
- var assert = require("assert");
41
-
42
- assert(verifyVersion(bsVersion, package_config.version));
43
-
44
- function isHostPlatform() {
45
- return process.platform === "darwin" || process.platform === "linux";
46
- }
47
- function rebuild() {
48
- cp.execSync(`node ${path.join(__dirname, "ninja.js")} cleanbuild`, {
49
- cwd: __dirname,
50
- stdio: [0, 1, 2],
51
- });
52
- }
53
-
54
- var use_env_compiler = process.argv.includes("-use-env-compiler");
55
- var bin_path = require("./bin_path").absolutePath;
56
-
57
- function buildCompiler() {
58
- var prebuilt = "prebuilt.ninja";
59
- var content = require("./ninjaFactory.js").libNinja({
60
- ocamlopt: use_env_compiler
61
- ? `ocamlopt.opt`
62
- : `../native/${ocamlVersion}/bin/ocamlopt.opt`,
63
- INCL: "4.06.1",
64
- isWin: is_windows,
65
- });
66
-
67
- fs.writeFileSync(path.join(root, "lib", prebuilt), content, "ascii");
68
- // This is for ninja access
69
- process.env.PATH = `${bin_path}${path.delimiter}${process.env.PATH}`;
70
- let ninjaPath = `ninja.exe`;
71
- console.log(`start build`);
72
- cp.execSync(
73
- `${ninjaPath} -C lib -f ${prebuilt} -v -t clean && ${ninjaPath} -v -C lib -f ${prebuilt}`,
74
- root_config
75
- );
76
- console.log("compiler built done");
77
- }
78
- if (!is_windows) {
79
- if (!process.argv.includes("-no-clean")) {
80
- require("./pack").updateThemes();
81
- rebuild();
82
- require("./ninja.js").updateRelease();
83
- }
84
- }
85
-
86
- function createNinjaTar() {
87
- if (isHostPlatform()) {
88
- require("./installUtils.js").install();
89
- console.log(`status in ninja submodule:`);
90
- cp.execSync(`git -C ninja status -uno`, { cwd: root, stdio: [0, 1, 2] });
91
- cp.execSync(
92
- `git -C ninja archive --format=tar.gz HEAD -o ../vendor/ninja.tar.gz`,
93
- { cwd: root, stdio: [0, 1, 2] }
94
- );
95
- }
96
- }
97
-
98
- createNinjaTar();
99
- buildCompiler();
@@ -1,41 +0,0 @@
1
- #!/usr/bin/env node
2
- //@ts-check
3
-
4
- // used as a unit of releasing
5
- var path = require("path");
6
- var fs = require("fs");
7
- var cp = require("child_process");
8
- var rootDir = path.join(__dirname, "..");
9
- var libJsDir = path.join(rootDir, "lib", "js");
10
- var jscompDir = path.join(rootDir, "jscomp");
11
-
12
- function run() {
13
- // Note removing js file would affect `release.ninja`
14
- // for (let file of fs.readdirSync(libJsDir)) {
15
- // if (file.endsWith('.js')) {
16
- // fs.unlinkSync(path.join(libJsDir, file))
17
- // }
18
- // }
19
-
20
- cp.execSync(
21
- `git clean -dfx stubs ext common syntax depends core bsb main .`,
22
- { cwd: jscompDir, encoding: "utf8", stdio: [0, 1, 2] }
23
- );
24
- // cp.execSync(`git clean -dfx templates && ocp-ocamlres templates -o bsb_templates.ml`,
25
- // { cwd: path.join(jscompDir,'bsb'), encoding: 'utf8', stdio: [0, 1, 2] })
26
- cp.execSync(`ninja -t clean -g && ninja`, {
27
- cwd: jscompDir,
28
- encoding: "utf8",
29
- stdio: [0, 1, 2],
30
- });
31
- cp.execSync("ninja", { cwd: path.join(rootDir, "lib"), stdio: [0, 1, 2] });
32
- cp.execSync("ninja -f release.ninja -t clean && ninja -f release.ninja", {
33
- cwd: path.join(rootDir, "jscomp"),
34
- stdio: [0, 1, 2],
35
- });
36
- require("./doc_gen").main();
37
- }
38
- if (require.main === module) {
39
- run();
40
- }
41
- exports.run = run;
package/scripts/repl.js DELETED
@@ -1,151 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /*
4
- * This script is used to compile a bundled compiler file into a standalone JS bundle.
5
- * The compiled output (including the compiled stdlib files), will be put in the defined
6
- * `PLAYGROUND` directory.
7
- *
8
- * Example:
9
- *
10
- * ```
11
- * mkdir playground && mkdir playground/stdlib
12
- * PLAYGROUND=../playground node scripts/repl.js
13
- * ```
14
- *
15
- * You may also pass an alternative JSOO entrypoint (we have multiple defined
16
- * in `jscomp/snapshot.ninja`) as a first parameter:
17
- *
18
- * ```
19
- * # Builds the "simpler" JS bundle
20
- * mkdir playground && mkdir playground/stdlib
21
- * PLAYGROUND=../playground node scripts/repl.js js_compiler
22
- * ```
23
- */
24
-
25
- //@ts-check
26
- var child_process = require("child_process");
27
- var fs = require("fs");
28
- var path = require("path");
29
-
30
- var ocamlVersion = "4.06.1";
31
- var jscompDir = path.join(__dirname, "..", "jscomp");
32
- var sourceDir = path.join(__dirname, "..", "lib", ocamlVersion, "unstable");
33
-
34
- var config = {
35
- cwd: jscompDir,
36
- encoding: "utf8",
37
- stdio: [0, 1, 2],
38
- shell: true,
39
- };
40
- /**
41
- *
42
- * @param {string} cmd
43
- */
44
- function e(cmd) {
45
- console.log(`>>>>>> running command: ${cmd}`);
46
- child_process.execSync(cmd, config);
47
- console.log(`<<<<<<`);
48
- }
49
-
50
- if (!process.env.PLAYGROUND) {
51
- var defaultPlayground = path.join(__dirname, "..", "playground");
52
- console.warn(`PLAYGROUND env var unset, defaulting to ${defaultPlayground}`);
53
- process.env.PLAYGROUND = defaultPlayground;
54
- }
55
-
56
- const BUILD_THIRD_PARTY = process.env.BUILD_THIRD_PARTY || false;
57
- var playground = process.env.PLAYGROUND;
58
- var OCAMLC = `ocamlc.opt`;
59
-
60
- // This mini project is needed to build cmij files for third party deps like @rescript/react
61
- const PLAYGROUND_BUNDLING = path.join(
62
- __dirname,
63
- "..",
64
- "packages",
65
- "playground-bundling"
66
- );
67
-
68
- var JSOO = `js_of_ocaml`;
69
-
70
- function prepare(isDev, targetCompilerFile) {
71
- var [env, ocamlFlag, jsooFlag] = isDev
72
- ? ["development", "-g ", "--pretty "]
73
- : ["production", "", ""];
74
- console.log(
75
- `building byte code version of target compiler file '${targetCompilerFile}' [${env}]`
76
- );
77
-
78
- if (!fs.existsSync(playground)) {
79
- console.log(`Creating output folder "${playground}"`);
80
-
81
- // Create both, the `playground` and `playground/stdlib` dir
82
- const stdlibDir = path.join(playground, "stdlib");
83
- fs.mkdirSync(stdlibDir, { recursive: true });
84
- }
85
-
86
- const mliFile = path.join(sourceDir, targetCompilerFile + ".mli");
87
- const mlFile = path.join(sourceDir, targetCompilerFile + ".ml");
88
-
89
- // There may be a situation where the .mli file doesn't exist (mostly when
90
- // the snapshot hasn't been checked into `lib/4.06.1/unstable`
91
- e(`touch ${mliFile}`);
92
- e(
93
- `${OCAMLC} ${ocamlFlag}-w -30-40 -no-check-prims -I ${sourceDir} ${mliFile} ${mlFile} -o jsc.byte `
94
- );
95
- console.log(
96
- `building js version for compiler target '${targetCompilerFile}'`
97
- );
98
- e(`${JSOO} compile jsc.byte ${jsooFlag}-o compiler.js`);
99
- console.log("copy js artifacts");
100
- e(`cp ../lib/js/*.js ${playground}/stdlib`);
101
- e(`mv ./compiler.js ${playground}`);
102
-
103
- // BUILDING THIRD PARTY CMIJ FILES
104
- if (BUILD_THIRD_PARTY) {
105
- console.log("Building third party packages...");
106
- e(`cd ${PLAYGROUND_BUNDLING} && npm run build`);
107
- }
108
- }
109
-
110
- function prepublish() {
111
- var mainPackageJson = JSON.parse(
112
- fs.readFileSync(path.join(__dirname, "..", "package.json"))
113
- );
114
- var packageJson = JSON.stringify(
115
- {
116
- name: "rescript-compiler",
117
- version: mainPackageJson.version,
118
- license: mainPackageJson.license,
119
- description: mainPackageJson.description,
120
- repository: mainPackageJson.repository,
121
- author: mainPackageJson.author,
122
- maintainers: mainPackageJson.maintainers,
123
- bugs: mainPackageJson.bugs,
124
- homepage: mainPackageJson.homepage,
125
- main: "compiler.js",
126
- },
127
- null,
128
- 2
129
- );
130
-
131
- fs.writeFileSync(jscompDir + `/${playground}/package.json`, packageJson, {
132
- encoding: "utf8",
133
- });
134
- }
135
-
136
- // Relevant target compiler files can be found in jscomp/snapshot.ninja
137
- let targetCompilerFile = "js_playground_compiler";
138
-
139
- // Let's derive the target file to compile from the last argument list.
140
- if (process.argv.length > 2) {
141
- const lastArg = process.argv[process.argv.length - 1];
142
-
143
- if (!lastArg.startsWith("-")) {
144
- targetCompilerFile = lastArg;
145
- }
146
- }
147
-
148
- prepare(process.argv.includes("-development"), targetCompilerFile);
149
- if (process.argv.includes("-prepublish")) {
150
- prepublish();
151
- }
package/scripts/shake.js DELETED
@@ -1,138 +0,0 @@
1
- //@ts-check
2
- // usage : node ./script/shake.js bsb
3
- var cp = require("child_process");
4
- var path = require("path");
5
- var fs = require("fs");
6
-
7
- var bsc = path.join(__dirname, "..", process.platform, "bsc");
8
- var ocamlopt = path.join(
9
- __dirname,
10
- "..",
11
- "native",
12
- "4.06.1",
13
- "bin",
14
- "ocamlopt.opt"
15
- );
16
-
17
- var base = process.argv[2];
18
- if (base === undefined) {
19
- console.error(`please specifiy a base`);
20
- process.exit(2);
21
- }
22
- var file = `${base}.ml`;
23
- var cwd = path.join(__dirname, "..", "lib", "4.06.1");
24
-
25
- // TODO replace it with yours
26
- var esy = `/Users/hongbozhang/git/genType/_esy/default/build/install/default/bin`;
27
-
28
- /**
29
- *
30
- * @param {string} file
31
- */
32
- function dsource(file) {
33
- let tmp = path.join(cwd, "tmp.ml");
34
- var output = cp.spawnSync(
35
- `${bsc} -bs-no-builtin-ppx -bs-syntax-only -dsource -c ${file} 2>${tmp}`,
36
- {
37
- cwd,
38
- encoding: "utf8",
39
- shell: true,
40
- }
41
- );
42
- // check output.status
43
- if (output.status === 0) {
44
- // fs.writeFileSync(path.join(cwd, file), output.stderr);
45
- fs.copyFileSync(tmp, path.join(cwd, file));
46
- fs.unlinkSync(tmp);
47
- } else {
48
- console.error(`dsource failure`);
49
- console.error(fs.readFileSync(tmp) + "");
50
- process.exit(2);
51
- }
52
-
53
- // fs.copyFileSync(path.join(cwd, tmp), path.join(cwd, file));
54
- }
55
-
56
- /**
57
- *
58
- * @param {string} file
59
- * @param {string} msg
60
- */
61
- function checkDiff(file, msg) {
62
- var output = cp.spawnSync(`git diff --quiet ${file}`, {
63
- shell: true,
64
- encoding: "utf8",
65
- cwd,
66
- });
67
- if (output.status !== 0) {
68
- var output = cp.spawnSync(
69
- `git add ${file} && git commit -m "${msg} for ${file}"`,
70
- { shell: true, encoding: "utf8", cwd }
71
- );
72
- if (output.status !== 0) {
73
- console.error(`diff failure for ${file} -- ${msg}`);
74
- process.exit(2);
75
- } else {
76
- console.log(output.stdout);
77
- }
78
- } else {
79
- console.log(`nothing changes to ${file}`);
80
- }
81
- }
82
- /**
83
- *
84
- * @param {string} file
85
- */
86
- function shake(file) {
87
- let tmp = path.join(cwd, "tmp.ml");
88
- var output = cp.spawnSync(
89
- `${bsc} -bs-no-builtin-ppx -bs-syntax-only -dsource -ppx ${esy}/deadcodeppx.exe -c ${file} 2>${tmp}`,
90
- {
91
- cwd,
92
- encoding: "utf8",
93
- shell: true,
94
- }
95
- );
96
- if (output.status !== 0) {
97
- console.error(`shake failure`);
98
- console.error(fs.readFileSync(tmp) + "");
99
- process.exit(2);
100
- } else {
101
- // fs.writeFileSync(path.join(cwd, file), output.stderr);
102
- fs.copyFileSync(tmp, path.join(cwd, file));
103
- fs.unlinkSync(tmp);
104
- }
105
- }
106
-
107
- /**
108
- *
109
- * @param {string} file
110
- */
111
- function attachDead(file) {
112
- var output = cp.spawnSync(`${ocamlopt} -bin-annot -c ${file}`, {
113
- cwd,
114
- encoding: "utf8",
115
- shell: true,
116
- });
117
-
118
- var genType = path.join(esy, "genType.exe");
119
-
120
- output = cp.spawnSync(`Write=1 ${genType} -dce-cmt ${base}.cmt`, {
121
- cwd,
122
- encoding: "utf8",
123
- shell: true,
124
- });
125
- if (output.status !== 0) {
126
- console.error(`dce failure`);
127
- console.error(output.stderr);
128
- process.exit(2);
129
- }
130
- // fs.writeFileSync(path.join(cwd,file),output.stderr)
131
- }
132
-
133
- // normalize files
134
- dsource(file);
135
- checkDiff(file, `dsource changes`);
136
- attachDead(file);
137
- shake(file);
138
- checkDiff(file, `shake`);
package/scripts/tasks.js DELETED
@@ -1,149 +0,0 @@
1
- //@ts-check
2
-
3
- process.env["BS_VSCODE"] = "1";
4
-
5
- var fs = require("fs");
6
- var path = require("path");
7
- var cp = require("child_process");
8
- var sourceDirs = [
9
- "ext",
10
- "common",
11
- "frontend",
12
- "depends",
13
- "core",
14
- "super_errors",
15
- "outcome_printer",
16
- "bsb",
17
- "main",
18
- "others",
19
- "stdlib-406",
20
- "runtime",
21
- "test",
22
- "ml",
23
- "ounit_tests",
24
- "bsb_helper",
25
- "refmt",
26
- "napkin",
27
- "js_parser",
28
- ];
29
-
30
- var buildAppending = false;
31
- var isBuilding = false;
32
-
33
- var jscompDir = path.join("..", "jscomp");
34
- /**
35
- *
36
- * @param {Date} d
37
- */
38
- function showDate(d) {
39
- return `${d.getHours()}:${d.getMinutes()}:${d.getSeconds()}`;
40
- }
41
- function rebuild() {
42
- if (isBuilding) {
43
- buildAppending = true;
44
- } else {
45
- console.log(">>>> Start compiling");
46
- isBuilding = true;
47
-
48
- cp.fork(path.join(__dirname, "ninja.js"), ["build"]).on(
49
- "exit",
50
- buildFinished
51
- );
52
- }
53
- }
54
- /**
55
- *
56
- * @param {number} code
57
- * @param {string} signal
58
- */
59
- function buildFinished(code, signal) {
60
- isBuilding = false;
61
- if (buildAppending) {
62
- buildAppending = false;
63
- rebuild();
64
- } else {
65
- if (code !== 0) {
66
- // console.log(`File "package.json", line 1, characters 1-1:`);
67
- // console.log(`Error: Failed to build ${showDate(new Date())}`);
68
- }
69
- console.log(">>>> Finish compiling (options: R|clean|config)");
70
- // TODO: check ninja exit error code
71
- if (code === 0) {
72
- // This is not always correct
73
- // ninjaFile.updateDev();
74
- // This file is cached
75
- cp.fork(path.join(__dirname, "ninja.js"), ["-dev"]);
76
- }
77
- }
78
- }
79
- /**
80
- *
81
- * @param {string} eventType
82
- * @param {string} filename
83
- */
84
- function onSourceChange(eventType, filename) {
85
- // console.log('event ', eventType,filename)
86
- if (
87
- filename.endsWith(".ml") ||
88
- filename.endsWith(".mli") ||
89
- filename.endsWith(".mll") ||
90
- filename.endsWith(".mly") ||
91
- filename.endsWith(".json") ||
92
- filename.endsWith(".re") ||
93
- filename.endsWith(".rei") ||
94
- filename.endsWith(".res") ||
95
- filename.endsWith(".resi")
96
- ) {
97
- rebuild();
98
- }
99
- }
100
-
101
- sourceDirs.forEach(x => {
102
- fs.watch(path.join(jscompDir, x), "utf8", onSourceChange);
103
- });
104
-
105
- fs.watch(path.join("..", "package.json"), "utf8", onSourceChange);
106
-
107
- rebuild();
108
-
109
- var readline = require("readline");
110
- readline
111
- .createInterface({
112
- input: process.stdin,
113
- output: process.stdout,
114
- })
115
- .on("line", input => {
116
- switch (input.toLowerCase()) {
117
- case "r":
118
- rebuild();
119
- break;
120
- case "config":
121
- if (isBuilding) {
122
- console.log(`it's building`);
123
- } else {
124
- isBuilding = true;
125
- cp.fork(path.join(__dirname, "ninja.js"), ["config"]).on(
126
- "close",
127
- () => {
128
- isBuilding = false;
129
- rebuild();
130
- }
131
- );
132
- }
133
- break;
134
- case "clean":
135
- if (isBuilding) {
136
- console.log(`it's building`);
137
- } else {
138
- isBuilding = true;
139
- cp.fork(path.join(__dirname, "ninja.js"), ["cleanbuild"]).on(
140
- "close",
141
- () => {
142
- isBuilding = false;
143
- }
144
- );
145
- }
146
-
147
- break;
148
- }
149
- });
package/scripts/test.sh DELETED
@@ -1,3 +0,0 @@
1
- #!/bin/sh
2
- set -e
3
- node ./node_modules/mocha/bin/mocha './jscomp/test/**/*_test.js' -R list "$@"