Elffuss BraidHub

kikocis/continue public

main · 1.4 KiBRenderedRawPermalink
1# Continue Core Binary
2
3The purpose of this folder is to package Typescript code in a way that can be run from any IDE or platform. We first bundle with `esbuild` and then package into binaries with `pkg`.
4
5The `pkgJson/package.json` contains instructions for building with pkg, and needs to be in a separte folder because there is no CLI flag for the assets option (it must be in a package.json), and pkg doesn't recognize any name other than package.json, but if we use the same package.json with dependencies in it, pkg will automatically include these, significantly increasing the binary size.
6
7The build process is otherwise defined entirely in `build.js`.
8
9### List of native modules
10
11- sqlite3/build/Release/node_sqlite3.node (\*)
12- @lancedb/\*\*
13- esbuild?
14- @esbuild?
15- onnxruntime-node?
16
17### List of dynamically imported modules
18
19- posthog-node
20- @octokit/rest
21- esbuild
22
23### List of .wasm files
24
25- tree-sitter.wasm
26- tree-sitter-wasms/
27
28(\*) = need to download for each platform manually
29
30## Debugging
31
32To debug the binary with IntelliJ, set `useTcp` to `true` in `CoreMessenger.kt`, and then in VS Code run the "Core Binary" debug script. Instead of starting a subprocess for the binary and communicating over stdin/stdout, the IntelliJ extension will connect over TCP to the server started from the VS Code window. You can place breakpoints anywhere in the `core` or `binary` folders.
33
34## Building
35
36```bash
37npm run build
38```
39
40## Testing
41
42```bash
43npm run test
44```