forked from TracecatHQ/tracecat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
49 lines (42 loc) · 1.19 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# https://github.com/casey/just
set dotenv-load
default:
@just --list
test:
pytest --cache-clear tests/registry tests/unit tests/playbooks -x
down:
docker compose down --remove-orphans
clean:
docker volume ls -q | xargs -r docker volume rm
clean-images:
docker images "tracecat*" -q | xargs -r docker rmi
dev:
docker compose -f docker-compose.dev.yml up
build-dev:
docker compose -f docker-compose.dev.yml build --no-cache
up:
docker compose up
build:
docker compose build --no-cache
lint-ui:
cd frontend && pnpm lint:fix && cd ..
lint-app:
ruff check .
lint: lint-ui lint-app
mypy path:
mypy --ignore-missing-imports --enable-incomplete-feature=NewGenericSyntax {{path}}
gen-client:
cd frontend && pnpm generate-client && cd ..
# Update version number. If no version is provided, increments patch version.
update-version *after='':
@-./scripts/update-version.sh {{after}}
# CLI shortcuts
# Check that cli is installed
_check-cli:
#!/usr/bin/env sh
set -e
command -v tracecat >/dev/null 2>&1 || { echo "Error: Tracecat CLI is not installed" >&2; exit 1; }
gen-api: _check-cli
LOG_LEVEL=ERROR tracecat dev generate-spec --update-docs
gen-secrets: _check-cli
tracecat dev generate-secrets