[gen-ts-types]
description = "generates typescript types for the ts client"
path = "."
cmd = "node ./client/core/ts/generate_types.mjs"

[build-ts-client]
path = "client/core/ts"
cmd = "yarn build"

[start-frontend]
path = "frontend"
cmd = "yarn dev"

[build-frontend]
path = "frontend"
cmd = "yarn build"

[publish-typescript]
path = "client/core/ts"
cmd = "npm publish"

[test-compose]
description = "deploys test.compose.yaml"
cmd = """
docker compose -p komodo-dev -f test.compose.yaml down --remove-orphans && \
docker compose -p komodo-dev -f test.compose.yaml up -d"""

[test-compose-build]
description = "builds and deploys test.compose.yaml"
cmd = """
docker compose -p komodo-dev -f test.compose.yaml build"""

[test-core]
description = "runs core --release pointing to test.core.config.toml"
cmd = "KOMODO_CONFIG_PATH=test.core.config.toml cargo run -p komodo_core --release"

[test-periphery]
description = "runs periphery --release pointing to test.periphery.config.toml"
cmd = "PERIPHERY_CONFIG_PATH=test.periphery.config.toml cargo run -p komodo_periphery --release"

[docsite-start]
path = "docsite"
cmd = "yarn start"

[docsite-deploy]
path = "docsite"
cmd = "yarn deploy"

# [rustdoc-server]
# cmd = "cargo watch -s 'cargo doc --no-deps -p komodo_client' & http --quiet target/doc"