@@ -6,41 +6,31 @@ You will need to install `make` to run build scripts.
66
77## Build
88
9- One command starts Docker Desktop if it isn't running, builds both cores and
9+ One command starts Docker Desktop if it isn't running, builds the core and
1010then the JS packages:
1111
1212``` bash
13- $ pnpm build:wasm # production builds , like CI
14- $ pnpm build:wasm dev # dev builds (--profiling)
13+ $ pnpm build:wasm # production build , like CI
14+ $ pnpm build:wasm dev # dev build (--profiling)
1515```
1616
1717The emsdk image is multi-arch, so this runs natively on Apple Silicon too. The
1818` make ` targets below are what it runs.
1919
20- Dev Build (single thread) :
20+ Dev Build:
2121``` bash
2222$ make dev
2323```
2424
25- Dev Build (multithread):
26- ``` bash
27- $ make dev-mt
28- ```
29-
30- Prodution Build (single thread):
25+ Production Build:
3126``` bash
3227$ make prd
3328```
3429
35- Prodution Build (multithread):
36- ``` bash
37- $ make prd-mt
38- ```
39-
40- > Each build might take around 1 hour depends on the spec of your machine,
30+ > A cold build takes a few minutes on a recent machine,
4131> subsequent builds are faster as most layers are cached.
4232
43- The output file locates at ** /packages/core** or ** /packages/core-mt ** .
33+ The output file locates at ** /packages/core** .
4434
4535## Custom Build / Reduce Build Size
4636
@@ -130,4 +120,4 @@ This approach gives you control over the build content and its final size.
130120We would like to thank @Kaizodo , @harkdawg and other community members for sharing their knowledge!
131121## Publish
132122
133- Simply run ` npm publish ` under ** packages/core** or ** /packages/core-mt ** .
123+ Simply run ` npm publish ` under ** packages/core** .
0 commit comments