@reventlessdev/reventless-gwt 1.0.0-alpha.115 → 1.0.0-alpha.116

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 (91) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/package.json +5 -12
  3. package/rescript.json +0 -1
  4. package/bin/reventless-dev.mjs +0 -21
  5. package/src/Bind.res +0 -29
  6. package/src/Bind.res.mjs +0 -22
  7. package/src/BuildClassifier.res +0 -147
  8. package/src/BuildClassifier.res.mjs +0 -136
  9. package/src/Cancellation.res +0 -37
  10. package/src/Cancellation.res.mjs +0 -46
  11. package/src/ChildProcess.res +0 -102
  12. package/src/ChildProcess.res.mjs +0 -107
  13. package/src/Cli.res +0 -889
  14. package/src/Cli.res.mjs +0 -944
  15. package/src/Collector.res +0 -222
  16. package/src/Collector.res.mjs +0 -228
  17. package/src/ComponentMeta.res +0 -77
  18. package/src/ComponentMeta.res.mjs +0 -91
  19. package/src/ComponentScan.res +0 -101
  20. package/src/ComponentScan.res.mjs +0 -92
  21. package/src/Discovery.res +0 -102
  22. package/src/Discovery.res.mjs +0 -86
  23. package/src/DomainDeadCode.res +0 -98
  24. package/src/DomainDeadCode.res.mjs +0 -72
  25. package/src/DomainGraph.res +0 -0
  26. package/src/DomainGraph.res.mjs +0 -0
  27. package/src/ExnMessage.res +0 -14
  28. package/src/ExnMessage.res.mjs +0 -17
  29. package/src/ExnReflect.mjs +0 -24
  30. package/src/Filter.res +0 -45
  31. package/src/Filter.res.mjs +0 -47
  32. package/src/FormatterHuman.res +0 -109
  33. package/src/FormatterHuman.res.mjs +0 -115
  34. package/src/FormatterJson.res +0 -264
  35. package/src/FormatterJson.res.mjs +0 -322
  36. package/src/FormatterJunit.res +0 -93
  37. package/src/FormatterJunit.res.mjs +0 -90
  38. package/src/FormatterTap.res +0 -100
  39. package/src/FormatterTap.res.mjs +0 -131
  40. package/src/FormatterVsCode.res +0 -352
  41. package/src/FormatterVsCode.res.mjs +0 -546
  42. package/src/Loader.res +0 -24
  43. package/src/Loader.res.mjs +0 -23
  44. package/src/PackageScan.res +0 -80
  45. package/src/PackageScan.res.mjs +0 -81
  46. package/src/PlatformRunner.res +0 -191
  47. package/src/PlatformRunner.res.mjs +0 -178
  48. package/src/PlatformScan.res +0 -141
  49. package/src/PlatformScan.res.mjs +0 -124
  50. package/src/ProcessManager.res +0 -135
  51. package/src/ProcessManager.res.mjs +0 -119
  52. package/src/RunWorker.res +0 -24
  53. package/src/RunWorker.res.mjs +0 -16
  54. package/src/RunnerTypes.res +0 -68
  55. package/src/RunnerTypes.res.mjs +0 -60
  56. package/src/ScanIgnore.res +0 -11
  57. package/src/ScanIgnore.res.mjs +0 -23
  58. package/src/Watch.res +0 -102
  59. package/src/Watch.res.mjs +0 -80
  60. package/src/WatcherProbe.res +0 -56
  61. package/src/WatcherProbe.res.mjs +0 -59
  62. package/src/Worker.res +0 -24
  63. package/src/Worker.res.mjs +0 -9
  64. package/tests/BuildClassifierTest.res +0 -133
  65. package/tests/BuildClassifierTest.res.mjs +0 -176
  66. package/tests/CliRunEntryTest.res +0 -57
  67. package/tests/CliRunEntryTest.res.mjs +0 -65
  68. package/tests/CliWatchScopeTest.res +0 -62
  69. package/tests/CliWatchScopeTest.res.mjs +0 -95
  70. package/tests/ComponentMetaTest.res +0 -67
  71. package/tests/ComponentMetaTest.res.mjs +0 -71
  72. package/tests/DiscoveryTest.res +0 -42
  73. package/tests/DiscoveryTest.res.mjs +0 -43
  74. package/tests/DomainDeadCodeTest.res +0 -119
  75. package/tests/DomainDeadCodeTest.res.mjs +0 -158
  76. package/tests/DomainGraphTest.res +0 -448
  77. package/tests/DomainGraphTest.res.mjs +0 -505
  78. package/tests/ExnMessageTest.res +0 -42
  79. package/tests/ExnMessageTest.res.mjs +0 -64
  80. package/tests/FormatterGoldenTest.res +0 -125
  81. package/tests/FormatterGoldenTest.res.mjs +0 -162
  82. package/tests/FormatterVsCodeMessageTest.res +0 -41
  83. package/tests/FormatterVsCodeMessageTest.res.mjs +0 -42
  84. package/tests/PlatformRunnerTest.res +0 -66
  85. package/tests/PlatformRunnerTest.res.mjs +0 -85
  86. package/tests/PlatformScanTest.res +0 -61
  87. package/tests/PlatformScanTest.res.mjs +0 -56
  88. package/tests/RunnerUnitTest.res +0 -219
  89. package/tests/RunnerUnitTest.res.mjs +0 -244
  90. package/tests/WatchDebounceTest.res +0 -106
  91. package/tests/WatchDebounceTest.res.mjs +0 -128
@@ -1,107 +0,0 @@
1
- // Generated by ReScript, PLEASE EDIT WITH CARE
2
-
3
- import * as Stdlib_JsExn from "@rescript/runtime/lib/es6/Stdlib_JsExn.js";
4
- import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
5
- import * as Primitive_option from "@rescript/runtime/lib/es6/Primitive_option.js";
6
- import * as Nodechild_process from "node:child_process";
7
-
8
- function mergeEnv(overrides) {
9
- let m = {};
10
- Object.entries(process.env).forEach(param => {
11
- m[param[0]] = param[1];
12
- });
13
- if (overrides !== undefined) {
14
- Object.entries(overrides).forEach(param => {
15
- m[param[0]] = param[1];
16
- });
17
- }
18
- return m;
19
- }
20
-
21
- function spawn(cmd, args, cwd, env) {
22
- return Nodechild_process.spawn(cmd, args, {
23
- cwd: cwd,
24
- detached: true,
25
- env: mergeEnv(env)
26
- });
27
- }
28
-
29
- function pid(proc) {
30
- return Primitive_option.fromNullable(proc.pid);
31
- }
32
-
33
- function onLines(s, cb) {
34
- s.setEncoding("utf8");
35
- let buf = {
36
- contents: ""
37
- };
38
- s.on("data", chunk => {
39
- buf.contents = buf.contents + chunk;
40
- let drain = () => {
41
- while (true) {
42
- let idx = buf.contents.indexOf("\n");
43
- if (idx === -1) {
44
- return;
45
- }
46
- let line = buf.contents.slice(0, idx);
47
- buf.contents = buf.contents.slice(idx + 1 | 0, buf.contents.length);
48
- cb(line);
49
- continue;
50
- };
51
- };
52
- drain();
53
- });
54
- s.on("end", () => {
55
- if (buf.contents === "") {
56
- return;
57
- }
58
- let last = buf.contents;
59
- buf.contents = "";
60
- cb(last);
61
- });
62
- }
63
-
64
- function onStdoutLine(proc, cb) {
65
- onLines(proc.stdout, cb);
66
- }
67
-
68
- function onStderrLine(proc, cb) {
69
- onLines(proc.stderr, cb);
70
- }
71
-
72
- function onClose(proc, cb) {
73
- proc.on("close", code => cb((code == null) ? undefined : Primitive_option.some(code)));
74
- }
75
-
76
- function onError(proc, cb) {
77
- proc.on("error", e => cb(Stdlib_Option.getOr(Stdlib_JsExn.message(e), "spawn failed")));
78
- }
79
-
80
- function killTree(proc, signal) {
81
- let p = Primitive_option.fromNullable(proc.pid);
82
- if (p !== undefined) {
83
- try {
84
- process.kill(-p | 0, signal);
85
- return;
86
- } catch (exn) {
87
- proc.kill(signal);
88
- return;
89
- }
90
- } else {
91
- proc.kill(signal);
92
- return;
93
- }
94
- }
95
-
96
- export {
97
- mergeEnv,
98
- spawn,
99
- pid,
100
- onLines,
101
- onStdoutLine,
102
- onStderrLine,
103
- onClose,
104
- onError,
105
- killTree,
106
- }
107
- /* Stdlib_JsExn Not a pure module */