1 Star 0 Fork 0

chonglin/rill

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.90 KB
一键复制 编辑 原始数据 按行查看 历史
.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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/godlinc/rill.git
git@gitee.com:godlinc/rill.git
godlinc
rill
rill
2349-adminruntime-vault-for-connector-credentials

搜索帮助