代码拉取完成,页面将自动刷新
.PHONY: cli
cli: cli.prepare
go build -o rill cli/main.go
.PHONY: cli.prepare
cli.prepare:
npm install
npm run build
rm -rf cli/pkg/web/embed/dist || true
mkdir -p cli/pkg/web/embed/dist
cp -r web-local/build/* cli/pkg/web/embed/dist
rm -rf runtime/pkg/examples/embed/dist || true
mkdir -p runtime/pkg/examples/embed/dist
git clone --quiet https://github.com/rilldata/rill-examples.git runtime/pkg/examples/embed/dist
rm -rf runtime/pkg/examples/embed/dist/.git
.PHONY: coverage.go
coverage.go:
rm -rf coverage/go.out
mkdir -p coverage
# Run tests with coverage output. First builds the list of packages to include in coverage, excluding generated code in 'proto/gen'.
set -e ; \
PACKAGES=$$(go list ./... | grep -v 'proto/gen/' | tr '\n' ',' | sed -e 's/,$$//' | sed -e 's/github.com\/rilldata\/rill/./g') ;\
go test ./... -short -v -coverprofile ./coverage/go.out -coverpkg $$PACKAGES
go tool cover -func coverage/go.out
.PHONY: docs.generate
docs.generate:
# Temporarily replaces ~/.rill/config.yaml to avoid including user-defined defaults in generated docs.
# Sets version to the latest tag to simulate a production build, where certain commands are hidden.
rm -rf docs/docs/reference/cli
if [ -f ~/.rill/config.yaml ]; then mv ~/.rill/config.yaml ~/.rill/config.yaml.tmp; fi;
go run -ldflags="-X main.Version=$(shell git describe --tags `git rev-list --tags --max-count=1`)" ./cli docs generate docs/docs/reference/cli/
if [ -f ~/.rill/config.yaml.tmp ]; then mv ~/.rill/config.yaml.tmp ~/.rill/config.yaml; fi;
.PHONY: proto.generate
proto.generate:
cd proto && buf generate --exclude-path rill/ui
cd proto && buf generate --template buf.gen.openapi-admin.yaml --path rill/admin
cd proto && buf generate --template buf.gen.openapi-runtime.yaml --path rill/runtime
cd proto && buf generate --template buf.gen.ui.yaml
npm run generate:runtime-client -w web-common
npm run generate:client -w web-admin
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。