|
2 | 2 |
|
3 | 3 | This document contains a list of all bsconfig parameters with remarks, and whether they are already implemented in rewatch. It is based on https://rescript-lang.org/docs/manual/latest/build-configuration-schema. |
4 | 4 |
|
5 | | -| Parameter | JSON type | Remark | Implemented? | |
6 | | -| --------------------- | ----------------------- | ---------------------------------------- | :----------: | |
7 | | -| name | string | | [x] | |
8 | | -| namespace | boolean | | [x] | |
9 | | -| namespace | string | | [x] | |
10 | | -| sources | string | | [x] | |
11 | | -| sources | array of string | | [x] | |
12 | | -| sources | Source | | [x] | |
13 | | -| sources | array of Source | | [x] | |
14 | | -| ignored-dirs | array of string | | [_] | |
15 | | -| dependencies | array of string | | [x] | |
16 | | -| dev-dependencies | array of string | | [x] | |
17 | | -| generators | array of Rule-Generator | | [_] | |
18 | | -| cut-generators | boolean | | [_] | |
19 | | -| jsx | JSX | | [x] | |
20 | | -| gentypeconfig | Gentype | | [x] | |
21 | | -| compiler-flags | array of string | | [x] | |
22 | | -| warnings | Warnings | | [x] | |
23 | | -| ppx-flags | array of string | | [x] | |
24 | | -| pp-flags | array of string | | [_] | |
25 | | -| js-post-build | Js-Post-Build | `${file}` is now an absolute path | [x] | |
26 | | -| package-specs | array of Module-Format | | [_] | |
27 | | -| package-specs | array of Package-Spec | | [x] | |
28 | | -| entries | array of Target-Item | | [_] | |
29 | | -| bs-external-includes | array of string | | [_] | |
30 | | -| suffix | Suffix | | [x] | |
31 | | -| reanalyze | Reanalyze | Reanalyze config; ignored by rewatch | [x] | |
32 | | -| experimental-features | ExperimentalFeatures | | [x] | |
33 | | -| editor | object | VS Code tooling only; ignored by rewatch | [x] | |
| 5 | +| Parameter | JSON type | Remark | Implemented? | |
| 6 | +| --------------------- | ----------------------- | ----------------------------------------------------------- | :----------: | |
| 7 | +| name | string | | [x] | |
| 8 | +| namespace | boolean | | [x] | |
| 9 | +| namespace | string | | [x] | |
| 10 | +| sources | string | | [x] | |
| 11 | +| sources | array of string | | [x] | |
| 12 | +| sources | Source | | [x] | |
| 13 | +| sources | array of Source | | [x] | |
| 14 | +| ignored-dirs | array of string | | [_] | |
| 15 | +| dependencies | array of string | | [x] | |
| 16 | +| dev-dependencies | array of string | | [x] | |
| 17 | +| generators | array of Rule-Generator | | [_] | |
| 18 | +| cut-generators | boolean | | [_] | |
| 19 | +| jsx | JSX | | [x] | |
| 20 | +| gentypeconfig | Gentype | | [x] | |
| 21 | +| compiler-flags | array of string | | [x] | |
| 22 | +| warnings | Warnings | | [x] | |
| 23 | +| ppx-flags | array of string | | [x] | |
| 24 | +| pp-flags | array of string | | [_] | |
| 25 | +| js-post-build | Js-Post-Build | Path respects `in-source` setting; stdout/stderr are logged | [x] | |
| 26 | +| package-specs | array of Module-Format | | [_] | |
| 27 | +| package-specs | array of Package-Spec | | [x] | |
| 28 | +| entries | array of Target-Item | | [_] | |
| 29 | +| bs-external-includes | array of string | | [_] | |
| 30 | +| suffix | Suffix | | [x] | |
| 31 | +| reanalyze | Reanalyze | Reanalyze config; ignored by rewatch | [x] | |
| 32 | +| experimental-features | ExperimentalFeatures | | [x] | |
| 33 | +| editor | object | VS Code tooling only; ignored by rewatch | [x] | |
34 | 34 |
|
35 | 35 | ### Source |
36 | 36 |
|
@@ -133,7 +133,16 @@ Currently supported features: |
133 | 133 |
|
134 | 134 | | Parameter | JSON type | Remark | Implemented? | |
135 | 135 | | --------- | --------- | --------------------------------- | :----------: | |
136 | | -| cmd | string | `${file}` is now an absolute path | [x] | |
| 136 | +| cmd | string | Receives absolute path to JS file | [x] | |
| 137 | + |
| 138 | +The path passed to the command respects the `in-source` setting: |
| 139 | + |
| 140 | +- `in-source: true` → path next to the source file (e.g., `src/Foo.js`) |
| 141 | +- `in-source: false` → path in `lib/<module>/` directory (e.g., `lib/es6/src/Foo.mjs`) |
| 142 | + |
| 143 | +The command runs with the same working directory as the rewatch process (typically the project root). |
| 144 | + |
| 145 | +stdout and stderr from the command are logged. |
137 | 146 |
|
138 | 147 | ### Package-Spec |
139 | 148 |
|
|
0 commit comments