os: win10
Umi v4.0.81
node v20.6.1
go1.21.1
chrome 117.**
nodejs always has unexpected version problem. please note.
Install dependencies,
$ npm install pnpm
$ pnpm install
Start the dev server, bind 8000 port.
$ pnpm dev
Start the go dev server, use shell, show localhost:8000
go run .
or vscode Shortcut key F5
when open any go file
# create umi link to https://umijs.org/docs/getting-started
pnpm dlx create-umi@latest
# go init
go mod init jieshao.loract-umi-demo
go get github.com/zserge/lorca
# config go lorca ... link to
# https://github.com/zserge/lorca/tree/master/examples
# https://github.com/cnbattle/lorca-vue-demo
# https://github.com/erkkah/lorca-ts-react-starter
go mod vendor
# build resource
pnpm build
# build binary program
pnpm go:build
go install github.com/goreleaser/goreleaser/v2@latest
goreleaser release --clean --snapshot