Luigit
repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by admin

extensions/gratis/mise.toml

Raw
[tasks.lint]
description = "Lint gratis extension"
depends = ["//:install"]
run = [
  "biome ci --config-path ../.. .",
  "rumdl check --config ../../.rumdl.toml .",
  "taplo format --check --config ../../.taplo.toml mise.toml",
]

[tasks.test]
description = "Test gratis extension"
depends = ["//:install"]
run = [
  { task = "//:test", args = ["extensions/gratis"] },
]

[tasks.bench]
description = "Benchmark gratis catalog and streaming paths"
depends = ["//:install"]
run = "node --no-warnings --experimental-strip-types __bench__/gratis.bench.ts"

[tasks.profile]
description = "Profile gratis catalog and streaming paths"
depends = ["//:install"]
run = "node ../../scripts/profile-benchmark.mjs gratis __bench__/gratis.bench.ts"

[tasks.benchstat]
description = "Compare gratis benchmark results"
depends = ["//:install"]
usage = '''
arg "<baseline>"
arg "<candidate>"
'''
run = 'benchstat "{{ usage.baseline }}" "{{ usage.candidate }}"'

[tasks.live]
description = "Run key-gated live checks against real free backends (spends free quota)"
depends = ["//:install"]
run = "npx vitest run --config vitest.live.config.ts"

[tasks.check]
description = "Check gratis extension"
depends = ["//:install"]
run = [
  { task = "//:build", args = ["gratis"] },
  { task = "//:build-ext", args = ["gratis"] },
]

[tasks.verify-package]
description = "Build gratis and load the generated package relocated outside the checkout"
depends = ["//:install"]
run = [
  { task = "//:build-ext", args = ["gratis"] },
  { task = "//:verify-packages", args = ["gratis"] },
]