@@ -9,39 +9,37 @@ refer to the official [installation instructions][just-install] for your specifi
99Once installed, navigate to the project directory and run ` just ` commands as needed. For instance,
1010the following commands will configure a default ` cmake-build-debug ` directory and build the project.
1111
12- ``` shell
13- $ just build
12+ ``` console
13+ just build
1414```
1515
1616To load a JS script during componentization and serve its output using ` Wasmtime ` , run:
1717
18- ``` shell
19- $ just serve < filename> .js
18+ ``` console
19+ just serve <filename>.js
2020```
2121
2222To build and run integration tests run:
2323
24- ``` shell
25- $ just test
24+ ``` console
25+ just test
2626```
2727
2828To build and run Web Platform Tests run:
2929
30- ``` shell
31- $ just wpt-setup # prepare WPT hosts
32- $ just wpt-test # run all tests
33- $ just wpt-test console/console-log-symbol.any.js # run specific test
30+ ``` console
31+ just wpt-setup # prepare WPT hosts
32+ just wpt-test # run all tests
33+ just wpt-test console/console-log-symbol.any.js # run specific test
3434```
3535
3636To view a complete list of available recipes, run:
3737
38- ``` shell
39- $ just --list
40-
38+ ``` console
39+ just --list
4140```
4241
43- > ** Note**
44- >
42+ > [ !NOTE]
4543> By default, the CMake configuration step is skipped if the build directory already exists.
4644> However, this can sometimes cause issues if the existing build directory was configured for a
4745> different target. For instance:
@@ -53,7 +51,7 @@ $ just --list
5351> To resolve this, you can force cmake to reconfigure the build directory by adding the
5452> ` reconfigure=true ` parameter. For example:
5553>
56- > ``` shell
54+ > ``` console
5755> just reconfigure=true wpt-build
5856> ` ` `
5957
@@ -63,17 +61,17 @@ The default build mode is debug, which automatically configures the build direct
6361`cmake-build-debug`. You can switch to a different build mode, such as release, by specifying the
6462mode parameter. For example:
6563
66- ` ` ` shell
67- $ just mode=release build
64+ ```console
65+ just mode=release build
6866```
6967
7068This command will set the build mode to release, and the build directory will automatically change
7169to ` cmake-build-release ` .
7270
7371If you want to override the default build directory, you can use the ` builddir ` parameter.
7472
75- ``` shell
76- $ just builddir=mybuilddir mode=release build
73+ ``` console
74+ just builddir=mybuilddir mode=release build
7775```
7876
7977This command configures CMake to use ` mybuilddir ` as the build directory and sets the build mode to
@@ -83,15 +81,15 @@ This command configures CMake to use `mybuilddir` as the build directory and set
8381
8482You can also start a Web Platform Tests (WPT) server with:
8583
86- ``` shell
87- $ just wpt-server
84+ ``` console
85+ just wpt-server
8886```
8987
9088After starting the server, individual tests can be run by sending a request with the test name to
9189the server instance. For example:
9290
93- ``` shell
94- $ curl http://127.0.0.1:7676/console/console-log-symbol.any.js
91+ ``` console
92+ curl http://127.0.0.1:7676/console/console-log-symbol.any.js
9593
9694```
9795
0 commit comments