Files
covergen/frontend
..
2022-04-20 11:02:22 +02:00
2022-09-02 14:36:26 +02:00
2022-01-22 19:28:06 +01:00
2022-04-19 22:07:43 +02:00
2022-01-22 19:28:06 +01:00
2022-04-19 22:08:42 +02:00
2022-04-19 22:07:43 +02:00
2022-04-19 22:07:43 +02:00
2022-01-21 20:18:48 +01:00
2022-04-19 22:07:43 +02:00
2022-01-22 19:28:06 +01:00
2022-04-19 22:07:43 +02:00
2022-09-02 14:36:26 +02:00

Covergen Frontend

Quick startup

For the frontend to function, the covergen wasm blob needs to be made available. This is not present in-tree but is easily prepared by running make prepare-frontend in the parent directory (i.e. the repo root). This will also do prepare the cross-cli's, but those are optional (you can run make wasm-frontend to just do the wasm).

After this the usual vite / vue3 commands apply:

npm run dev

To prepare a proper final build:

npm run build

A note on wasm_exec.js

Go WASM requires a 'helper' library, wasm_exec.js to help with the bridging memory from Go <-> JS. This file is different for each Go (1.XX) version. The version bundled in-tree is for Go 1.16. If you run a different version, you might need to copy it from your local golang dist folder, usually /usr/local/go/misc/wasm/wasm_exec.js.

If your distribution doesn't provide this file (e.g. Fedora) you can just copy it from the go main repo by going to https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js and using the GitHub branch selector to select the release-branch.go1.XX that matches your version of go (run go version to find out).