tabby/Makefile
Meng Zhang 2ee5dbfd4f
chore: move tabby-ui under ee license. (#667)
* chore: introduce tabby-ui EE license.

* update
2023-10-29 15:56:57 -07:00

37 lines
1.7 KiB
Makefile

loadtest:
ifdef TABBY_API_HOST
k6 run tests/*.loadtest.js
else
$(error TABBY_API_HOST is undefined)
endif
fix:
cargo clippy --fix --allow-dirty --allow-staged && cargo +nightly fmt
fix-ui:
cd ee/tabby-ui && yarn format:write && yarn lint:fix
update-ui:
cd ee/tabby-ui && yarn build
rm -rf crates/tabby/ui && cp -R ee/tabby-ui/out crates/tabby/ui
cp ee/LICENSE crates/tabby/ui/
bump-version:
cargo ws version --no-git-tag --force "*"
bump-release-version:
cargo ws version --allow-branch "r*" --no-individual-tags --force "*"
update-openapi-doc:
curl http://localhost:8080/api-docs/openapi.json | jq ' \
delpaths([ \
["paths", "/v1beta/chat/completions"], \
["paths", "/v1beta/search"], \
["components", "schemas", "CompletionRequest", "properties", "prompt"], \
["components", "schemas", "CompletionRequest", "properties", "debug_options"], \
["components", "schemas", "CompletionResponse", "properties", "debug_data"], \
["components", "schemas", "DebugData"], \
["components", "schemas", "DebugOptions"] \
])' | jq '.servers[0] |= { url: "https://playground.app.tabbyml.com", description: "Playground server" }' \
> website/static/openapi.json